mem7 0.1.0

LLM-powered long-term memory engine — Rust core with Python bindings
Documentation

mem7

LLM-powered long-term memory engine with a Rust core and Python bindings.

Quick start

use mem7::{MemoryEngine, MemoryEngineConfig, ChatMessage, MemoryFilter};

#[tokio::main]
async fn main() -> mem7::Result<()> {
    let config = MemoryEngineConfig::default();
    let engine = MemoryEngine::new(config).await?;

    let messages = vec![
        ChatMessage { role: "user".into(), content: "I love Rust".into() },
    ];
    let result = engine.add(&messages, None, None, None).await?;
    println!("{result:?}");

    Ok(())
}