MCPcopy
hub / github.com/TanStack/ai / startRun

Function startRun

packages/ai-claude-code/src/stream/translate.ts:123–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 let partialReasoningId: string | null = null
122
123 function* startRun(): Generator<StreamChunk> {
124 if (runStarted) return
125 runStarted = true
126 yield {
127 type: EventType.RUN_STARTED,
128 runId,
129 threadId,
130 model,
131 timestamp: now(),
132 ...(ctx.parentRunId !== undefined && { parentRunId: ctx.parentRunId }),
133 }
134 }
135
136 function* synthesizeUnresolvedResults(): Generator<StreamChunk> {
137 for (const toolCallId of unresolvedToolCalls) {

Callers 1

translateSdkStreamFunction · 0.70

Calls 1

nowFunction · 0.70

Tested by

no test coverage detected