pub struct RepetitionDetectionConfig {
pub max_repeat_calls: Option<usize>,
pub max_readonly_streak: Option<usize>,
pub enabled: Option<bool>,
}Expand description
Configuration for repetition detection in the inference loop.
Controls thresholds for detecting degenerate read loops where agents call the same tool repeatedly without productive action.
Fields§
§max_repeat_calls: Option<usize>Maximum times the same tool+args combo may repeat before a nudge.
max_readonly_streak: Option<usize>Maximum consecutive read-only calls with no productive calls in between.
enabled: Option<bool>Whether detection is enabled. Default: true.
Trait Implementations§
Source§impl Clone for RepetitionDetectionConfig
impl Clone for RepetitionDetectionConfig
Source§fn clone(&self) -> RepetitionDetectionConfig
fn clone(&self) -> RepetitionDetectionConfig
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 RepetitionDetectionConfig
impl Debug for RepetitionDetectionConfig
Source§impl<'de> Deserialize<'de> for RepetitionDetectionConfig
impl<'de> Deserialize<'de> for RepetitionDetectionConfig
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
Auto Trait Implementations§
impl Freeze for RepetitionDetectionConfig
impl RefUnwindSafe for RepetitionDetectionConfig
impl Send for RepetitionDetectionConfig
impl Sync for RepetitionDetectionConfig
impl Unpin for RepetitionDetectionConfig
impl UnsafeUnpin for RepetitionDetectionConfig
impl UnwindSafe for RepetitionDetectionConfig
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