From 23e49388ca35154efff64ef7dc39ce50494b73cc Mon Sep 17 00:00:00 2001 From: Jack Gerrits Date: Thu, 7 Mar 2024 11:10:17 -0500 Subject: [PATCH] Fix printout check for num code blocks (#1902) --- autogen/agentchat/conversable_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/agentchat/conversable_agent.py b/autogen/agentchat/conversable_agent.py index aa2af05c69d6..d6a65eff5dfc 100644 --- a/autogen/agentchat/conversable_agent.py +++ b/autogen/agentchat/conversable_agent.py @@ -1273,7 +1273,7 @@ def _generate_code_execution_reply_using_executor( continue num_code_blocks = len(code_blocks) - if num_code_blocks > 1: + if num_code_blocks == 1: print( colored( f"\n>>>>>>>> EXECUTING CODE BLOCK (inferred language is {code_blocks[0].language})...",