pub struct MaxRounds(pub usize);Expand description
Stop after a fixed number of tool-call rounds.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl StopPolicy for MaxRounds
impl StopPolicy for MaxRounds
Source§fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StoppedReason>
fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StoppedReason>
Evaluate stop decision. Return
Some(StoppedReason) to terminate.Auto Trait Implementations§
impl Freeze for MaxRounds
impl RefUnwindSafe for MaxRounds
impl Send for MaxRounds
impl Sync for MaxRounds
impl Unpin for MaxRounds
impl UnwindSafe for MaxRounds
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