MCPcopy Index your code
hub / github.com/TanStack/ai / runFinishedChunk

Function runFinishedChunk

packages/ai-client/tests/generation-devtools.test.ts:101–109  ·  view source on GitHub ↗
(runId: string)

Source from the content-addressed store, hash-verified

99 }
100
101 function runFinishedChunk(runId: string) {
102 return {
103 type: EventType.RUN_FINISHED,
104 runId,
105 threadId: 'thread-1',
106 timestamp: Date.now(),
107 finishReason: 'stop',
108 } satisfies StreamChunk
109 }
110
111 function createDeferred<T>() {
112 let resolve!: (value: T) => void

Callers 1

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected