fix: missing name in tool return (#6381)
* fix: missing name in tool return * add empty check
This commit is contained in:
@@ -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=[],
|
||||
|
||||
Reference in New Issue
Block a user