pub trait InternalTool {
type Input;
type Output;
type Error;
// Required methods
fn execute<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn metadata(&self) -> ToolMetadata;
}Expand description
Tool trait for internal AGCodex tools
Required Associated Types§
Required Methods§
Sourcefn execute<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the tool with the given input
Sourcefn metadata(&self) -> ToolMetadata
fn metadata(&self) -> ToolMetadata
Get tool metadata