AsyncThinkToolModule

Trait AsyncThinkToolModule 

Source
pub trait AsyncThinkToolModule: ThinkToolModule {
    // Required method
    fn execute_async<'a>(
        &'a self,
        context: &'a ThinkToolContext,
    ) -> Pin<Box<dyn Future<Output = Result<ThinkToolOutput>> + Send + 'a>>;
}
Expand description

Trait for async ThinkTool execution

Required Methods§

Source

fn execute_async<'a>( &'a self, context: &'a ThinkToolContext, ) -> Pin<Box<dyn Future<Output = Result<ThinkToolOutput>> + Send + 'a>>

Execute the module asynchronously

Implementors§