Skip to main content

once_exit

Function once_exit 

Source
pub fn once_exit(status: TerminalStatus, partial: bool) -> i32
Expand description

Map a one-shot root subagent’s outcome to an exit code. partial is the result-body property, not a status: a Completed run that only partially satisfied the objective exits 3. A budget-bounded run that nonetheless produced usable output is still reported under its budget code (7) with the partial flag carried in the result JSON.