()
| 162 | } |
| 163 | |
| 164 | function* closePartialReasoning(): Generator<StreamChunk> { |
| 165 | if (partialReasoningId) { |
| 166 | yield { |
| 167 | type: EventType.REASONING_MESSAGE_END, |
| 168 | messageId: partialReasoningId, |
| 169 | model, |
| 170 | timestamp: now(), |
| 171 | } |
| 172 | yield { |
| 173 | type: EventType.REASONING_END, |
| 174 | messageId: partialReasoningId, |
| 175 | model, |
| 176 | timestamp: now(), |
| 177 | } |
| 178 | } |
| 179 | partialReasoningId = null |
| 180 | } |
| 181 | |
| 182 | function* emitToolUse(block: { |
| 183 | id: string |
no test coverage detected