pub struct RepoMemoryStore { /* private fields */ }Implementations§
Source§impl RepoMemoryStore
impl RepoMemoryStore
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn open_repo(repo: impl AsRef<Path>) -> Result<Self>
pub fn remember( &self, text: &str, source: &str, confidence: Confidence, ) -> Result<MemoryFact>
pub fn get(&self, id: &MemoryFactId) -> Result<Option<MemoryFact>>
pub fn search( &self, query: &str, limit: usize, ) -> Result<Vec<MemorySearchResult>>
pub fn recent(&self, limit: usize) -> Result<Vec<MemoryFact>>
Auto Trait Implementations§
impl !Freeze for RepoMemoryStore
impl RefUnwindSafe for RepoMemoryStore
impl Send for RepoMemoryStore
impl Sync for RepoMemoryStore
impl Unpin for RepoMemoryStore
impl UnsafeUnpin for RepoMemoryStore
impl UnwindSafe for RepoMemoryStore
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