(workspaceId: string, toolCallId: string, reason: string)
| 57 | } |
| 58 | |
| 59 | cancel(workspaceId: string, toolCallId: string, reason: string): void { |
| 60 | assert(workspaceId.length > 0, "workspaceId must be non-empty"); |
| 61 | assert(toolCallId.length > 0, "toolCallId must be non-empty"); |
| 62 | assert(reason.length > 0, "reason must be non-empty"); |
| 63 | |
| 64 | const entry = this.getPending(workspaceId, toolCallId); |
| 65 | entry.reject(new Error(reason)); |
| 66 | } |
| 67 | |
| 68 | cancelAll(workspaceId: string, reason: string): void { |
| 69 | assert(workspaceId.length > 0, "workspaceId must be non-empty"); |
no test coverage detected