pub type AsyncToolHandler = Arc<dyn Fn(Value, &ToolContext) -> Pin<Box<dyn Future<Output = Result<AgentToolResult, ToolError>> + Send>> + Send + Sync>;Expand description
Async handler function type for ClosureTool.
Aliased Type§
pub struct AsyncToolHandler { /* private fields */ }