pub struct MemorySystem { /* private fields */ }Expand description
Memory system for agent state.
Implementations§
Source§impl MemorySystem
impl MemorySystem
Sourcepub fn recall(&self, _signal: &str) -> Vec<String>
pub fn recall(&self, _signal: &str) -> Vec<String>
Recall relevant memories for a signal.
Currently returns recent memories; future: semantic search via LLLV.
Sourcepub fn clear_short_term(&mut self)
pub fn clear_short_term(&mut self)
Clear short-term memory.
Sourcepub fn consolidate(&mut self, _events: &[String])
pub fn consolidate(&mut self, _events: &[String])
Consolidate recent events into long-term storage.
Stub for now; future: embed → pack → commit proof to LLLV.
Sourcepub fn short_term_len(&self) -> usize
pub fn short_term_len(&self) -> usize
Get the number of items in short-term memory.
Trait Implementations§
Source§impl Debug for MemorySystem
impl Debug for MemorySystem
Source§impl Default for MemorySystem
impl Default for MemorySystem
Source§fn default() -> MemorySystem
fn default() -> MemorySystem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemorySystem
impl RefUnwindSafe for MemorySystem
impl Send for MemorySystem
impl Sync for MemorySystem
impl Unpin for MemorySystem
impl UnwindSafe for MemorySystem
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