pub type TextToolHandler = Arc<dyn Fn(&str, &Value) -> FunctionResponse + Send + Sync>;Expand description
Callback type for executing tool calls.
Given a tool name and its arguments, returns a FunctionResponse.
This is the CLI counterpart to the SDK’s ToolHandler.
Aliased Type§
pub struct TextToolHandler { /* private fields */ }