From 712d9ee9df85e9c3ae04b76e0047ecca0a45a258 Mon Sep 17 00:00:00 2001 From: Li Jiang Date: Wed, 4 Dec 2024 06:30:09 +0000 Subject: [PATCH] Add warning message when NoEligibleSpeaker --- autogen/agentchat/groupchat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autogen/agentchat/groupchat.py b/autogen/agentchat/groupchat.py index a648c95e758d..5113017e1cdf 100644 --- a/autogen/agentchat/groupchat.py +++ b/autogen/agentchat/groupchat.py @@ -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: @@ -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: