pub struct StuckSection {
pub window: Option<usize>,
pub error_rate: Option<f64>,
}Expand description
[stuck] section. Stuck detection thresholds.
Falls back to RECURSIVE_STUCK_WINDOW and RECURSIVE_STUCK_ERROR_RATE
env vars respectively.
Example:
[stuck]
window = 10
error_rate = 0.8Fields§
§window: Option<usize>Number of recent steps to check for stuck detection.
Corresponding env var: RECURSIVE_STUCK_WINDOW.
error_rate: Option<f64>Fraction of steps in the window that must be errors to declare
the agent “stuck”. Corresponding env var: RECURSIVE_STUCK_ERROR_RATE.
Trait Implementations§
Source§impl Clone for StuckSection
impl Clone for StuckSection
Source§impl Debug for StuckSection
impl Debug for StuckSection
Source§impl Default for StuckSection
impl Default for StuckSection
Source§impl<'de> Deserialize<'de> for StuckSection
impl<'de> Deserialize<'de> for StuckSection
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 StuckSection
impl RefUnwindSafe for StuckSection
impl Send for StuckSection
impl Sync for StuckSection
impl Unpin for StuckSection
impl UnsafeUnpin for StuckSection
impl UnwindSafe for StuckSection
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.