Skip to content

Commit

Permalink
Add warning message when NoEligibleSpeaker (#4535)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkall authored Dec 4, 2024
1 parent ebb3e24 commit 9d581de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/agentchat/groupchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,7 @@ def run_chat(
raise
except NoEligibleSpeaker:
# No eligible speaker, terminate the conversation
logger.warning("No eligible speaker found. Terminating the conversation.")
break

if reply is None:
Expand Down Expand Up @@ -1266,6 +1267,7 @@ async def a_run_chat(
raise
except NoEligibleSpeaker:
# No eligible speaker, terminate the conversation
logger.warning("No eligible speaker found. Terminating the conversation.")
break

if reply is None:
Expand Down

0 comments on commit 9d581de

Please sign in to comment.