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§
Sourcefn execute_async<'a>(
&'a self,
context: &'a ThinkToolContext,
) -> Pin<Box<dyn Future<Output = Result<ThinkToolOutput>> + Send + 'a>>
fn execute_async<'a>( &'a self, context: &'a ThinkToolContext, ) -> Pin<Box<dyn Future<Output = Result<ThinkToolOutput>> + Send + 'a>>
Execute the module asynchronously