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

Function createContentChunk

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

Source from the content-addressed store, hash-verified

78
79 // Helper to reconstruct StreamChunk from events
80 const createContentChunk = (
81 content: string,
82 delta: string | undefined,
83 model: string,
84 timestamp: number,
85 id: string,
86 ): StreamChunk => ({
87 type: 'content',
88 content,
89 delta: delta ?? '',
90 model,
91 timestamp,
92 id,
93 })
94
95 const createToolCallChunk = (
96 toolCallId: string,

Callers 1

createEventRecordingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected