fix: missing name in tool return (#6381)

* fix: missing name in tool return

* add empty check
This commit is contained in:
cthomas
2025-11-25 00:16:39 -08:00
committed by Caren Thomas
parent f6c21a9783
commit fa9ec1ee9c
2 changed files with 4 additions and 1 deletions

View File

@@ -1371,6 +1371,7 @@ class SyncServer(object):
id="null",
tool_call_id="null",
date=get_utc_time(),
name=tool_name,
status=tool_execution_result.status,
tool_return=str(tool_execution_result.func_return),
stdout=tool_execution_result.stdout,
@@ -1394,6 +1395,7 @@ class SyncServer(object):
id="null",
tool_call_id="null",
date=get_utc_time(),
name=tool.name,
status="error",
tool_return=func_return,
stdout=[],