MCPcopy Create free account
hub / github.com/astercloud/aster / handleToolProgress

Function handleToolProgress

ui/src/stores/tools.ts:72–78  ·  view source on GitHub ↗
(id: string, progress: number, message?: string, metadata?: Record<string, any>)

Source from the content-addressed store, hash-verified

70 * 处理工具进度事件
71 */
72 const handleToolProgress = (id: string, progress: number, message?: string, metadata?: Record<string, any>) => {
73 updateTool(id, {
74 progress,
75 state: "executing",
76 intermediate: metadata ? { ...metadata, message } : undefined,
77 });
78 };
79
80 /**
81 * 处理工具中间结果事件

Callers

nothing calls this directly

Calls 1

updateToolFunction · 0.85

Tested by

no test coverage detected