#[non_exhaustive]pub enum ProviderConformanceError {
Invocation(ModelError),
UnexpectedSuccess,
ProviderIdentity {
expected: String,
actual: String,
},
VisibleText,
Reasoning,
Usage,
MissingProviderEvent,
ProviderEventIdentity {
expected: String,
actual: String,
},
ErrorKind {
expected: ModelErrorKind,
actual: ModelErrorKind,
},
ErrorProvider {
expected: String,
actual: Option<String>,
},
RetrySafety {
expected: RetrySafety,
actual: RetrySafety,
},
}Expand description
A provider violated its canonical acceptance contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invocation(ModelError)
The provider invocation failed before success checks could run.
UnexpectedSuccess
A failure contract unexpectedly produced a response.
ProviderIdentity
The canonical response used another provider identity.
VisibleText
Model-visible text differed.
Reasoning
Canonical reasoning differed.
Usage
Normalized usage differed.
MissingProviderEvent
No raw provider event was retained.
ProviderEventIdentity
A retained raw event used another namespace.
ErrorKind
The normalized error category differed.
ErrorProvider
The failed invocation omitted or changed provider identity.
RetrySafety
Retry safety differed.
Trait Implementations§
Source§impl Debug for ProviderConformanceError
impl Debug for ProviderConformanceError
Source§impl Display for ProviderConformanceError
impl Display for ProviderConformanceError
Source§impl Error for ProviderConformanceError
impl Error for ProviderConformanceError
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 ProviderConformanceError
impl RefUnwindSafe for ProviderConformanceError
impl Send for ProviderConformanceError
impl Sync for ProviderConformanceError
impl Unpin for ProviderConformanceError
impl UnsafeUnpin for ProviderConformanceError
impl UnwindSafe for ProviderConformanceError
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