feat(agents): 展示云端通俗技能与工具文案

This commit is contained in:
brother7 committed 2026-10-13 10:25:11 +08:00
1 parent 23aa927441
commit 821fd6ffbe
16 files changed
+118 -23

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ function projectMessage(value: unknown): unknown {
return { ...copy(source, ['id', 'role', 'content', 'request_id', 'run_id', 'created_at', 'message_id', 'reasoning_content']),
...(Array.isArray(source.tool_calls) ? { tool_calls: source.tool_calls.map(item => {
const tool = object(item);
return { ...copy(tool, ['id', 'name', 'args', 'status', 'error_message']),
return { ...copy(tool, ['id', 'name', 'display_name', 'display_description', 'args', 'status', 'error_message']),
...(tool.tool_call_result == null ? {} : { tool_call_result: copy(tool.tool_call_result, ['content']) }) };
}) } : {}),
};