(toolCallId: string, action: "cancel" | "pause" | "resume")
| 519 | }; |
| 520 | |
| 521 | const controlTool = async (toolCallId: string, action: "cancel" | "pause" | "resume") => { |
| 522 | const ws = getInstance(); |
| 523 | if (!ws || !wsConnected.value) return; |
| 524 | ws.send({ |
| 525 | type: "tool:control", |
| 526 | payload: { |
| 527 | tool_call_id: toolCallId, |
| 528 | action, |
| 529 | }, |
| 530 | }); |
| 531 | }; |
| 532 | |
| 533 | // 初始化 |
| 534 | onMounted(() => { |
nothing calls this directly
no test coverage detected