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.

feat: Persist tool call id to ToolReturn (#5193)

Matthew Zhouf2d4d01daa17
diff --git a/letta/server/rest_api/utils.py b/letta/server/rest_api/utils.py
index c39af577b..c5cb6696a 100644
--- a/letta/server/rest_api/utils.py
+++ b/letta/server/rest_api/utils.py
@@ -333,6 +333,7 @@ def create_letta_messages_from_llm_response(
batch_item_id=llm_batch_item_id,
tool_returns=[
ToolReturn(
+ tool_call_id=tool_call_id,
status=tool_execution_result.status,
stderr=tool_execution_result.stderr,
stdout=tool_execution_result.stdout,