chore: add trace metadata and streaming icon

This commit is contained in:
Novice
2026-01-06 16:30:33 +08:00
parent dc8a618b6a
commit cef7fd484b
11 changed files with 233 additions and 81 deletions

View File

@ -235,6 +235,9 @@ class FunctionCallStrategy(AgentPattern):
if not tool_instance:
raise ValueError(f"Tool {tool_name} not found")
# Get tool metadata (provider, icon, etc.)
tool_metadata = self._get_tool_metadata(tool_instance)
# Create tool call log
tool_call_log = self._create_log(
label=f"CALL {tool_name}",
@ -246,6 +249,7 @@ class FunctionCallStrategy(AgentPattern):
"tool_args": tool_args,
},
parent_id=round_log.id,
extra_metadata=tool_metadata,
)
yield tool_call_log