MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / toolCall

Function toolCall

packages/runtime/src/agent/__tests__/test-helpers.ts:83–94  ·  view source on GitHub ↗
(
  toolCallId: string,
  toolName: string,
  input: unknown = {},
)

Source from the content-addressed store, hash-verified

81 * Helper to create a tool call event
82 */
83export function toolCall(
84 toolCallId: string,
85 toolName: string,
86 input: unknown = {},
87): MockStreamEvent {
88 return {
89 type: "tool-call",
90 toolCallId,
91 toolName,
92 input,
93 };
94}
95
96/**
97 * Helper to create a tool result event

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…