pub enum Verdict {
Valid,
Invalid(Vec<Violation>),
Unvalidatable(&'static str),
NotApplicable,
}Expand description
The outcome of validating one response’s tool calls.
Variants§
Valid
Every call conforms to its tool’s schema.
Invalid(Vec<Violation>)
At least one call violates its schema.
Unvalidatable(&'static str)
No violations found, but at least one call’s schema uses a construct this validator does not implement, so “no violations” is not a claim worth acting on.
NotApplicable
The request advertised no tools, or the response contained no calls.
Implementations§
Trait Implementations§
Source§impl Deserialize<'static> for Verdict
impl Deserialize<'static> for Verdict
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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