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