Skip to main content

mentedb_core/
lib.rs

1//! MenteDB Core: fundamental types for the mind database.
2//!
3//! This crate defines the shared data model used by all MenteDB subsystems:
4//!
5//! - [`MemoryNode`]: The atomic unit of knowledge with embeddings, metadata, and tags
6//! - [`MemoryEdge`]: Typed, weighted relationships between memories
7//! - [`MemoryTier`]: Cognitive inspired storage hierarchy
8//! - [`MenteError`]: Unified error type for the workspace
9//! - [`MenteConfig`]: Top level configuration
10//! - [`Agent`] and [`MemorySpace`]: Multi tenant isolation primitives
11//! - [`EventBus`]: Publish/subscribe event system
12//! - [`Version`] and [`VersionStore`]: MVCC versioning for conflict detection
13
14pub mod agent;
15pub mod config;
16pub mod conflict;
17pub mod edge;
18pub mod error;
19pub mod event;
20pub mod limits;
21pub mod memory;
22pub mod metrics;
23pub mod mvcc;
24pub mod space;
25pub mod text;
26pub mod tier;
27pub mod types;
28
29pub use agent::{Agent, AgentRegistry};
30pub use config::MenteConfig;
31pub use conflict::{Conflict, ConflictResolver, ConflictVersion, Resolution};
32pub use edge::MemoryEdge;
33pub use error::MenteError;
34pub use event::{EventBus, MenteEvent};
35pub use limits::{ResourceLimits, ResourceTracker};
36pub use memory::MemoryNode;
37pub use metrics::Metrics;
38pub use mvcc::{Version, VersionStore};
39pub use space::{MemorySpace, Permission, SpaceManager};
40pub use tier::MemoryTier;