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.
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.
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