From 643ec8fe2fb13cd84d49b94557c77ba0e111545b Mon Sep 17 00:00:00 2001 From: Matthew Zhou Date: Wed, 15 Oct 2025 13:41:54 -0700 Subject: [PATCH] fix: Double write tool call deltas [LET-5545] (#5461) * Double write tool call deltas * Fix --- .../anthropic_parallel_tool_call_streaming_interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/letta/interfaces/anthropic_parallel_tool_call_streaming_interface.py b/letta/interfaces/anthropic_parallel_tool_call_streaming_interface.py index 49f12abe..c18f8e5e 100644 --- a/letta/interfaces/anthropic_parallel_tool_call_streaming_interface.py +++ b/letta/interfaces/anthropic_parallel_tool_call_streaming_interface.py @@ -300,6 +300,7 @@ class SimpleAnthropicStreamingInterface: id=self.letta_message_id, # Do not emit placeholder arguments here to avoid UI duplicates tool_call=ToolCallDelta(name=name, tool_call_id=call_id), + tool_calls=ToolCallDelta(name=name, tool_call_id=call_id), date=datetime.now(timezone.utc).isoformat(), otid=Message.generate_otid_from_id(self.letta_message_id, message_index), run_id=self.run_id, @@ -397,6 +398,7 @@ class SimpleAnthropicStreamingInterface: tool_call_msg = ToolCallMessage( id=self.letta_message_id, tool_call=ToolCallDelta(name=name, tool_call_id=call_id, arguments=delta.partial_json), + tool_calls=ToolCallDelta(name=name, tool_call_id=call_id, arguments=delta.partial_json), date=datetime.now(timezone.utc).isoformat(), otid=Message.generate_otid_from_id(self.letta_message_id, message_index), run_id=self.run_id,