pub struct LoopDetectionConfig {
pub window_size: usize,
pub enabled: bool,
}Expand description
Configuration for stuck-agent (loop) detection.
Fields§
§window_size: usizeConsecutive identical tool-name calls that trigger abort. Default: 5.
enabled: boolWhether loop detection is active. Default: true.
Trait Implementations§
Source§impl Clone for LoopDetectionConfig
impl Clone for LoopDetectionConfig
Source§fn clone(&self) -> LoopDetectionConfig
fn clone(&self) -> LoopDetectionConfig
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 LoopDetectionConfig
impl Debug for LoopDetectionConfig
Auto Trait Implementations§
impl Freeze for LoopDetectionConfig
impl RefUnwindSafe for LoopDetectionConfig
impl Send for LoopDetectionConfig
impl Sync for LoopDetectionConfig
impl Unpin for LoopDetectionConfig
impl UnsafeUnpin for LoopDetectionConfig
impl UnwindSafe for LoopDetectionConfig
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