Skip to main content

ToolHandler

Type Alias ToolHandler 

Source
pub type ToolHandler = fn(&Value) -> Result<Value, String>;
Expand description

Tool handler function type

A tool handler takes JSON arguments and returns either a JSON result or an error message.