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

Function resetState

packages/ai/src/middlewares/content-guard.ts:169–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 let lastMessageId = ''
168
169 function resetState() {
170 rawAccumulated = ''
171 emittedFilteredLength = 0
172 lastMessageId = ''
173 }
174
175 function flushBuffer(): StreamChunk | null {
176 if (rawAccumulated.length === 0) return null

Callers 3

flushBufferFunction · 0.85
onStartFunction · 0.85
TestPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected