pub struct InMemoryToolObservationMemory { /* private fields */ }Expand description
Small test/demonstration implementation that mimics scoped semantic-memory retrieval.
Implementations§
Source§impl InMemoryToolObservationMemory
impl InMemoryToolObservationMemory
Sourcepub fn records(&self) -> Vec<ToolObservationMemoryRecordV1>
pub fn records(&self) -> Vec<ToolObservationMemoryRecordV1>
Returns all records currently stored in the in-memory implementation.
Trait Implementations§
Source§impl Default for InMemoryToolObservationMemory
impl Default for InMemoryToolObservationMemory
Source§fn default() -> InMemoryToolObservationMemory
fn default() -> InMemoryToolObservationMemory
Returns the “default value” for a type. Read more
Source§impl ToolObservationMemory for InMemoryToolObservationMemory
impl ToolObservationMemory for InMemoryToolObservationMemory
Source§fn store_tool_observation<'life0, 'async_trait>(
&'life0 self,
record: ToolObservationMemoryRecordV1,
) -> Pin<Box<dyn Future<Output = Result<(), ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_tool_observation<'life0, 'async_trait>(
&'life0 self,
record: ToolObservationMemoryRecordV1,
) -> Pin<Box<dyn Future<Output = Result<(), ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store a tool observation through the configured memory substrate.
Source§fn find_similar_tool_observations<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
scope: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<ToolObservationMemorySearchV1, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_similar_tool_observations<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
scope: &'life2 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<ToolObservationMemorySearchV1, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Retrieve similar prior observations through semantic-memory; candidate-only remains non-authoritative.
Auto Trait Implementations§
impl !Freeze for InMemoryToolObservationMemory
impl RefUnwindSafe for InMemoryToolObservationMemory
impl Send for InMemoryToolObservationMemory
impl Sync for InMemoryToolObservationMemory
impl Unpin for InMemoryToolObservationMemory
impl UnsafeUnpin for InMemoryToolObservationMemory
impl UnwindSafe for InMemoryToolObservationMemory
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