MCPcopy Create free account
hub / github.com/TanStack/ai / closeText

Function closeText

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

Source from the content-addressed store, hash-verified

143 }
144
145 function* closeText(): Generator<StreamChunk> {
146 if (openTextId !== null) {
147 yield {
148 type: EventType.TEXT_MESSAGE_END,
149 messageId: openTextId,
150 model,
151 timestamp: now(),
152 }
153 openTextId = null
154 }
155 }
156
157 function* closeReasoning(): Generator<StreamChunk> {
158 if (openReasoningId !== null) {

Callers 5

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