MCPcopy
hub / github.com/TanStack/ai / closePartialText

Function closePartialText

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

Source from the content-addressed store, hash-verified

148 }
149
150 function* closePartialText(): Generator<StreamChunk> {
151 if (partialTextStarted && partialTextMessageId) {
152 yield {
153 type: EventType.TEXT_MESSAGE_END,
154 messageId: partialTextMessageId,
155 model,
156 timestamp: now(),
157 }
158 }
159 partialTextStarted = false
160 partialTextMessageId = null
161 partialTextContent = ''
162 }
163
164 function* closePartialReasoning(): Generator<StreamChunk> {
165 if (partialReasoningId) {

Callers 2

handleResultFunction · 0.85
handleStreamEventFunction · 0.85

Calls 1

nowFunction · 0.70

Tested by

no test coverage detected