Skip to main content

ToolCallback

Type Alias ToolCallback 

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

Custom tool callback. Receives the called function and returns the tool output as a string.