#[non_exhaustive]pub struct TurnLimits {
pub max_model_rounds: u32,
pub max_tool_calls: u32,
}Expand description
Numeric limits for one execution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_model_rounds: u32Maximum number of logical model invocations, including the first.
max_tool_calls: u32Maximum cumulative number of model tool declarations.
Implementations§
Trait Implementations§
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