From a4ad0d61e65ccc1d3c1dbd8c6aab2b10d65fd9e1 Mon Sep 17 00:00:00 2001 From: "Zhanzhao (Deo) Liang" Date: Wed, 2 Jul 2025 15:02:14 +0800 Subject: [PATCH] avoid concat tool call delta id --- src/agents/models/chatcmpl_stream_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/models/chatcmpl_stream_handler.py b/src/agents/models/chatcmpl_stream_handler.py index 0cf1e6a3..83fa32ab 100644 --- a/src/agents/models/chatcmpl_stream_handler.py +++ b/src/agents/models/chatcmpl_stream_handler.py @@ -276,7 +276,7 @@ async def handle_stream( state.function_calls[tc_delta.index].name += ( tc_function.name if tc_function else "" ) or "" - state.function_calls[tc_delta.index].call_id += tc_delta.id or "" + state.function_calls[tc_delta.index].call_id = tc_delta.id or "" if state.reasoning_content_index_and_output: yield ResponseReasoningSummaryPartDoneEvent(