MCPcopy
hub / github.com/coder/mux / answer

Method answer

src/node/services/askUserQuestionManager.ts:50–57  ·  view source on GitHub ↗
(workspaceId: string, toolCallId: string, answers: Record<string, string>)

Source from the content-addressed store, hash-verified

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");

Calls 3

getPendingMethod · 0.95
resolveMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected