Skip to content

Commit 712d9ee

Browse files
committed
Add warning message when NoEligibleSpeaker
1 parent ebb3e24 commit 712d9ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autogen/agentchat/groupchat.py

+2
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ def run_chat(
11851185
raise
11861186
except NoEligibleSpeaker:
11871187
# No eligible speaker, terminate the conversation
1188+
logger.warning("No eligible speaker found. Terminating the conversation.")
11881189
break
11891190

11901191
if reply is None:
@@ -1266,6 +1267,7 @@ async def a_run_chat(
12661267
raise
12671268
except NoEligibleSpeaker:
12681269
# No eligible speaker, terminate the conversation
1270+
logger.warning("No eligible speaker found. Terminating the conversation.")
12691271
break
12701272

12711273
if reply is None:

0 commit comments

Comments
 (0)