You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using gpt-4o or similar models with the autogen_agentchat.agents.AssistantAgent, it often just calls the tool directly without first responding with a message that says what tool it will call.
It would be good to show how to either properly prompt the model to make it responds with a "thought" message first before calling tools or build in some mechanism in AssistantAgent that will trigger this behavior.
Second thing I am facing is not being able to get LLM to send message before calling tool.
This is a good idea. Have you tried providing some in-context learning examples in the system message, or through the model_context parameter of AssistantAgent, by adding a few pairs of UserMessage and AssistantMessage in the initial_message field?
When using
gpt-4o
or similar models with theautogen_agentchat.agents.AssistantAgent
, it often just calls the tool directly without first responding with a message that says what tool it will call.It would be good to show how to either properly prompt the model to make it responds with a "thought" message first before calling tools or build in some mechanism in
AssistantAgent
that will trigger this behavior.Originally posted by @ekzhu in #4886 (comment)
The text was updated successfully, but these errors were encountered: