(id: string, reason?: string)
| 118 | * 处理工具取消事件 |
| 119 | */ |
| 120 | const handleToolCancelled = (id: string, reason?: string) => { |
| 121 | updateTool(id, { |
| 122 | state: "cancelled", |
| 123 | error: reason, |
| 124 | }); |
| 125 | }; |
| 126 | |
| 127 | /** |
| 128 | * 获取指定工具的状态 |
nothing calls this directly
no test coverage detected