Skip to main content

validate_tool_arguments

Function validate_tool_arguments 

Source
pub fn validate_tool_arguments(
    tool: &ToolDeclaration,
    call: &ToolCall,
) -> Result<Value, String>
Expand description

Validated, coerced arguments for call, or the error pi reports to the model.