MCPcopy Create free account
hub / github.com/Noumena-Network/code / onStreamingText

Function onStreamingText

src/session/applyLocalQueryEvent.test.ts:295–301  ·  view source on GitHub ↗
(f: (current: string | null) => string | null)

Source from the content-addressed store, hash-verified

293 }
294
295 const onStreamingText = (f: (current: string | null) => string | null) => {
296 const next = f(state.streamingText)
297 if (next !== state.streamingText) {
298 state = { ...state, streamingText: next }
299 history.push({ ...state })
300 }
301 }
302
303 const deps: ApplyLocalQueryEventDeps = {
304 setMessages,

Callers 1

handleMessageFromStreamFunction · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected