klieo-memory-sqlite 0.39.0

SQLite-backed implementations of klieo-core's memory traits.
Documentation

klieo-memory-sqlite

SQLite-backed implementations of klieo-core's memory traits.

Part of the klieo Rust agent framework.

Features

  • ShortTermMemory, LongTermMemory, and EpisodicMemory on SQLite
  • Optional fastembed feature for local embedding + sqlite-vec for vector recall
  • Zero external services required — ideal for local-first deployments

Usage

[dependencies]
klieo-memory-sqlite = "0.38"
# optional: features = ["fastembed", "sqlite-vec"]
use klieo_memory_sqlite::MemorySqlite;
use klieo_embed_common::DummyEmbedder;
use std::sync::Arc;

// Persistent file (recommended for dev):
let memory = MemorySqlite::new("agent.db", Arc::new(DummyEmbedder)).await?;

// In-memory (tests, CI):
let memory = MemorySqlite::new(":memory:", Arc::new(DummyEmbedder)).await?;

Swap DummyEmbedder for a real embedder (enable the fastembed feature) to get vector recall.

The returned MemorySqlite implements ShortTermMemory, LongTermMemory, and EpisodicMemory.

Status

0.38.x — pre-1.0; patch releases are backward-compatible. See docs/SEMVER.md.

License

MIT — see LICENSE.