pub struct OmegaStore { /* private fields */ }Expand description
Main storage interface for ExoGenesis Omega
Implementations§
Source§impl OmegaStore
impl OmegaStore
Sourcepub fn new_in_memory() -> Result<Self>
pub fn new_in_memory() -> Result<Self>
Create an in-memory database (useful for testing)
Sourcepub fn store_memory(&self, memory: &StoredMemory) -> Result<()>
pub fn store_memory(&self, memory: &StoredMemory) -> Result<()>
Store a memory in the database
Sourcepub fn get_memory(&self, id: &str) -> Result<StoredMemory>
pub fn get_memory(&self, id: &str) -> Result<StoredMemory>
Retrieve a memory by ID
Sourcepub fn query_memories_by_tier(&self, tier: i32) -> Result<Vec<StoredMemory>>
pub fn query_memories_by_tier(&self, tier: i32) -> Result<Vec<StoredMemory>>
Query memories by tier
Sourcepub fn update_memory_access(&self, id: &str, timestamp: i64) -> Result<()>
pub fn update_memory_access(&self, id: &str, timestamp: i64) -> Result<()>
Update memory last accessed timestamp
Sourcepub fn store_skill(&self, skill: &StoredSkill) -> Result<()>
pub fn store_skill(&self, skill: &StoredSkill) -> Result<()>
Store a skill in the database
Sourcepub fn get_skill(&self, id: &str) -> Result<StoredSkill>
pub fn get_skill(&self, id: &str) -> Result<StoredSkill>
Retrieve a skill by ID
Sourcepub fn get_skills_by_pattern(&self, pattern: &str) -> Result<Vec<StoredSkill>>
pub fn get_skills_by_pattern(&self, pattern: &str) -> Result<Vec<StoredSkill>>
Get skills matching a trigger pattern
Sourcepub fn increment_skill_success(&self, id: &str, timestamp: i64) -> Result<()>
pub fn increment_skill_success(&self, id: &str, timestamp: i64) -> Result<()>
Increment skill success count
Sourcepub fn store_architecture(&self, arch: &StoredArchitecture) -> Result<()>
pub fn store_architecture(&self, arch: &StoredArchitecture) -> Result<()>
Store an architecture in the database
Sourcepub fn get_architecture(&self, id: &str) -> Result<StoredArchitecture>
pub fn get_architecture(&self, id: &str) -> Result<StoredArchitecture>
Retrieve an architecture by ID
Sourcepub fn get_architectures_by_paradigm(
&self,
paradigm: &str,
) -> Result<Vec<StoredArchitecture>>
pub fn get_architectures_by_paradigm( &self, paradigm: &str, ) -> Result<Vec<StoredArchitecture>>
Get all architectures by paradigm
Sourcepub fn store_intelligence(&self, intel: &StoredIntelligence) -> Result<()>
pub fn store_intelligence(&self, intel: &StoredIntelligence) -> Result<()>
Store an intelligence in the database
Sourcepub fn get_intelligence(&self, id: &str) -> Result<StoredIntelligence>
pub fn get_intelligence(&self, id: &str) -> Result<StoredIntelligence>
Retrieve an intelligence by ID
Sourcepub fn get_intelligences_by_arch(
&self,
arch_id: &str,
) -> Result<Vec<StoredIntelligence>>
pub fn get_intelligences_by_arch( &self, arch_id: &str, ) -> Result<Vec<StoredIntelligence>>
Get intelligences by architecture ID
Sourcepub fn store_vector(&self, vector: &StoredVector) -> Result<()>
pub fn store_vector(&self, vector: &StoredVector) -> Result<()>
Store a vector embedding
Sourcepub fn get_vector_by_memory(&self, memory_id: &str) -> Result<StoredVector>
pub fn get_vector_by_memory(&self, memory_id: &str) -> Result<StoredVector>
Get vector by memory ID
Sourcepub fn store_reflexion(&self, episode: &StoredReflexionEpisode) -> Result<()>
pub fn store_reflexion(&self, episode: &StoredReflexionEpisode) -> Result<()>
Store a reflexion episode
Sourcepub fn get_reflexions_by_memory(
&self,
memory_id: &str,
) -> Result<Vec<StoredReflexionEpisode>>
pub fn get_reflexions_by_memory( &self, memory_id: &str, ) -> Result<Vec<StoredReflexionEpisode>>
Get reflexion episodes by memory ID
Sourcepub fn store_causal_edge(&self, edge: &StoredCausalEdge) -> Result<()>
pub fn store_causal_edge(&self, edge: &StoredCausalEdge) -> Result<()>
Store a causal edge
Sourcepub fn get_causal_edges_from(
&self,
memory_id: &str,
) -> Result<Vec<StoredCausalEdge>>
pub fn get_causal_edges_from( &self, memory_id: &str, ) -> Result<Vec<StoredCausalEdge>>
Get outgoing causal edges from a memory
Sourcepub fn get_statistics(&self) -> Result<DatabaseStatistics>
pub fn get_statistics(&self) -> Result<DatabaseStatistics>
Get database statistics
Auto Trait Implementations§
impl !Freeze for OmegaStore
impl !RefUnwindSafe for OmegaStore
impl Send for OmegaStore
impl !Sync for OmegaStore
impl Unpin for OmegaStore
impl !UnwindSafe for OmegaStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more