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§fn clone(&self) -> StuckConfig
fn clone(&self) -> StuckConfig
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 StuckConfig
impl Debug for StuckConfig
Source§impl Default for StuckConfig
impl Default for StuckConfig
Source§fn default() -> StuckConfig
fn default() -> StuckConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StuckConfig
impl<'de> Deserialize<'de> for StuckConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StuckConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StuckConfig, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more