Replies: 1 comment
-
Please read the documentation for how to use tools with AssistantAgent: https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/agents.html#assistant-agent. The tool schema is automatically generated by AutoGen -- you don't need to supply it. It is not recommended to use dictionaries as tool parameters, because there is no way for us to automatically generate the tool schema from a dictionary. |
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
-
I want to pass multiple parameters to tools(to my custom function get_cluster_change_history), so I pass a dict which include multiple keys,
I define a object parameter in tools,pass a dict to the get_cluster_change_history,but it report error:
ValueError: Unsupported tool type: <class 'dict'>
how can I pass multiple parameters to my custom function, or pass a dict param to my custom function?
thank you
--
File "/Users/anaconda3/envs/py312/lib/python3.12/site-packages/autogen_agentchat/agents/_assistant_agent.py", line 323, in init
raise ValueError(f"Unsupported tool type: {type(tool)}")
ValueError: Unsupported tool type: <class 'dict'>
Beta Was this translation helpful? Give feedback.
All reactions