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