Type Alias AsyncToolFn

Source
pub type AsyncToolFn = Arc<dyn Fn(Value, ToolContext) -> Pin<Box<dyn Future<Output = Result<ToolResult, Error>> + Send>> + Sync + Send>;
Expand description

Type alias for async tool handler functions

Aliased Typeยง

pub struct AsyncToolFn { /* private fields */ }