pub trait ToolManager: Send + Sync {
// Required methods
fn is_available<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_version<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<Option<Version>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn install<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 InstallConfig,
) -> Pin<Box<dyn Future<Output = VxResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = VxResult<ExecutionResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = VxResult<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Core trait for tool management
Required Methods§
Sourcefn is_available<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_available<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a tool is available
Sourcefn get_version<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<Option<Version>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_version<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<Option<Version>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get installed version of a tool
Sourcefn install<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 InstallConfig,
) -> Pin<Box<dyn Future<Output = VxResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn install<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 InstallConfig,
) -> Pin<Box<dyn Future<Output = VxResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Install a tool
Sourcefn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = VxResult<ExecutionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = VxResult<ExecutionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute a tool