Skip to content

Commit

Permalink
fix: GroupChatManager async run throw exception if no eligible speaker (
Browse files Browse the repository at this point in the history
  • Loading branch information
leryor authored Nov 21, 2024
1 parent 8a8fcd8 commit 2d52bbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autogen/agentchat/groupchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,10 @@ async def a_run_chat(
else:
# admin agent is not found in the participants
raise
except NoEligibleSpeaker:
# No eligible speaker, terminate the conversation
break

if reply is None:
break
# The speaker sends the message without requesting a reply
Expand Down

0 comments on commit 2d52bbc

Please sign in to comment.