pub trait AgentPolicy: Send + Sync {
// Required method
fn decide(
&self,
state: &LoopState,
last: &StepOutcome,
) -> Option<AgentStopReason>;
}Expand description
Policy interface controlling loop termination.
pub trait AgentPolicy: Send + Sync {
// Required method
fn decide(
&self,
state: &LoopState,
last: &StepOutcome,
) -> Option<AgentStopReason>;
}Policy interface controlling loop termination.