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

Function toolCallEndEvent

src/node/services/agentSession.queueDispatch.test.ts:8–22  ·  view source on GitHub ↗
(
  workspaceId: string,
  overrides?: { replay?: boolean }
)

Source from the content-addressed store, hash-verified

6const TEST_MODEL = "anthropic:claude-sonnet-4-5";
7
8function toolCallEndEvent(
9 workspaceId: string,
10 overrides?: { replay?: boolean }
11): Record<string, unknown> {
12 return {
13 type: "tool-call-end",
14 workspaceId,
15 messageId: "assistant-1",
16 ...(overrides?.replay === true ? { replay: true } : {}),
17 toolCallId: "tool-call-1",
18 toolName: "bash",
19 result: { success: true },
20 timestamp: Date.now(),
21 };
22}
23
24function streamStartEvent(workspaceId: string): Record<string, unknown> {
25 return {

Calls

no outgoing calls

Tested by

no test coverage detected