Type Alias ToolCallback

Source
pub type ToolCallback = dyn Fn(&CalledFunction) -> Result<String> + Send + Sync;
Expand description

Callback used for custom tool functions. Receives the called function (name and JSON arguments) and returns the tool output as a string.