Skip to content

Commit 2d52bbc

Browse files
authored
fix: GroupChatManager async run throw exception if no eligible speaker (#4283)
1 parent 8a8fcd8 commit 2d52bbc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autogen/agentchat/groupchat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,10 @@ async def a_run_chat(
12641264
else:
12651265
# admin agent is not found in the participants
12661266
raise
1267+
except NoEligibleSpeaker:
1268+
# No eligible speaker, terminate the conversation
1269+
break
1270+
12671271
if reply is None:
12681272
break
12691273
# The speaker sends the message without requesting a reply

0 commit comments

Comments
 (0)