()
| 130 | let openReasoningId: string | null = null |
| 131 | |
| 132 | function* startRun(): Generator<StreamChunk> { |
| 133 | if (runStarted) return |
| 134 | runStarted = true |
| 135 | yield { |
| 136 | type: EventType.RUN_STARTED, |
| 137 | runId, |
| 138 | threadId, |
| 139 | model, |
| 140 | timestamp: now(), |
| 141 | ...(ctx.parentRunId !== undefined && { parentRunId: ctx.parentRunId }), |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | function* closeText(): Generator<StreamChunk> { |
| 146 | if (openTextId !== null) { |
no test coverage detected