pub struct LoopConfig {
pub window_size: usize,
pub repeat_threshold: usize,
pub min_output_len: usize,
pub max_iterations: Option<u64>,
pub halt_on_max: bool,
pub count_failed_iterations: bool,
pub fuzzy_match: bool,
pub halt_on_consecutive_failures: u32,
}Expand description
Configuration for loop detection and iteration limits.
Fields§
§window_size: usizeMaximum number of recent outputs to track.
repeat_threshold: usizeNumber of identical hashes that trigger loop detection.
min_output_len: usizeMinimum output length to consider for loop detection.
max_iterations: Option<u64>Maximum agent iterations before halting. None = unbounded.
halt_on_max: boolWhen true, halt once [max_iterations] is reached.
count_failed_iterations: boolWhether failed iterations count against [max_iterations].
fuzzy_match: boolEnable fuzzy signature matching (whitespace variants, near-duplicates).
halt_on_consecutive_failures: u32Halt after this many consecutive iteration failures.
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 (const: unstable) · 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
Source§impl Default for LoopConfig
impl Default for LoopConfig
Source§impl<'de> Deserialize<'de> for LoopConfig
impl<'de> Deserialize<'de> for LoopConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LoopConfig
Source§impl PartialEq for LoopConfig
impl PartialEq for LoopConfig
Source§impl Serialize for LoopConfig
impl Serialize for LoopConfig
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.