pub struct LoopConfig {
pub max_steps: usize,
pub loop_abort_threshold: usize,
pub max_messages: usize,
pub auto_complete_threshold: usize,
}Expand description
Loop configuration.
Fields§
§max_steps: usizeMaximum steps before aborting.
loop_abort_threshold: usizeConsecutive repeated tool calls before loop detection triggers.
max_messages: usizeMax messages to keep in context (0 = unlimited). Keeps first 2 (system + user prompt) + last N messages.
auto_complete_threshold: usizeAuto-complete if agent returns same situation text N times.
Trait Implementations§
Source§impl Clone for LoopConfig
impl Clone for LoopConfig
Source§fn clone(&self) -> LoopConfig
fn clone(&self) -> LoopConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LoopConfig
impl Debug for LoopConfig
Auto Trait Implementations§
impl Freeze for LoopConfig
impl RefUnwindSafe for LoopConfig
impl Send for LoopConfig
impl Sync for LoopConfig
impl Unpin for LoopConfig
impl UnsafeUnpin for LoopConfig
impl UnwindSafe for LoopConfig
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