pub trait ModeTool: Tool {
// Required methods
fn supported_modes(&self) -> Vec<&'static str>;
fn execute_mode<'life0, 'life1, 'async_trait>(
&'life0 self,
mode: &'life1 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Trait for tools that support multiple execution modes
Required Methods§
Sourcefn supported_modes(&self) -> Vec<&'static str>
fn supported_modes(&self) -> Vec<&'static str>
Get supported modes