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

Function startRun

packages/ai-codex/src/stream/translate.ts:179–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 const openedToolItems = new Set<string>()
178
179 function* startRun(): Generator<StreamChunk> {
180 if (runStarted) return
181 runStarted = true
182 yield {
183 type: EventType.RUN_STARTED,
184 runId,
185 threadId,
186 model,
187 timestamp: now(),
188 ...(ctx.parentRunId !== undefined && { parentRunId: ctx.parentRunId }),
189 }
190 }
191
192 function* synthesizeUnresolvedResults(): Generator<StreamChunk> {
193 for (const toolCallId of unresolvedToolCalls) {

Callers 1

translateThreadEventsFunction · 0.70

Calls 1

nowFunction · 0.70

Tested by

no test coverage detected