Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: step_id is none (#8528)

Ari Webb851798d71a45
diff --git a/letta/interfaces/anthropic_streaming_interface.py b/letta/interfaces/anthropic_streaming_interface.py
index a02d0edc9..e27d38bca 100644
--- a/letta/interfaces/anthropic_streaming_interface.py
+++ b/letta/interfaces/anthropic_streaming_interface.py
@@ -415,6 +415,7 @@ class AnthropicStreamingInterface:
arguments=tool_call_args,
),
run_id=self.run_id,
+ step_id=self.step_id,
)
prev_message_type = approval_msg.message_type
yield approval_msg
@@ -474,6 +475,7 @@ class AnthropicStreamingInterface:
tool_call=ToolCallDelta(name=self.tool_call_name, tool_call_id=self.tool_call_id, arguments=delta.partial_json),
date=datetime.now(timezone.utc).isoformat(),
run_id=self.run_id,
+ step_id=self.step_id,
)
else:
tool_call_delta = ToolCallDelta(