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
//! # AllSource Prime — Unified Agent Memory Engine
//!
//! Prime provides vectors, graph relationships, and temporal history in a single
//! embedded engine. Everything is stored as immutable events in the WAL, with
//! projections maintaining indexed views for fast queries.
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use allsource_core::prime::{Prime, Direction};
//!
//! let prime = Prime::open("~/.agent/memory").await?;
//!
//! // Graph
//! let alice = prime.add_node("person", json!({"name": "Alice"})).await?;
//! let project = prime.add_node("project", json!({"name": "Prime"})).await?;
//! prime.add_edge(&alice, &project, "works_on", None).await?;
//!
//! // Traverse
//! let team = prime.neighbors(&project, None, Direction::Incoming).await?;
//! ```
// Re-export commonly used types
pub use ;
pub use ;
pub use ;