pub struct ToolCallLoopGuardOptions {
pub threshold: usize,
pub exempt_tools: Vec<String>,
}Expand description
Runtime settings for cross-turn tool-call repetition detection.
Fields§
§threshold: usizeConsecutive identical calls that trip the guard. Clamped to ≥ 1.
exempt_tools: Vec<String>Tool names exempt from detection (e.g. read, ls, grep).
Trait Implementations§
Source§impl Clone for ToolCallLoopGuardOptions
impl Clone for ToolCallLoopGuardOptions
Source§fn clone(&self) -> ToolCallLoopGuardOptions
fn clone(&self) -> ToolCallLoopGuardOptions
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 ToolCallLoopGuardOptions
impl Debug for ToolCallLoopGuardOptions
Auto Trait Implementations§
impl Freeze for ToolCallLoopGuardOptions
impl RefUnwindSafe for ToolCallLoopGuardOptions
impl Send for ToolCallLoopGuardOptions
impl Sync for ToolCallLoopGuardOptions
impl Unpin for ToolCallLoopGuardOptions
impl UnsafeUnpin for ToolCallLoopGuardOptions
impl UnwindSafe for ToolCallLoopGuardOptions
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