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

Function createThinkingChunk

testing/panel/src/lib/recording.ts:182–195  ·  view source on GitHub ↗
(
    content: string,
    delta: string | undefined,
    model: string,
    timestamp: number,
    id: string,
  )

Source from the content-addressed store, hash-verified

180 })
181
182 const createThinkingChunk = (
183 content: string,
184 delta: string | undefined,
185 model: string,
186 timestamp: number,
187 id: string,
188 ): StreamChunk => ({
189 type: 'thinking',
190 content,
191 delta: delta ?? '',
192 model,
193 timestamp,
194 id,
195 })
196
197 type DevtoolsEventHandler<TEventName extends keyof AIDevtoolsEventMap> =
198 (event: { payload: AIDevtoolsEventMap[TEventName] }) => void

Callers 1

createEventRecordingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected