pub struct TurnPolicy {
pub retry: RetryPolicy,
pub limits: TurnLimits,
pub attempt_timeout: Option<Duration>,
pub unknown_outcome: UnknownOutcomeConfig,
}Expand description
Turn policy — when the loop retries or gives up.
Fields§
§retry: RetryPolicyRetry schedule for failed model attempts — see RetryPolicy.
limits: TurnLimitsLoop bounds for the turn — see TurnLimits.
attempt_timeout: Option<Duration>Per-model-attempt budget; None = unbounded attempt.
unknown_outcome: UnknownOutcomeConfigWhat the execution stack does after committing an UnknownOutcome
tool result — see UnknownOutcomeConfig. Default: stop the turn.
Trait Implementations§
Source§impl Clone for TurnPolicy
impl Clone for TurnPolicy
Source§fn clone(&self) -> TurnPolicy
fn clone(&self) -> TurnPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TurnPolicy
impl Debug for TurnPolicy
Source§impl Default for TurnPolicy
impl Default for TurnPolicy
Source§fn default() -> TurnPolicy
fn default() -> TurnPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TurnPolicy
impl RefUnwindSafe for TurnPolicy
impl Send for TurnPolicy
impl Sync for TurnPolicy
impl Unpin for TurnPolicy
impl UnsafeUnpin for TurnPolicy
impl UnwindSafe for TurnPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more