pub struct GraphMemory { /* private fields */ }Expand description
Graph-backed memory store.
Implementations§
Source§impl GraphMemory
impl GraphMemory
Sourcepub fn open_in_memory() -> Result<Self>
pub fn open_in_memory() -> Result<Self>
Fallback: graph feature not enabled.
pub fn store_memory(&self, _: &str, _: MemoryType, _: f32) -> Result<String>
pub fn recall_top_k(&self, _: &str, _: usize) -> Vec<(String, f32)>
pub fn link_memories(&self, _: &str, _: &str, _: &str) -> Result<()>
pub fn tag_memory(&self, _: &str, _: &str) -> Result<()>
pub fn record_session(&self, _: &str, _: Option<&str>, _: u32) -> Result<()>
pub fn revalidate_memory(&self, _: &str) -> Result<bool>
pub fn recall(&self, _: &str, _: usize) -> Vec<String>
pub fn by_type(&self, _: MemoryType) -> Vec<String>
pub fn by_topic(&self, _: &str) -> Vec<String>
pub fn stats(&self) -> GraphStats
pub fn schema_version(&self) -> VersionCheck
Auto Trait Implementations§
impl Freeze for GraphMemory
impl RefUnwindSafe for GraphMemory
impl Send for GraphMemory
impl Sync for GraphMemory
impl Unpin for GraphMemory
impl UnsafeUnpin for GraphMemory
impl UnwindSafe for GraphMemory
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