pub fn validate_structured_output(
validator: &Validator,
raw: &str,
) -> Result<Value, String>Expand description
Parse model text as JSON and validate against a compiled schema.
ยงErrors
Returns a human-readable validation error suitable for model feedback.