#[non_exhaustive]pub enum ToolInputValidationError {
Context {
source: ToolContextBindingError,
},
SchemaMismatch {
expected: Box<SchemaReference>,
actual: Box<SchemaReference>,
},
DescriptorLimitExceeded {
maximum: ByteCount,
actual: ByteCount,
},
BudgetLimitExceeded {
maximum: ByteCount,
actual: ByteCount,
},
}Expand description
Invalid relationship between tool input and an 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.
SchemaMismatch
Input named a schema other than the descriptor’s pinned schema.
Fields
§
expected: Box<SchemaReference>Exact descriptor schema.
§
actual: Box<SchemaReference>Rejected input schema.
DescriptorLimitExceeded
Compact arguments exceeded the immutable descriptor ceiling.
BudgetLimitExceeded
Compact arguments exceeded the remaining run capacity.
Trait Implementations§
Source§impl Clone for ToolInputValidationError
impl Clone for ToolInputValidationError
Source§impl Debug for ToolInputValidationError
impl Debug for ToolInputValidationError
Source§impl Display for ToolInputValidationError
impl Display for ToolInputValidationError
impl Eq for ToolInputValidationError
Source§impl Error for ToolInputValidationError
impl Error for ToolInputValidationError
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 ToolInputValidationError
impl PartialEq for ToolInputValidationError
impl StructuralPartialEq for ToolInputValidationError
Auto Trait Implementations§
impl Forget for ToolInputValidationError
impl Freeze for ToolInputValidationError
impl Move for ToolInputValidationError
impl RefUnwindSafe for ToolInputValidationError
impl Send for ToolInputValidationError
impl Sync for ToolInputValidationError
impl Unpin for ToolInputValidationError
impl UnsafeUnpin for ToolInputValidationError
impl UnwindSafe for ToolInputValidationError
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