(id: string, error: string)
| 108 | * 处理工具错误事件 |
| 109 | */ |
| 110 | const handleToolError = (id: string, error: string) => { |
| 111 | updateTool(id, { |
| 112 | state: "failed", |
| 113 | error, |
| 114 | }); |
| 115 | }; |
| 116 | |
| 117 | /** |
| 118 | * 处理工具取消事件 |
nothing calls this directly
no test coverage detected