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.py index bb63aed378a..5a910e285db 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 @@ async def handle_start(self, message: GroupChatStart, ctx: MessageContext) -> No @event async 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: