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

Function closeReasoning

packages/ai-opencode/src/stream/translate.ts:157–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 }
156
157 function* closeReasoning(): Generator<StreamChunk> {
158 if (openReasoningId !== null) {
159 yield {
160 type: EventType.REASONING_MESSAGE_END,
161 messageId: openReasoningId,
162 model,
163 timestamp: now(),
164 }
165 yield {
166 type: EventType.REASONING_END,
167 messageId: openReasoningId,
168 model,
169 timestamp: now(),
170 }
171 openReasoningId = null
172 }
173 }
174
175 function* synthesizeUnresolvedResults(): Generator<StreamChunk> {
176 for (const toolCallId of unresolvedToolCalls) {

Callers 6

handleTextPartFunction · 0.70
handleReasoningPartFunction · 0.70
handleToolPartFunction · 0.70
finishFunction · 0.70
translateOpencodeStreamFunction · 0.70

Calls 1

nowFunction · 0.70

Tested by

no test coverage detected