pub fn decode_tool_specs(
value: Option<&JsonValue>,
) -> Result<Vec<ToolSpec>, ChatWireError>Expand description
Decode OpenAI-style function tools from a request’s tools value: an array of
{type: "function", function: {name, description?, parameters?}}. Absent →
empty; malformed → ChatWireError.