pub struct LoopDetectedContext {
pub pattern: String,
pub repetitions: usize,
}Expand description
Context for LoopObserver::on_loop_detected.
Describes the repeating tool pattern and how many times it was observed.
Fields§
§pattern: StringDescription of the repeating tool pattern.
Human-readable summary of the tool operation(s) that were detected as repeating.
repetitions: usizeNumber of times the pattern was observed.
Counts consecutive repetitions of the same tool operation with the same result hash.
Trait Implementations§
Source§impl Clone for LoopDetectedContext
impl Clone for LoopDetectedContext
Source§fn clone(&self) -> LoopDetectedContext
fn clone(&self) -> LoopDetectedContext
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 moreAuto Trait Implementations§
impl Freeze for LoopDetectedContext
impl RefUnwindSafe for LoopDetectedContext
impl Send for LoopDetectedContext
impl Sync for LoopDetectedContext
impl Unpin for LoopDetectedContext
impl UnsafeUnpin for LoopDetectedContext
impl UnwindSafe for LoopDetectedContext
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