#[non_exhaustive]pub enum AgentResultError {
MissingModelTurn,
ModelAttemptsBelowTurns {
attempts: ExecutionCount,
turns: ExecutionCount,
},
OutputBytesUnderreported {
minimum: ByteCount,
actual: ByteCount,
},
ArtifactBytesUnderreported {
minimum: ByteCount,
actual: ByteCount,
},
ArtifactTenantMismatch {
index: usize,
expected: Box<TenantId>,
actual: Box<TenantId>,
},
ArtifactRunMismatch {
index: usize,
expected: RunId,
actual: RunId,
},
}Expand description
Intrinsic invalidity in a successful terminal agent result.
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.
MissingModelTurn
A successful model-backed agent reported no logical turn.
ModelAttemptsBelowTurns
Physical model attempts cannot be fewer than logical turns.
Fields
§
attempts: ExecutionCountReported physical attempts.
§
turns: ExecutionCountReported logical turns.
OutputBytesUnderreported
Final inline output was not fully included in cumulative byte usage.
Fields
ArtifactBytesUnderreported
Returned run-created artifacts were not fully included in byte usage.
Fields
ArtifactTenantMismatch
A final artifact belongs to another tenant.
Fields
ArtifactRunMismatch
A final artifact was not created by this durable run.
Trait Implementations§
Source§impl Clone for AgentResultError
impl Clone for AgentResultError
Source§impl Debug for AgentResultError
impl Debug for AgentResultError
Source§impl Display for AgentResultError
impl Display for AgentResultError
impl Eq for AgentResultError
Source§impl Error for AgentResultError
impl Error for AgentResultError
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 AgentResultError
impl PartialEq for AgentResultError
impl StructuralPartialEq for AgentResultError
Auto Trait Implementations§
impl Forget for AgentResultError
impl Freeze for AgentResultError
impl Move for AgentResultError
impl RefUnwindSafe for AgentResultError
impl Send for AgentResultError
impl Sync for AgentResultError
impl Unpin for AgentResultError
impl UnsafeUnpin for AgentResultError
impl UnwindSafe for AgentResultError
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