fix: GroupChatManager async run throw exception if no eligible speaker (#4283)

This commit is contained in:
Lery Orlov
2024-11-21 01:35:27 +01:00
committed by GitHub
parent 8a8fcd8906
commit 2d52bbcbc5

View File

@@ -1264,6 +1264,10 @@ class GroupChatManager(ConversableAgent):
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