pub struct Violation {
pub call_index: usize,
pub function: String,
pub pointer: String,
pub kind: ViolationKind,
}Expand description
What a single tool call got wrong.
Fields§
§call_index: usizeIndex into the response’s tool_calls array.
function: StringFunction name as the call reported it.
pointer: StringJSON-pointer-ish path to the offending value within arguments.
Empty string for a violation about the arguments object as a whole.
/options/follow_symlinks for a nested one — the path is what makes a
recorded violation actionable rather than merely a count.
kind: ViolationKindWhat kind of constraint was broken.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Violation
impl<'de> Deserialize<'de> for Violation
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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