pub struct TurnLimits {
pub max_model_rounds: u32,
pub max_tool_calls: u32,
}Expand description
Per-turn loop bounds: model rounds and dispatched tool calls. Exceeding
either interrupts the turn (see crate::driver::TurnInterruption).
Fields§
§max_model_rounds: u32Ceiling on model rounds — checked as round >= max_model_rounds
at the top of every round. Default: 10.
max_tool_calls: u32Ceiling on tool calls across the whole turn, counted at dispatch time (a batch paused pending approval counts when emitted). Default: 64.
Trait Implementations§
Source§impl Clone for TurnLimits
impl Clone for TurnLimits
Source§fn clone(&self) -> TurnLimits
fn clone(&self) -> TurnLimits
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 TurnLimits
impl Debug for TurnLimits
Source§impl Default for TurnLimits
impl Default for TurnLimits
Source§impl<'de> Deserialize<'de> for TurnLimits
impl<'de> Deserialize<'de> for TurnLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TurnLimits
impl PartialEq for TurnLimits
Source§impl Serialize for TurnLimits
impl Serialize for TurnLimits
impl StructuralPartialEq for TurnLimits
Auto Trait Implementations§
impl Freeze for TurnLimits
impl RefUnwindSafe for TurnLimits
impl Send for TurnLimits
impl Sync for TurnLimits
impl Unpin for TurnLimits
impl UnsafeUnpin for TurnLimits
impl UnwindSafe for TurnLimits
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