()
| 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) { |
no test coverage detected