Skip to main content

Module chunk

Module chunk 

Source
Expand description

Memory chunk — the primary persisted unit.

One row in memory_chunks. Every category of memory (chat / action / fire / observation / correction / job_summary / context / rollup) is a chunk, with the kind discriminator and kind-specific structured fields living in metadata. The single embedded/FTS-indexed text is content.

The corresponding SQL schema (the memory_chunks table and its indexes) lives in the cel-memory-sqlite crate’s migrations.

Structs§

MemoryChunk
A persisted memory unit.
NewMemoryChunk
Input to crate::MemoryProvider::write. The fields the provider fills in (id, created_at, tier, embedding model+dim) are absent here.

Enums§

ChunkKind
Categories of memory. Drives kind-filtered retrieval and per-kind retention horizons.
ChunkSource
Where the chunk came from. Distinct from caller_id: source is the producer category, while caller_id is the originator of the underlying activity (for example an agent id, client id, or service name).
MemoryTier
Which tier a chunk currently lives in.