#[non_exhaustive]pub enum AgentInstructionsError {
Empty,
TooMany {
max: usize,
observed: usize,
},
Duplicate {
identity: InstructionIdentity,
},
UnsupportedArtifact {
index: usize,
modality: ArtifactModality,
},
ContentBytesOverflow,
ContentTooLarge {
maximum: ByteCount,
actual: ByteCount,
},
}Expand description
Invalid agent instruction collection.
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.
Empty
An agent had no trusted instruction.
TooMany
The hard instruction-count ceiling was exceeded.
Fields
Duplicate
One versioned instruction identity appeared more than once.
Fields
§
identity: InstructionIdentityRepeated instruction identity.
UnsupportedArtifact
An instruction artifact was not text material.
Fields
§
modality: ArtifactModalityRejected artifact modality.
ContentBytesOverflow
Aggregate content-byte accounting overflowed.
ContentTooLarge
Aggregate resolved content exceeded the hard ceiling.
Trait Implementations§
Source§impl Clone for AgentInstructionsError
impl Clone for AgentInstructionsError
Source§impl Debug for AgentInstructionsError
impl Debug for AgentInstructionsError
Source§impl Display for AgentInstructionsError
impl Display for AgentInstructionsError
impl Eq for AgentInstructionsError
Source§impl Error for AgentInstructionsError
impl Error for AgentInstructionsError
1.30.0 · 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 AgentInstructionsError
impl PartialEq for AgentInstructionsError
impl StructuralPartialEq for AgentInstructionsError
Auto Trait Implementations§
impl Forget for AgentInstructionsError
impl Freeze for AgentInstructionsError
impl Move for AgentInstructionsError
impl RefUnwindSafe for AgentInstructionsError
impl Send for AgentInstructionsError
impl Sync for AgentInstructionsError
impl Unpin for AgentInstructionsError
impl UnsafeUnpin for AgentInstructionsError
impl UnwindSafe for AgentInstructionsError
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