Expand description
Prepared memory snapshots — the immutable unit the model consumes.
A snapshot is frozen when a turn begins and never changes while that turn is in flight. Without that, a slow retrieval landing mid-response could change what the model “remembers” halfway through a sentence.
Structs§
- Prepared
Memory Snapshot - An immutable, budgeted set of memories prepared for a turn.
- Retrieved
Memory - One memory as it will be shown to the model.
Constants§
- SNAPSHOT_
TTL_ SECONDS - How long a prepared snapshot stays usable before it is considered stale.
Functions§
- estimate_
tokens - Approximate the token cost of a string.
- fuse_
snapshots - Merge a live search with a prepared snapshot, ranked by RRF.