1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! Agent Memory RS
//!
//! A secure, local-first memory layer for AI agents.
//!
//! This crate is designed to provide a predictable, typed, auditable API for:
//!
//! - project-scoped local memory
//! - namespaced agent state
//! - durable on-disk persistence
//! - strict validation of keys and paths
//! - future-safe extension toward multi-agent workflows
//!
//! # Module layout
//!
//! - [`error`] contains crate-wide error types
//! - [`types`] contains domain-specific typed wrappers
//! - [`config`] contains configuration loading and validation
//!! - [`core`] contains foundational validation and namespace logic
//! - [`store`] contains the durable storage engine
//! - [`cli`] contains CLI-facing logic used by binaries
//!
//! # Stability note
//!
//! This crate is in early development. The goal is to make the *behavior*
//! predictable before making the public API large.
/// Re-export of the crate's primary error type.
///
/// This keeps call sites ergonomic:
///
/// ```rust,no_run
/// use agentmem::Result;
/// ```
///
/// rather than forcing every consumer to spell the full error path.
pub use crate;
/// Re-export of the high-level store type.
///
/// This is intended to become the main entrypoint for both library consumers
/// and internal CLI flows.
pub use crateStore;
/// Re-export of frequently used typed domain values.
///
/// These wrappers exist to keep the API explicit and harder to misuse than
/// passing around unvalidated raw strings everywhere.
pub use crate;