Skip to main content

type_mismatch

Function type_mismatch 

Source
pub fn type_mismatch(field: &str, value: &Value, expected: &str) -> ToolError
Expand description

The one error every type mismatch on a tool parameter produces.

Names the parameter, the type that arrived, and the type the schema declares, plus the offending value — everything the caller needs to fix the call on the next turn without another round trip.