Skip to main content

Crate ai_memory

Crate ai_memory 

Source

Modules§

autonomy
Full-autonomy loop — stacks on the Track A curator daemon (#278).
bench
Pillar 3 / Stream E — ai-memory bench workload runner.
cli
CLI command modules. Wave 5a (v0.6.3) extracted these out of main.rs so each handler can be unit-tested by capturing output into a Vec<u8> via CliOutput instead of literal println!s.
color
ANSI color output for CLI — zero dependencies.
config
curator
Autonomous curator daemon (v0.6.1).
daemon_runtime
Daemon runtime — orchestration shell for the ai-memory binary.
db
embeddings
errors
federation
Federation autonomy — wires the quorum primitives from replication into the HTTP write path (v0.7 track C, PR 2 of N).
handlers
hnsw
HNSW (Hierarchical Navigable Small World) vector index for fast approximate nearest-neighbor search over memory embeddings.
identity
Non-Human Identity (NHI) resolution for agent_id.
llm
mcp
MCP (Model Context Protocol) server for ai-memory. Exposes memory operations as tools for any MCP-compatible AI client over stdio JSON-RPC.
metrics
v0.6.0.0 Prometheus metrics. Exposed at GET /metrics by the daemon.
mine
Retroactive conversation import from Claude, ChatGPT, and Slack exports.
models
replication
W-of-N quorum-write layer for the peer-mesh sync (v0.7 track C).
reranker
Cross-encoder reranking for search results.
subscriptions
v0.6.0.0 — webhook subscriptions.
tls
TLS / mTLS configuration and verifiers for the HTTP daemon.
toon
TOON (Token-Oriented Object Notation) serializer for ai-memory.
validate

Functions§

build_router