pub struct ValidationResult {
pub is_valid: bool,
pub errors: Vec<String>,
pub extracted_json: Option<Value>,
}Expand description
Result of validating agent output against a JSON schema
Fields§
§is_valid: boolWhether the validation passed
errors: Vec<String>List of validation errors (empty if valid)
extracted_json: Option<Value>The JSON that was extracted and validated (if any)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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