pub struct TemporalMemory { /* private fields */ }Expand description
Temporal memory coordinator
Implementations§
Source§impl TemporalMemory
impl TemporalMemory
Sourcepub fn new(config: TemporalConfig) -> Self
pub fn new(config: TemporalConfig) -> Self
Create new temporal memory
Sourcepub fn store(
&self,
pattern: Pattern,
antecedents: &[PatternId],
) -> Result<PatternId>
pub fn store( &self, pattern: Pattern, antecedents: &[PatternId], ) -> Result<PatternId>
Store pattern with causal context
Sourcepub fn mark_accessed(&self, id: &PatternId)
pub fn mark_accessed(&self, id: &PatternId)
Update pattern access tracking
Sourcepub fn causal_query(
&self,
query: &Query,
reference_time: SubstrateTime,
cone_type: CausalConeType,
) -> Vec<CausalResult>
pub fn causal_query( &self, query: &Query, reference_time: SubstrateTime, cone_type: CausalConeType, ) -> Vec<CausalResult>
Causal cone query: retrieve within light-cone constraints
Sourcepub fn anticipate(&self, hints: &[AnticipationHint])
pub fn anticipate(&self, hints: &[AnticipationHint])
Anticipatory pre-fetch for predictive retrieval
Sourcepub fn check_cache(&self, query: &Query) -> Option<Vec<SearchResult>>
pub fn check_cache(&self, query: &Query) -> Option<Vec<SearchResult>>
Check prefetch cache for query
Sourcepub fn consolidate(&self) -> ConsolidationResult
pub fn consolidate(&self) -> ConsolidationResult
Memory consolidation: short-term -> long-term
Sourcepub fn causal_graph(&self) -> &CausalGraph
pub fn causal_graph(&self) -> &CausalGraph
Get causal graph reference
Sourcepub fn short_term(&self) -> &ShortTermBuffer
pub fn short_term(&self) -> &ShortTermBuffer
Get short-term buffer reference
Sourcepub fn long_term(&self) -> &LongTermStore
pub fn long_term(&self) -> &LongTermStore
Get long-term store reference
Sourcepub fn stats(&self) -> TemporalStats
pub fn stats(&self) -> TemporalStats
Get statistics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TemporalMemory
impl !RefUnwindSafe for TemporalMemory
impl Send for TemporalMemory
impl Sync for TemporalMemory
impl Unpin for TemporalMemory
impl !UnwindSafe for TemporalMemory
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