Skip to main content

Crate walrus_memory

Crate walrus_memory 

Source
Expand description

Memory backends for Walrus agents.

Concrete implementations of the wcore::Memory trait: InMemory (volatile), SqliteMemory (persistent with FTS5 + vector recall), and FsMemory (filesystem-backed Markdown files, human-editable).

Memory abstractions (Memory, Embedder, MemoryEntry, RecallOptions) live in wcore.

All SQL lives in sql/*.sql files, loaded via include_str!.

All Memory types that are Clone + 'static automatically implement Hook via the blanket impl in wcore::runtime::hook.

Modules§

tools
Memory tool schemas and handlers for agent tool registration.

Structs§

FsMemory
Filesystem memory store backed by Markdown files.
InMemory
In-memory store backed by Arc<Mutex<Vec<(String, String)>>>.
MemoryEntry
A structured memory entry with metadata and optional embedding.
RecallOptions
Options controlling memory recall behavior.
SqliteMemory
SQLite-backed memory store with optional embedding support.

Traits§

Embedder
Converts text into a dense vector embedding.
Memory
Structured knowledge memory for LLM agents.