#[non_exhaustive]pub enum ToolInvocationIntentError {
InputSchemaMismatch,
EffectiveLimitWidened {
limit: ToolInvocationLimit,
},
InputLimitExceeded {
maximum: ByteCount,
actual: ByteCount,
},
Integrity {
source: ToolInvocationIntegrityError,
},
DigestMismatch,
}Expand description
Invalid durable tool invocation intent.
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.
InputSchemaMismatch
Arguments named a schema other than the pinned descriptor schema.
EffectiveLimitWidened
A resolved limit widened rather than narrowed the descriptor ceiling.
Fields
§
limit: ToolInvocationLimitWidened field.
InputLimitExceeded
Compact arguments exceeded the resolved invocation limit.
Integrity
Canonical integrity material could not be serialized.
Fields
§
source: ToolInvocationIntegrityErrorExact integrity failure.
DigestMismatch
Persisted intent checksum did not match caller-controlled fields.
Trait Implementations§
Source§impl Clone for ToolInvocationIntentError
impl Clone for ToolInvocationIntentError
Source§impl Debug for ToolInvocationIntentError
impl Debug for ToolInvocationIntentError
Source§impl Display for ToolInvocationIntentError
impl Display for ToolInvocationIntentError
impl Eq for ToolInvocationIntentError
Source§impl Error for ToolInvocationIntentError
impl Error for ToolInvocationIntentError
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 From<ToolInvocationIntegrityError> for ToolInvocationIntentError
impl From<ToolInvocationIntegrityError> for ToolInvocationIntentError
Source§fn from(source: ToolInvocationIntegrityError) -> Self
fn from(source: ToolInvocationIntegrityError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ToolInvocationIntentError
Auto Trait Implementations§
impl Forget for ToolInvocationIntentError
impl Freeze for ToolInvocationIntentError
impl Move for ToolInvocationIntentError
impl RefUnwindSafe for ToolInvocationIntentError
impl Send for ToolInvocationIntentError
impl Sync for ToolInvocationIntentError
impl Unpin for ToolInvocationIntentError
impl UnsafeUnpin for ToolInvocationIntentError
impl UnwindSafe for ToolInvocationIntentError
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