Skip to main content

run

Function run 

Source
pub fn run(run_id: &str, value: &Value) -> Vec<ErrorEntry>
Expand description

Validate one run of an Eval, written under run_id (the path segment of PUT /evals/{ns}/{name}/runs/{run_id}, or the element’s own run_id in a batch). Returns every failure, sorted by (path, code); empty when the run is accepted.

Both passes run: schemas/run.json, the ±2^53 check, then the run rules in the module doc. run_id_invalid and run_id_mismatch are reported at /run_id. The run’s pointers are checked against its own attachments[] only. Cost: as for validate.