adk-memory
Semantic memory and search for Rust Agent Development Kit (ADK-Rust) agents.
Overview
adk-memory provides long-term memory capabilities for the Rust Agent Development Kit (ADK-Rust):
- InMemoryMemoryService - Simple in-memory memory storage
- MemoryService - Trait for custom storage backends
- Semantic Search - Query memories by content similarity
- Memory Entries - Structured memory with content and metadata
Installation
[]
= "0.2.0"
Or use the meta-crate:
[]
= { = "0.2.0", = ["memory"] }
Quick Start
use ;
use Content;
use Utc;
// Create memory service
let service = new;
// Add memories from a session
let entries = vec!;
service.add_session.await?;
// Search memories
let response = service.search.await?;
for memory in response.memories
Memory Entry Structure
MemoryService Trait
Features
- Per-user memory isolation
- Simple keyword-based search
- Timestamp tracking
- Pluggable storage backends
Related Crates
- adk-rust - Meta-crate with all components
- adk-core - Core
Memorytrait - adk-runner - Memory injection during execution
License
Apache-2.0
Part of ADK-Rust
This crate is part of the ADK-Rust framework for building AI agents in Rust.