A programming framework for agentic AI
Remove inner message from thread M1 orchestrator (#4611)
Hussein Mozannar38cb5329505f
diff --git a/python/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_magentic_one/_magentic_one_orchestrator.py b/python/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_magentic_one/_magentic_one_orchestrator.pyindex bb63aed37..5a910e285 100644--- a/python/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_magentic_one/_magentic_one_orchestrator.py+++ b/python/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_magentic_one/_magentic_one_orchestrator.py@@ -166,12 +166,11 @@ class MagenticOneOrchestrator(BaseGroupChatManager):@eventasync def handle_agent_response(self, message: GroupChatAgentResponse, ctx: MessageContext) -> None: # type: ignore- self._message_thread.append(message.agent_response.chat_message)delta: List[AgentMessage] = []if message.agent_response.inner_messages is not None:for inner_message in message.agent_response.inner_messages:- self._message_thread.append(inner_message)delta.append(inner_message)+ self._message_thread.append(message.agent_response.chat_message)delta.append(message.agent_response.chat_message)if self._termination_condition is not None: