Tool not found #5133
Unanswered
thrishathi02
asked this question in
Q&A
Tool not found
#5133
Replies: 2 comments
-
To add to this, the rest of the agents before the data_analyst agents are getting executed (running as they were supposed to), but the data_analyst agent is unable to use the tools. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It looks like the executor for the tool has not been registered. Also, looks like you are still using v0.2 API. Please consider upgrading to v0.4. See the README.md, and migration guide: https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/migration-guide.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
these are our tools :
Generate list of tools and function map
tools = []
function_map = {}
for tool in toolkit.get_tools():
if tool.name =="sql_db_query":
tool.name="sql_db_query_run"
tool_description = """Example description"""
tool_schema = generate_llm_config(tool)
tool_schema['description']=tool_description
tools.append(tool_schema)
tool.description = tool_description
function_map[tool.name] = tool._run
elif tool.name =="sql_db_query_checker":
tool_desc="""Example description"""
tool_schema = generate_llm_config(tool)
tool_schema['description']=tool_desc
tools.append(tool_schema)
tool.description = tool_desc
function_map[tool.name] = tool._run
data_analyst = autogen.AssistantAgent(
name="data_analyst",
system_message=data_analyst_system_message,
human_input_mode="NEVER",
llm_config=llm_config_lst) # Assuming this contains the necessary tools for data analysis
data_analyst.register_function(function_map=function_map)
When running it, it says : function 'sql_db_query_run' not found
Beta Was this translation helpful? Give feedback.
All reactions