pub struct MemoryServiceAdapter { /* private fields */ }Expand description
Adapts any MemoryService into an adk_core::Memory implementation.
Binds app_name and user_id at construction so the runner’s
search(query: &str) calls are forwarded with full context.
Implementations§
Trait Implementations§
Source§impl Memory for MemoryServiceAdapter
impl Memory for MemoryServiceAdapter
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn add<'life0, 'async_trait>(
&'life0 self,
entry: MemoryEntry,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add<'life0, 'async_trait>(
&'life0 self,
entry: MemoryEntry,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a single memory entry. Read more
Auto Trait Implementations§
impl Freeze for MemoryServiceAdapter
impl !RefUnwindSafe for MemoryServiceAdapter
impl Send for MemoryServiceAdapter
impl Sync for MemoryServiceAdapter
impl Unpin for MemoryServiceAdapter
impl UnsafeUnpin for MemoryServiceAdapter
impl !UnwindSafe for MemoryServiceAdapter
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