MCPcopy Create free account
hub / github.com/TanStack/ai / createToolCallChunk

Function createToolCallChunk

testing/panel/src/lib/recording.ts:95–117  ·  view source on GitHub ↗
(
    toolCallId: string,
    toolName: string,
    index: number,
    arguments_: string,
    model: string,
    timestamp: number,
    id: string,
  )

Source from the content-addressed store, hash-verified

93 })
94
95 const createToolCallChunk = (
96 toolCallId: string,
97 toolName: string,
98 index: number,
99 arguments_: string,
100 model: string,
101 timestamp: number,
102 id: string,
103 ): StreamChunk => ({
104 type: 'tool_call',
105 toolCall: {
106 id: toolCallId,
107 type: 'function',
108 function: {
109 name: toolName,
110 arguments: arguments_,
111 },
112 },
113 index,
114 model,
115 timestamp,
116 id,
117 })
118
119 const createToolResultChunk = (
120 toolCallId: string,

Callers 1

createEventRecordingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected