pub enum TurnRequestLimit {
Unbounded,
Fixed(u32),
Adaptive {
initial: u32,
expand_on_progress: bool,
},
}Expand description
Strategy for capping LLM calls.
Variants§
Unbounded
No upper limit.
Fixed(u32)
Fixed limit: returns AcpStopReason::MaxTurnRequests after N turns.
Adaptive
Adaptive: each time a tool use is approved and executed in the current turn, that
counts as progress and the limit is automatically incremented by 1; otherwise,
termination follows Self::Fixed.
Trait Implementations§
Source§impl Clone for TurnRequestLimit
impl Clone for TurnRequestLimit
Source§fn clone(&self) -> TurnRequestLimit
fn clone(&self) -> TurnRequestLimit
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 moreimpl Copy for TurnRequestLimit
Auto Trait Implementations§
impl Freeze for TurnRequestLimit
impl RefUnwindSafe for TurnRequestLimit
impl Send for TurnRequestLimit
impl Sync for TurnRequestLimit
impl Unpin for TurnRequestLimit
impl UnsafeUnpin for TurnRequestLimit
impl UnwindSafe for TurnRequestLimit
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