Skip to main content

Crate openeruka

Crate openeruka 

Source
Expand description

§openeruka

Open core types and traits for the Eruka context memory system.

Eruka is a structured, knowledge-state-aware memory layer for AI agents. This crate provides the vocabulary every consumer needs: types for fields, entities, edges, and the epistemological states that make Eruka different.

§Quick start

use openeruka::{KnowledgeState, FieldPath, Confidence};

let path = FieldPath::new("identity/company_name").unwrap();
assert_eq!(path.as_str(), "identity/company_name");

// The core invariant: Confirmed facts resist Inferred overwrites
assert!( KnowledgeState::Confirmed.can_overwrite(&KnowledgeState::Inferred));
assert!(!KnowledgeState::Inferred.can_overwrite(&KnowledgeState::Confirmed));

let c = Confidence::new(0.9);
assert_eq!(c.value(), 0.9);

Re-exports§

pub use field::ErukaField;
pub use field::ErukaFieldWrite;
pub use field::FieldPath;
pub use field::KnowledgeState;
pub use field::Confidence;
pub use field::SourceType;
pub use field::ErukaCategory;
pub use entity::ErukaEntity;
pub use entity::EntityType;
pub use edge::ErukaEdge;
pub use edge::RelationType;
pub use error::ErukaError;

Modules§

api
Axum REST API handlers — compatible surface with eruka.dirmacs.com.
edge
Edge types for the Eruka knowledge graph.
entity
Entity types for the Eruka knowledge graph.
error
Error types for openeruka.
field
Core field types — the primary unit of Eruka context memory.
store
Storage backends for openeruka.