Skip to main content

AgentMemoryService

Trait AgentMemoryService 

Source
pub trait AgentMemoryService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_memory_settings<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetMemorySettingsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MemorySettings>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_memory_settings<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateMemorySettingsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MemorySettings>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_memories<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListMemoriesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListMemoriesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn confirm_memory<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ConfirmMemoryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Memory>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_memory<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteMemoryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with AgentMemoryServiceServer.

Required Methods§

Source

fn get_memory_settings<'life0, 'async_trait>( &'life0 self, request: Request<GetMemorySettingsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<MemorySettings>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_memory_settings<'life0, 'async_trait>( &'life0 self, request: Request<UpdateMemorySettingsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<MemorySettings>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_memories<'life0, 'async_trait>( &'life0 self, request: Request<ListMemoriesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListMemoriesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn confirm_memory<'life0, 'async_trait>( &'life0 self, request: Request<ConfirmMemoryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Memory>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_memory<'life0, 'async_trait>( &'life0 self, request: Request<DeleteMemoryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§