pub trait Tool: BaseTool {
// Required method
fn invoke<'life0, 'async_trait>(
&'life0 self,
input: HashMap<String, Value>,
config: Option<RunnableConfig>,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Trait for tools that can be invoked with a single input