pub fn run_exit_code(r: &RunState) -> i32Expand description
Map a finished run’s status onto a process exit code, so a caller can tell how a job ended without parsing its output: refusal, budget exhaustion, a missed deadline and an unreachable model each get their own code, and anything still unfinished reports as partial.