fn parse_and_validate_spec(
completion_content: &str,
validator: &Validator,
data_file: Option<DataFile<'_>>,
) -> Result<Value, String>Expand description
Parses one LLM answer, rejects any data the model supplied, attaches data_file and validates
the result against the Vega-Lite schema. The error string describes the failure in a form
suitable for feeding back to the model.