microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
34.65k stars 5.01k forks source link

Add system msg when calling inside the assistant tool loop (#4308) #4309

Open gziz opened 6 hours ago

gziz commented 6 hours ago

Why are these changes needed?

The AssistantAgent determines when it needs to use tools. After all necessary tools are used during the tool execution while loop the agent makes one model_client call to generate a response based on the tool results. The issue is that this model client call doesn't include the system message.

Related issue number

4308

Checks