pub type ToolFn = Box<dyn Fn(&str) -> ToolResult>;Expand description
A tool handler: takes a JSON string input, returns a ToolResult.
Uses Box<dyn Fn> for WASM-compatible dispatch — no async, no Send
requirement in single-threaded WASM environments.
Aliased Type§
pub struct ToolFn(/* private fields */);