pub struct VertexAiMemoryBankService { /* private fields */ }Expand description
Memory service backed by Vertex AI Memory Bank.
Uses the Vertex AI Memory Bank API for structured memory storage and retrieval with automatic summarization.
Implementations§
Source§impl VertexAiMemoryBankService
impl VertexAiMemoryBankService
Sourcepub fn new(config: VertexAiMemoryBankConfig) -> Self
pub fn new(config: VertexAiMemoryBankConfig) -> Self
Create a new Vertex AI Memory Bank service.
Sourcepub fn memory_bank(&self) -> &str
pub fn memory_bank(&self) -> &str
Returns the configured memory bank resource.
Trait Implementations§
Source§impl Clone for VertexAiMemoryBankService
impl Clone for VertexAiMemoryBankService
Source§fn clone(&self) -> VertexAiMemoryBankService
fn clone(&self) -> VertexAiMemoryBankService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VertexAiMemoryBankService
impl Debug for VertexAiMemoryBankService
Source§impl MemoryService for VertexAiMemoryBankService
impl MemoryService for VertexAiMemoryBankService
Source§fn store<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_entry: MemoryEntry,
) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_entry: MemoryEntry,
) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store a memory entry for a session.
Source§fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<MemoryEntry>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<MemoryEntry>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Retrieve a memory entry by key.
Source§fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all memory entries for a session.
Source§fn search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_query: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_query: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Search memory entries by a query string (simple substring match in default impl).
Source§fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Delete a memory entry.
Auto Trait Implementations§
impl Freeze for VertexAiMemoryBankService
impl RefUnwindSafe for VertexAiMemoryBankService
impl Send for VertexAiMemoryBankService
impl Sync for VertexAiMemoryBankService
impl Unpin for VertexAiMemoryBankService
impl UnsafeUnpin for VertexAiMemoryBankService
impl UnwindSafe for VertexAiMemoryBankService
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