From f2d4d01daa170a7e4afb2ebea8843fe0038a1bc7 Mon Sep 17 00:00:00 2001 From: Matthew Zhou Date: Mon, 6 Oct 2025 17:35:45 -0700 Subject: [PATCH] feat: Persist tool call id to ToolReturn (#5193) Add tool call id --- letta/server/rest_api/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/letta/server/rest_api/utils.py b/letta/server/rest_api/utils.py index c39af577..c5cb6696 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,