pub struct ConstraintValidator { /* private fields */ }Expand description
Validates tool call arguments against registered constraints.
Implementations§
Source§impl ConstraintValidator
impl ConstraintValidator
pub fn new() -> Self
pub fn add(&mut self, constraint: ParamConstraint)
pub fn constraint_count(&self) -> usize
pub fn validate(&self, call: &ToolCall) -> Option<GovernanceVerdict>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConstraintValidator
impl RefUnwindSafe for ConstraintValidator
impl Send for ConstraintValidator
impl Sync for ConstraintValidator
impl Unpin for ConstraintValidator
impl UnsafeUnpin for ConstraintValidator
impl UnwindSafe for ConstraintValidator
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