pub enum RunErrorCode {
Show 32 variants
Cancelled,
RunInterrupted,
ExecutorTerminated,
ThreadExpired,
ThreadArchived,
AgentAdmissionTimeout,
AgentDeadlineExceeded,
AgentConnectionLost,
AgentUnavailable,
ProcessInterrupted,
Protocol,
InvalidEnvelope,
InvalidFrame,
InvalidJson,
StaleDispatch,
StaleSession,
UnsupportedVersion,
InvalidFamily,
InvalidRequest,
Unauthorized,
Unavailable,
RateLimited,
ContextLimit,
Timeout,
Internal,
OutputTruncated,
CreditBudgetExceeded,
ThreadBusy,
AdmissionRejected,
AgentExecutionFailed,
InvalidModelFinish,
InvalidModelToolCalls,
}Expand description
Public runOutcome.errorCode / Agent Failed.code catalog.
Variants§
Cancelled
RunInterrupted
ExecutorTerminated
ThreadExpired
ThreadArchived
AgentAdmissionTimeout
AgentDeadlineExceeded
AgentConnectionLost
ProcessInterrupted
Protocol
InvalidEnvelope
InvalidFrame
InvalidJson
StaleDispatch
StaleSession
UnsupportedVersion
InvalidFamily
InvalidRequest
RateLimited
ContextLimit
Timeout
Internal
OutputTruncated
CreditBudgetExceeded
ThreadBusy
AdmissionRejected
AgentExecutionFailed
InvalidModelFinish
InvalidModelToolCalls
Implementations§
Source§impl RunErrorCode
impl RunErrorCode
Sourcepub const ALL: &[Self]
pub const ALL: &[Self]
Catalog members in wire order. Tests treat this as the schema source of truth.
pub const fn as_str(self) -> &'static str
pub fn parse(raw: &str) -> Option<Self>
pub const fn status(self) -> RunStatus
Sourcepub const fn failure_source(self) -> Option<FailureSource>
pub const fn failure_source(self) -> Option<FailureSource>
Some only when the public outcome carries a failure object.
pub fn status_of(code: &str) -> RunStatus
pub fn failure_source_of(code: &str) -> Option<FailureSource>
Trait Implementations§
Source§impl AsRef<str> for RunErrorCode
impl AsRef<str> for RunErrorCode
Source§impl Clone for RunErrorCode
impl Clone for RunErrorCode
impl Copy for RunErrorCode
Source§impl Debug for RunErrorCode
impl Debug for RunErrorCode
Source§impl<'de> Deserialize<'de> for RunErrorCode
impl<'de> Deserialize<'de> for RunErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunErrorCode
Source§impl From<ExternalErrorKind> for RunErrorCode
impl From<ExternalErrorKind> for RunErrorCode
Source§fn from(kind: ExternalErrorKind) -> Self
fn from(kind: ExternalErrorKind) -> Self
Converts to this type from the input type.
Source§impl Hash for RunErrorCode
impl Hash for RunErrorCode
Source§impl PartialEq for RunErrorCode
impl PartialEq for RunErrorCode
Source§impl Serialize for RunErrorCode
impl Serialize for RunErrorCode
impl StructuralPartialEq for RunErrorCode
Auto Trait Implementations§
impl Freeze for RunErrorCode
impl RefUnwindSafe for RunErrorCode
impl Send for RunErrorCode
impl Sync for RunErrorCode
impl Unpin for RunErrorCode
impl UnsafeUnpin for RunErrorCode
impl UnwindSafe for RunErrorCode
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