pub struct StuckConfig {
pub repeat_threshold: usize,
pub error_threshold: usize,
pub ping_pong_window: usize,
pub max_nudges: u32,
}Expand description
Thresholds for loop detection. Configurable on purpose: OpenHands hardcoded theirs and legitimate polling got flagged (their issue #762).
Fields§
§repeat_threshold: usizeIdentical call with identical output this many times in a row.
error_threshold: usizeSame tool failing this many times in a row (arguments may differ).
ping_pong_window: usizeStrict A, B, A, B alternation over this many calls. 0 disables.
max_nudges: u32With the default policy, stop after this many nudges.
Trait Implementations§
Source§impl Clone for StuckConfig
impl Clone for StuckConfig
Source§impl Debug for StuckConfig
impl Debug for StuckConfig
Source§impl Default for StuckConfig
impl Default for StuckConfig
Source§impl<'de> Deserialize<'de> for StuckConfig
impl<'de> Deserialize<'de> for StuckConfig
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
Source§impl PartialEq for StuckConfig
impl PartialEq for StuckConfig
Source§impl Serialize for StuckConfig
impl Serialize for StuckConfig
impl StructuralPartialEq for StuckConfig
Auto Trait Implementations§
impl Forget for StuckConfig
impl Freeze for StuckConfig
impl Move for StuckConfig
impl RefUnwindSafe for StuckConfig
impl Send for StuckConfig
impl Sync for StuckConfig
impl Unpin for StuckConfig
impl UnsafeUnpin for StuckConfig
impl UnwindSafe for StuckConfig
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