Skip to main content

RuntimeAgentStore

Trait RuntimeAgentStore 

Source
pub trait RuntimeAgentStore:
    AgentStore
    + Send
    + Sync {
    // Required method
    fn add_agent<'life0, 'async_trait>(
        &'life0 self,
        agent: Agent,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Agent store contract for runtime seeding and lookup.

Required Methods§

Source

fn add_agent<'life0, 'async_trait>( &'life0 self, agent: Agent, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Insert or replace an agent definition.

Implementations on Foreign Types§

Source§

impl RuntimeAgentStore for InMemoryAgentStore

Source§

fn add_agent<'life0, 'async_trait>( &'life0 self, agent: Agent, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§