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

Function closePartialReasoning

packages/ai-claude-code/src/stream/translate.ts:164–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

handleResultFunction · 0.85
handleStreamEventFunction · 0.85

Calls 1

nowFunction · 0.70

Tested by

no test coverage detected