(workspaceId: string, toolCallId: string, answers: Record<string, string>)
| 48 | } |
| 49 | |
| 50 | answer(workspaceId: string, toolCallId: string, answers: Record<string, string>): void { |
| 51 | assert(workspaceId.length > 0, "workspaceId must be non-empty"); |
| 52 | assert(toolCallId.length > 0, "toolCallId must be non-empty"); |
| 53 | assert(answers && typeof answers === "object", "answers must be an object"); |
| 54 | |
| 55 | const entry = this.getPending(workspaceId, toolCallId); |
| 56 | entry.resolve(answers); |
| 57 | } |
| 58 | |
| 59 | cancel(workspaceId: string, toolCallId: string, reason: string): void { |
| 60 | assert(workspaceId.length > 0, "workspaceId must be non-empty"); |
no test coverage detected