Skip to main content

validate_evals_config

Function validate_evals_config 

Source
pub fn validate_evals_config(
    config: &Value,
    source: &str,
) -> Result<EvalsConfig, ValidationError>
Expand description

Validate a parsed evals.json. Runs the structural schema check, then the supplemental duplicate-id guard (uniqueness by a sub-field isn’t expressible in JSON Schema draft-07), returning the typed config on success.