microsoft / autogen

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

[Bug] Tool call in group chat #1238

Closed sonichi closed 8 months ago

sonichi commented 8 months ago

Discovered by @yoadsn: There will be agents who are neither a proposer nor an executor of a tool, and they will raise an error when performing oai inference when seeing messages with tool flags.

Proposal: For agents who are neither the suggester nor the executor of a function/tool, the function/tool call/response message can be processed into plain text before sending to them by the group chat manager. Same for the groupchat's messages which will be used to perform speaker selection.

Originally posted by @sonichi in https://github.com/microsoft/autogen/issues/960#issuecomment-1890815045

sonichi commented 8 months ago

After investigation, the described bug doesn't exist for sync group chat. There is indeed a bug for async group chat due to mismatch of the sync group chat. #1243 fixes that and add tests.