pub struct StuckConfig {
pub after_iterations: Option<usize>,
pub after_minutes: Option<usize>,
pub after_same_file_edits: Option<usize>,
pub after_tool_calls: Option<usize>,
}Expand description
Thresholds that arm a TransitionCondition::Stuck edge.
At least one threshold is always set: an edge with none could never fire, so
both the manifest parser and Blueprint::validate reject that shape rather
than build a dead edge. Every threshold is evaluated against the current
stage’s progress counters, which reset on each stage entry - so a blueprint
can arm different stages with different thresholds independently.
Fields§
§after_iterations: Option<usize>stuck_after_iterations: inferences run in this stage without finishing it.
after_minutes: Option<usize>stuck_after_minutes: wall-clock minutes spent in this stage.
after_same_file_edits: Option<usize>stuck_after_same_file_edits: write_file/edit_file calls against a
single path in this stage - the “100 iterations in the wrong file” mode.
after_tool_calls: Option<usize>stuck_after_tool_calls: total tool calls made in this stage.
Implementations§
Trait Implementations§
Source§impl Clone for StuckConfig
impl Clone for StuckConfig
Source§fn clone(&self) -> StuckConfig
fn clone(&self) -> StuckConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StuckConfig
Source§impl Debug for StuckConfig
impl Debug for StuckConfig
Source§impl Default for StuckConfig
impl Default for StuckConfig
Source§fn default() -> StuckConfig
fn default() -> 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>,
impl Eq for StuckConfig
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 Freeze 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
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
key and return true if they are equal.