pub struct TurnBudgetOverrides {
pub max_provider_rounds: Option<TurnLimit<u32>>,
pub max_tool_calls: Option<TurnLimit<u32>>,
pub max_elapsed_secs: Option<u64>,
pub max_accumulated_tool_result_bytes: Option<TurnLimit<usize>>,
pub max_context_tokens: Option<u64>,
pub max_cost_usd: Option<f64>,
pub max_round_renewals: Option<u32>,
}Expand description
Typed per-role turn-budget overrides (Task 23, spec §8.1). Every field
is optional: unset fields keep the role’s compiled default. Values are
parsed from turn_budget.<role>.<field> config keys.
Fields§
§max_provider_rounds: Option<TurnLimit<u32>>Provider rounds per turn: N or unlimited. Unset = the role default
(foreground unlimited, autonomous 24, worker 64 per allowance). 0 =
none allowed (deprecated).
max_tool_calls: Option<TurnLimit<u32>>Tool calls per turn: N or unlimited. Unset = the role default
(autonomous 96, otherwise unlimited). 0 = none allowed (deprecated).
max_elapsed_secs: Option<u64>Wall-clock limit for one turn, in seconds. Unset = no limit (the
default for every role); 0 also means no limit.
max_accumulated_tool_result_bytes: Option<TurnLimit<usize>>Accumulated tool-result bytes per turn: N or unlimited. Unset = the
role default (autonomous 8 MiB, otherwise unlimited). 0 = none
allowed (deprecated).
max_context_tokens: Option<u64>§max_cost_usd: Option<f64>§max_round_renewals: Option<u32>Bounded auto-renewals of the provider-round allowance after it is
exhausted mid-turn (spec §8.1). Each renewal resets the round counter;
round renewals never reset wall-clock (durable context successors do). 0
disables graceful continuation (hard stop at the first exhaustion).
Trait Implementations§
Source§impl Clone for TurnBudgetOverrides
impl Clone for TurnBudgetOverrides
Source§fn clone(&self) -> TurnBudgetOverrides
fn clone(&self) -> TurnBudgetOverrides
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TurnBudgetOverrides
impl Debug for TurnBudgetOverrides
Source§impl Default for TurnBudgetOverrides
impl Default for TurnBudgetOverrides
Source§fn default() -> TurnBudgetOverrides
fn default() -> TurnBudgetOverrides
Source§impl PartialEq for TurnBudgetOverrides
impl PartialEq for TurnBudgetOverrides
impl StructuralPartialEq for TurnBudgetOverrides
Auto Trait Implementations§
impl Freeze for TurnBudgetOverrides
impl RefUnwindSafe for TurnBudgetOverrides
impl Send for TurnBudgetOverrides
impl Sync for TurnBudgetOverrides
impl Unpin for TurnBudgetOverrides
impl UnsafeUnpin for TurnBudgetOverrides
impl UnwindSafe for TurnBudgetOverrides
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more