From 527c86c8460472928579c08d55d730d0df92220f Mon Sep 17 00:00:00 2001 From: Leela Karthik Uttarkar Date: Thu, 5 Feb 2026 23:39:49 +0530 Subject: [PATCH] Refactor conversation cleaning function for handoff --- .../orchestrations/agent_framework_orchestrations/_handoff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/orchestrations/agent_framework_orchestrations/_handoff.py b/python/packages/orchestrations/agent_framework_orchestrations/_handoff.py index a26bf1ea37..3852359078 100644 --- a/python/packages/orchestrations/agent_framework_orchestrations/_handoff.py +++ b/python/packages/orchestrations/agent_framework_orchestrations/_handoff.py @@ -46,7 +46,7 @@ from agent_framework._workflows._base_group_chat_orchestrator import TerminationCondition from agent_framework._workflows._checkpoint import CheckpointStorage from agent_framework._workflows._events import WorkflowEvent -from agent_framework._workflows._orchestrator_helpers import clean_conversation_for_handoff +from agent_framework._workflows._orchestrator_helpers import clean_conversation from agent_framework._workflows._request_info_mixin import response_handler from agent_framework._workflows._workflow import Workflow from agent_framework._workflows._workflow_builder import WorkflowBuilder @@ -399,7 +399,7 @@ async def _run_agent_and_emit( return # Remove function call related content from the agent response for full conversation history - cleaned_response = clean_conversation_for_handoff(response.messages) + cleaned_response = clean_conversation(response.messages) # Append the agent response to the full conversation history. This list removes # function call related content such that the result stays consistent regardless # of which agent yields the final output.