pub type AsyncToolFn = Arc<dyn Fn(Value, ToolContext) -> Pin<Box<dyn Future<Output = Result<ToolResult, Error>> + Send>> + Sync + Send>;Available on crate feature
toolkit only.Expand description
Type alias for async tool handler functions
Aliased Typeยง
pub struct AsyncToolFn { /* private fields */ }