Skip to main content

car_memgine/
lib.rs

1//! Memgine — graph-based memory engine for Common Agent Runtime.
2//!
3//! Memory is a graph. Nodes are facts, skills, conclusions, conversations, identity, environment.
4//! Edges: Supersedes, DependsOn, RelatedTo, Triggers, TemporalNext, CitesPremise.
5//!
6//! Skills are learned procedures — stored as graph nodes with trigger edges,
7//! matched via spreading activation, tracked for success/failure.
8//!
9//! Conclusions are derived knowledge citing premise facts — automatically
10//! invalidated when premises change (cascade invalidation).
11
12pub mod compaction;
13pub mod confidence;
14pub mod config;
15pub mod constraint_checker;
16pub mod conversation_store;
17pub mod distill;
18pub mod engine;
19pub mod graph;
20pub mod project;
21pub mod query_classifier;
22pub mod reflection;
23pub mod trajectory;
24
25pub use compaction::{CompactionResult, ConversationCompactionReport};
26pub use config::{ContextMode, MemgineConfig};
27pub use conversation_store::{ConversationStore, StoredTurn};
28pub use distill::{DistilledSkill, TraceEvent};
29pub use engine::{ConsolidationReport, DomainStats, MemgineEngine};
30pub use graph::{
31    detect_content_type, stem, synonym_expand, tokenize_for_content, CodeLanguage, ContentType,
32    EdgeKind, FactMetadata, MemEdge, MemKind, MemNode, MemoryGraph, Partition, Provenance,
33    RetrievalHit, SkillMeta, SkillOutcome, SkillScope, SkillStats, SkillTrigger,
34};
35pub use petgraph::stable_graph::NodeIndex;
36pub use project::{ConfigOverrides, DotCarProject, KnowledgeEntry, PolicyRule};
37pub use reflection::{ReflectionInsight, ReflectionReport};
38pub use trajectory::{Trajectory, TrajectoryOutcome, TrajectoryStats, TrajectoryStore};