(toolCallId: string, action: "cancel" | "pause" | "resume")
| 350 | }; |
| 351 | |
| 352 | const controlTool = async (toolCallId: string, action: "cancel" | "pause" | "resume") => { |
| 353 | const ws = getInstance(); |
| 354 | if (!ws || !wsConnected.value) return; |
| 355 | ws.send({ |
| 356 | type: "tool:control", |
| 357 | payload: { |
| 358 | tool_call_id: toolCallId, |
| 359 | action, |
| 360 | }, |
| 361 | }); |
| 362 | }; |
| 363 | |
| 364 | // ================== |
| 365 | // 初始化 |
nothing calls this directly
no test coverage detected