From 9d581de5f43c76205be10c34ed3dc4e00101faeb Mon Sep 17 00:00:00 2001 From: Li Jiang Date: Thu, 5 Dec 2024 03:49:41 +0800 Subject: [PATCH] Add warning message when NoEligibleSpeaker (#4535) --- 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: