pub struct NamespacedMemory<'a> {
pub namespace: &'static str,
/* private fields */
}Expand description
Namespace-bound view over a MemoryClient.
Returned by MemoryClient::short_term, MemoryClient::long_term,
MemoryClient::entity, MemoryClient::contextual. Every method
forwards to the parent client with the namespace prefilled.
Fields§
§namespace: &'static strImplementations§
Source§impl<'a> NamespacedMemory<'a>
impl<'a> NamespacedMemory<'a>
pub async fn set( &self, key: &str, value: &str, tags: &[&str], embedding: Option<Vec<f32>>, ) -> AgentsResult<MemoryEntry>
pub async fn get(&self, key: &str) -> AgentsResult<MemoryEntry>
pub async fn delete(&self, key: &str) -> AgentsResult<()>
pub async fn list( &self, limit: usize, offset: usize, ) -> AgentsResult<MemoryListResponse>
pub async fn search( &self, options: SearchOptions, ) -> AgentsResult<MemorySearchResponse>
Auto Trait Implementations§
impl<'a> Freeze for NamespacedMemory<'a>
impl<'a> !RefUnwindSafe for NamespacedMemory<'a>
impl<'a> Send for NamespacedMemory<'a>
impl<'a> Sync for NamespacedMemory<'a>
impl<'a> Unpin for NamespacedMemory<'a>
impl<'a> UnsafeUnpin for NamespacedMemory<'a>
impl<'a> !UnwindSafe for NamespacedMemory<'a>
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