pub trait ToolObservationMemory: Send + Sync {
// Required methods
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 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;
}Expand description
Minimal trait for semantic-memory-backed tool observation storage/retrieval.
Required Methods§
Sourcefn 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.
Sourcefn 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".