#[non_exhaustive]pub enum AgentRequestValidationError {
RetiredAgent {
identity: Box<CapabilityIdentity>,
},
SchemaMismatch {
expected: Box<SchemaReference>,
actual: Box<SchemaReference>,
},
TooManyBudgetLayers {
maximum: usize,
actual: usize,
},
BudgetResolution {
source: BudgetResolutionError,
},
BudgetEvaluation {
source: BudgetEvaluationError,
},
InputLimitExceeded {
maximum: ByteCount,
actual: ByteCount,
},
}Expand description
Invalid relationship between an agent request and an admission 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.
RetiredAgent
Historical descriptors cannot be selected for new work.
Fields
§
identity: Box<CapabilityIdentity>Retired owner-qualified agent identity.
SchemaMismatch
Input named a schema other than the descriptor snapshot.
Fields
§
expected: Box<SchemaReference>Exact descriptor input schema.
§
actual: Box<SchemaReference>Rejected request input schema.
TooManyBudgetLayers
Base, agent, and request layers exceeded the resolution hard bound.
Fields
BudgetResolution
Layered budget resolution failed closed.
Fields
§
source: BudgetResolutionErrorUnderlying finite-budget failure.
BudgetEvaluation
The resolved budget was already exhausted at admission.
Fields
§
source: BudgetEvaluationErrorUnderlying deadline or zero-usage evaluation failure.
InputLimitExceeded
Compact request input exceeded the resolved run ceiling.
Trait Implementations§
Source§impl Clone for AgentRequestValidationError
impl Clone for AgentRequestValidationError
Source§impl Debug for AgentRequestValidationError
impl Debug for AgentRequestValidationError
impl Eq for AgentRequestValidationError
Source§impl Error for AgentRequestValidationError
impl Error for AgentRequestValidationError
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()
impl StructuralPartialEq for AgentRequestValidationError
Auto Trait Implementations§
impl Forget for AgentRequestValidationError
impl Freeze for AgentRequestValidationError
impl Move for AgentRequestValidationError
impl RefUnwindSafe for AgentRequestValidationError
impl Send for AgentRequestValidationError
impl Sync for AgentRequestValidationError
impl Unpin for AgentRequestValidationError
impl UnsafeUnpin for AgentRequestValidationError
impl UnwindSafe for AgentRequestValidationError
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