Skip to main content

ToolHandler

Type Alias ToolHandler 

Source
pub type ToolHandler = Box<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<Value>> + Send>> + Send + Sync>;
Expand description

Async handler for a tool call.

Aliased Type§

pub struct ToolHandler(/* private fields */);