pub enum OutputValidationError {
InvalidJson(String),
Schema(String),
Retry(String),
Failed(String),
}Expand description
Structured output validation error.
Variants§
InvalidJson(String)
Output could not be parsed as JSON.
Schema(String)
Output did not match the schema foundation checks.
Retry(String)
Custom validator rejected the output and requested a model retry.
Failed(String)
Custom validator failed the run.
Implementations§
Trait Implementations§
Source§impl Debug for OutputValidationError
impl Debug for OutputValidationError
Source§impl Display for OutputValidationError
impl Display for OutputValidationError
Source§impl Error for OutputValidationError
impl Error for OutputValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OutputValidationError
impl RefUnwindSafe for OutputValidationError
impl Send for OutputValidationError
impl Sync for OutputValidationError
impl Unpin for OutputValidationError
impl UnsafeUnpin for OutputValidationError
impl UnwindSafe for OutputValidationError
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