Skip to main content

should_terminate_batch

Function should_terminate_batch 

Source
pub fn should_terminate_batch(finalized_calls: &[FinalizedToolCall]) -> bool
Expand description

Check if a batch of finalized tool calls should terminate the loop. pi-mono: ALL finalized results must have terminate === true for the batch to terminate. This is the unanimous consent pattern.