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

fix: GroupChatManager async run throws an exception if no eligible speaker #4283

Closed orlov332 closed 1 day ago

orlov332 commented 1 day ago

Why are these changes needed?

The Autogen introduced an async implementation for the nested chats in v0.2.35, but it currently has an issue with finishing conversation. It rises an exception NoEligibleSpeaker as a signal that the nested chat has finished but it doesn't handle properly so the exception interrupts the whole agentic flow.

To fix the issue, the exception should be handled in GroupChatManager:a_run_chat() in the same way as the synchronous version does GroupChatManager:run_chat().

Related issue number

Checks

ilia-shutov-tfs commented 1 day ago

Thank you @orlov332 for a fix! Without this fix, we can't use autogen in asynchronous way (From Python code perspective)