mem7 0.3.2

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(), images: vec![] },
    ];
    let result = engine.add(&messages, None, None, None, None, true).await?;
    println!("{result:?}");

    Ok(())
}