#[non_exhaustive]pub enum ToolErrorValidationError {
Context {
source: ToolContextBindingError,
},
InvocationMismatch {
expected: InvocationId,
actual: InvocationId,
},
AttemptMismatch {
expected: AttemptId,
actual: AttemptId,
},
ToolIdentityMismatch {
expected: Box<CapabilityIdentity>,
actual: Box<CapabilityIdentity>,
},
EffectRiskMismatch {
risk: ToolRisk,
effect: ToolExternalEffect,
},
UnsafeRetryAfterAppliedNonIdempotentWrite,
}Expand description
Invalid relationship between a tool failure and invocation snapshot.
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.
Context
Context identity or invocation semantics did not match the descriptor.
Fields
§
source: ToolContextBindingErrorUnderlying context binding failure.
InvocationMismatch
Failure named another logical invocation.
Fields
§
expected: InvocationIdExact context invocation.
§
actual: InvocationIdRejected failure invocation.
AttemptMismatch
Failure named another physical attempt.
ToolIdentityMismatch
Failure named another owner-qualified tool version.
Fields
§
expected: Box<CapabilityIdentity>Exact descriptor identity.
§
actual: Box<CapabilityIdentity>Rejected failure identity.
EffectRiskMismatch
Effect evidence did not match the descriptor risk class.
Fields
§
effect: ToolExternalEffectRejected effect evidence.
UnsafeRetryAfterAppliedNonIdempotentWrite
A repeated non-idempotent write was advised after the effect was applied.
Trait Implementations§
Source§impl Clone for ToolErrorValidationError
impl Clone for ToolErrorValidationError
Source§impl Debug for ToolErrorValidationError
impl Debug for ToolErrorValidationError
Source§impl Display for ToolErrorValidationError
impl Display for ToolErrorValidationError
impl Eq for ToolErrorValidationError
Source§impl Error for ToolErrorValidationError
impl Error for ToolErrorValidationError
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()
Source§impl PartialEq for ToolErrorValidationError
impl PartialEq for ToolErrorValidationError
impl StructuralPartialEq for ToolErrorValidationError
Auto Trait Implementations§
impl Forget for ToolErrorValidationError
impl Freeze for ToolErrorValidationError
impl Move for ToolErrorValidationError
impl RefUnwindSafe for ToolErrorValidationError
impl Send for ToolErrorValidationError
impl Sync for ToolErrorValidationError
impl Unpin for ToolErrorValidationError
impl UnsafeUnpin for ToolErrorValidationError
impl UnwindSafe for ToolErrorValidationError
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