mem7
LLM-powered long-term memory engine with a Rust core and Python bindings.
Quick start
use ;
async
LLM-powered long-term memory engine with a Rust core and Python bindings.
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(())
}