A3S Memory
A3S Memory
Pluggable memory storage for AI agents — MemoryStore trait, FileMemoryStore, InMemoryStore, and relevance scoring
A3S Memory
a3s-memory is a standalone Rust crate that provides the storage layer for agent memory. It has no knowledge of agents, sessions, or context injection — it owns exactly one thing: storing and retrieving MemoryItems.
Core (stable) Extensions (replaceable)
───────────────────────── ─────────────────────────
MemoryStore (trait) InMemoryStore
MemoryItem FileMemoryStore
MemoryType (your custom backend)
RelevanceConfigInstall
[dependencies]
a3s-memory = "0.1"For the A3S Code v2.1.0 Node SDK, the integration-tested path is
FileMemoryStore in agent.session() options:
import { Agent, FileMemoryStore } from '@a3s-lab/code';
const agent = await Agent.create('agent.acl');
const session = agent.session(process.cwd(), {
memoryStore: new FileMemoryStore('./memory'),
});What's in this crate
Prop
Type
What's NOT in this crate
Prop
Type
If you're building an agent with A3S Code, see Memory and API Contract for the integration-tested agent-layer behavior.