Trait RunCommand

Source
pub trait RunCommand: Sync + Send {
    // Required method
    fn run<'life0, 'async_trait>(
        &'life0 self,
        execution_strategy: ToolCallExecutionStrategy,
        arguments: Option<Vec<String>>,
        logger: Arc<Logger>,
        system_message: Option<(String, usize)>,
    ) -> Pin<Box<dyn Future<Output = Result<(Option<String>, Option<Vec<String>>), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn run<'life0, 'async_trait>( &'life0 self, execution_strategy: ToolCallExecutionStrategy, arguments: Option<Vec<String>>, logger: Arc<Logger>, system_message: Option<(String, usize)>, ) -> Pin<Box<dyn Future<Output = Result<(Option<String>, Option<Vec<String>>), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§