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§
Sourcefn check_preemption(&self) -> Result<SteeringAction, QueueError>
fn check_preemption(&self) -> Result<SteeringAction, QueueError>
Called after each tool execution completes.
Returns a SteeringAction indicating what should happen next.