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

Function createToolResultChunk

testing/panel/src/lib/recording.ts:119–132  ·  view source on GitHub ↗
(
    toolCallId: string,
    result: string,
    model: string,
    timestamp: number,
    id: string,
  )

Source from the content-addressed store, hash-verified

117 })
118
119 const createToolResultChunk = (
120 toolCallId: string,
121 result: string,
122 model: string,
123 timestamp: number,
124 id: string,
125 ): StreamChunk => ({
126 type: 'tool_result',
127 toolCallId,
128 content: result,
129 model,
130 timestamp,
131 id,
132 })
133
134 type FinishReason = 'stop' | 'length' | 'content_filter' | 'tool_calls' | null
135

Callers 1

createEventRecordingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected