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

Function flush

src/utils/toolResultStorage.ts:625–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

623 let current: ToolResultCandidate[] = []
624
625 const flush = () => {
626 if (current.length > 0) groups.push(current)
627 current = []
628 }
629
630 // Track all assistant message.ids seen so far — same-ID fragments are
631 // merged by normalizeMessagesForAPI (messages.ts ~2126 walks back PAST

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected