pub struct SessionRetrievalStore { /* private fields */ }Implementations§
Source§impl SessionRetrievalStore
impl SessionRetrievalStore
pub fn new(memory: Arc<dyn MemoryStore>) -> Self
Trait Implementations§
Source§impl Clone for SessionRetrievalStore
impl Clone for SessionRetrievalStore
Source§fn clone(&self) -> SessionRetrievalStore
fn clone(&self) -> SessionRetrievalStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl RetrievalStore for SessionRetrievalStore
impl RetrievalStore for SessionRetrievalStore
fn exact_replay<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionRecord>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn semantic_search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
query: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RetrievedItem>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn graph_neighbors<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
resource_id: &'life2 str,
max_hops: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RelationshipEdge>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn recent_working_set<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<WorkingSet, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for SessionRetrievalStore
impl !RefUnwindSafe for SessionRetrievalStore
impl Send for SessionRetrievalStore
impl Sync for SessionRetrievalStore
impl Unpin for SessionRetrievalStore
impl UnsafeUnpin for SessionRetrievalStore
impl !UnwindSafe for SessionRetrievalStore
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