parse_verdict

Function parse_verdict 

Source
pub fn parse_verdict(text: &str) -> Verdict
Expand description

Parse a verdict from the judge model’s reply. Tolerant of extra prose around the JSON: it scans for the violation field’s boolean and the reason string, falling back to common labels (invalid, unsafe).