Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Double write tool call deltas [LET-5545] (#5461)
Matthew Zhou643ec8fe2fb1
diff --git a/letta/interfaces/anthropic_parallel_tool_call_streaming_interface.py b/letta/interfaces/anthropic_parallel_tool_call_streaming_interface.pyindex 49f12abe0..c18f8e5ef 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 duplicatestool_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,