Thanks to visit codestin.com
Credit goes to lib.rs

2 releases

0.1.4 Jan 3, 2026
0.1.3 Jan 1, 2026

#2257 in Database interfaces


Used in 3 crates (via enki-runtime)

LicenseRef-Enki-NC

115KB
2.5K SLoC

Enki Memory

Memory backend implementations for agent state persistence.

This crate provides pluggable storage backends implementing the enki_core::Memory trait:

Example

use enki_memory::InMemoryBackend;
use enki_core::{Memory, MemoryEntry, MemoryQuery};

let memory = InMemoryBackend::new();

// Store an entry
let entry = MemoryEntry::new("Important note");
let id = memory.store(entry).await?;

// Retrieve by ID
if let Some(entry) = memory.get(&id).await? {
    println!("Content: {}", entry.content);
}

Dependencies

~10–33MB
~403K SLoC