Skip to main content

parse_judgment

Function parse_judgment 

Source
pub fn parse_judgment(
    id: &str,
    text: &str,
    threshold: f64,
    ms: u64,
) -> GateResult
Expand description

Parse the judge’s reply into a verdict. The operator’s threshold on the judge’s score is authoritative; an explicit pass is a fallback when no score is given; anything unparseable abstains (never a fabricated pass/fail).