Merge a streamed answer's parts
Merge the events of a streamed answer into keyed parts: text that appends, sources and related questions as parts of their own, patches to parts already sent, and a snapshot to pick up an interrupted stream
Merge the events of a streamed answer into keyed parts: text that appends, sources and related questions as parts of their own, patches to parts already sent, and a snapshot to pick up an interrupted stream
Give events, each { seq, type, key?, ... } as the stream sent it (types and how each merges are src/keyed-parts.json), and entry when continuing one an earlier call answered. Answers entry (seq, order, parts, drift, stalls) and resume ({ seq, identity }), the token a re-attach continues from. An event at or below the entry's seq is already held and adds nothing; a patch that does not apply is kept under drift and as a part of its own, never losing the answer.
Nothing: your AI starts it with your words.
Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.
Say to your AI: “Use Trillion to merge the events of a streamed answer into keyed parts: text that appends, sources and related questions as parts of their own, patches to parts already sent, and a snapshot to pick up an interrupted stream”