MCPcopy Index your code
hub / github.com/simstudioai/sim / toolCallEvent

Function toolCallEvent

apps/sim/lib/copilot/request/sse-utils.test.ts:45–63  ·  view source on GitHub ↗
(
  toolCallId: string,
  toolName: string,
  args?: Record<string, unknown>,
  generating = false
)

Source from the content-addressed store, hash-verified

43})
44
45function toolCallEvent(
46 toolCallId: string,
47 toolName: string,
48 args?: Record<string, unknown>,
49 generating = false
50): StreamEvent {
51 return {
52 type: MothershipStreamV1EventType.tool,
53 payload: {
54 toolCallId,
55 toolName,
56 executor: MothershipStreamV1ToolExecutor.go,
57 mode: MothershipStreamV1ToolMode.sync,
58 phase: MothershipStreamV1ToolPhase.call,
59 ...(generating ? { status: TOOL_CALL_STATUS.generating } : {}),
60 ...(args ? { arguments: args } : {}),
61 },
62 } satisfies StreamEvent
63}

Callers 1

sse-utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected