Skip to main content

Module basic

Module basic 

Source
Expand description

BasicMemoryProvider โ€” the v1 backing implementation.

In-process, in-memory, deliberately simple. Implements retrieval, writes, session lifecycle, simple deletes, export, stats, summarization, rollups, and re-embed metadata updates when a Summarizer is attached; no-ops for update_importance and supersede.

Lexical retrieval only โ€” substring + recency. A full storage backend (e.g. the cel-memory-sqlite crate) replaces this with hybrid (vector + FTS + recency) retrieval.

The persistence layer here is Arc<Mutex<State>>. It is useful for tests, examples, and lightweight agents that do not need durability across process restarts.

Structsยง

BasicMemoryProvider
The v1 backing implementation. Cheap to construct; Clone is shallow (shares the underlying state). Safe to share across tasks.