Module snapshot

Module snapshot 

Source
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§

PreparedMemorySnapshot
An immutable, budgeted set of memories prepared for a turn.
RetrievedMemory
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.