From 1ccd8a7f4a5bf523c913361f854bb39a5c58236f Mon Sep 17 00:00:00 2001 From: HamadaSalhab Date: Fri, 3 Jan 2025 01:34:36 +0300 Subject: [PATCH] fix(agents-api): Store `tool_calls` into `entries` properly --- agents-api/agents_api/queries/entries/create_entries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents-api/agents_api/queries/entries/create_entries.py b/agents-api/agents_api/queries/entries/create_entries.py index 48e32dafd..defd15e0e 100644 --- a/agents-api/agents_api/queries/entries/create_entries.py +++ b/agents-api/agents_api/queries/entries/create_entries.py @@ -99,7 +99,7 @@ async def create_entries( item.get("name"), # $6 content_to_json(item.get("content") or {}), # $7 item.get("tool_call_id"), # $8 - content_to_json(item.get("tool_calls") or {}), # $9 + item.get("tool_calls"), # $9 item.get("model"), # $10 item.get("token_count"), # $11 select_tokenizer(item.get("model"))["type"], # $12