Trait Agent

Source
pub trait Agent: Send + Sync {
    // Required methods
    fn plan<'life0, 'life1, 'async_trait>(
        &'life0 self,
        intermediate_steps: &'life1 [(AgentAction, String)],
        inputs: PromptArgs,
    ) -> Pin<Box<dyn Future<Output = Result<AgentEvent, AgentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_tools(&self) -> Vec<Arc<dyn Tool>>;
}

Required Methods§

Source

fn plan<'life0, 'life1, 'async_trait>( &'life0 self, intermediate_steps: &'life1 [(AgentAction, String)], inputs: PromptArgs, ) -> Pin<Box<dyn Future<Output = Result<AgentEvent, AgentError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_tools(&self) -> Vec<Arc<dyn Tool>>

Implementors§