Skip to main content

PreemptionCheck

Trait PreemptionCheck 

Source
pub trait PreemptionCheck: Send + Sync {
    // Required method
    fn check_preemption(&self) -> Result<SteeringAction, QueueError>;
}
Expand description

Trait for checking preemption at tool boundaries.

Called after each tool execution completes. Implementors inspect the queue state and decide whether the run should continue or be redirected.

Required Methods§

Source

fn check_preemption(&self) -> Result<SteeringAction, QueueError>

Called after each tool execution completes. Returns a SteeringAction indicating what should happen next.

Implementors§