pub enum AgentErrorKind {
Show 20 variants
InvalidPackage,
InvalidStateTransition,
ProviderFailure,
ProjectionFailure,
ToolFailure,
ApprovalFailure,
PolicyDenial,
JournalFailure,
TelemetryFailure,
IsolationFailure,
StructuredOutputFailure,
StreamRuleFailure,
SubagentFailure,
ExtensionFailure,
Cancellation,
ChildLifecycleFailure,
HookFailure,
Timeout,
RecoveryRepairNeeded,
HostConfigurationNeeded,
}Expand description
Enumerates the finite agent error kind cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
InvalidPackage
Use this variant when the contract needs to represent invalid package; selecting it has no side effect by itself.
InvalidStateTransition
Use this variant when the contract needs to represent invalid state transition; selecting it has no side effect by itself.
ProviderFailure
Use this variant when the contract needs to represent provider failure; selecting it has no side effect by itself.
ProjectionFailure
Use this variant when the contract needs to represent projection failure; selecting it has no side effect by itself.
ToolFailure
Use this variant when the contract needs to represent tool failure; selecting it has no side effect by itself.
ApprovalFailure
Use this variant when the contract needs to represent approval failure; selecting it has no side effect by itself.
PolicyDenial
Use this variant when the contract needs to represent policy denial; selecting it has no side effect by itself.
JournalFailure
Use this variant when the contract needs to represent journal failure; selecting it has no side effect by itself.
TelemetryFailure
Use this variant when the contract needs to represent telemetry failure; selecting it has no side effect by itself.
IsolationFailure
Use this variant when the contract needs to represent isolation failure; selecting it has no side effect by itself.
StructuredOutputFailure
Use this variant when the contract needs to represent structured output failure; selecting it has no side effect by itself.
StreamRuleFailure
Use this variant when the contract needs to represent stream rule failure; selecting it has no side effect by itself.
SubagentFailure
Use this variant when the contract needs to represent subagent failure; selecting it has no side effect by itself.
ExtensionFailure
Use this variant when the contract needs to represent extension failure; selecting it has no side effect by itself.
Cancellation
Use this variant when the contract needs to represent cancellation; selecting it has no side effect by itself.
ChildLifecycleFailure
Use this variant when the contract needs to represent child lifecycle failure; selecting it has no side effect by itself.
HookFailure
Use this variant when the contract needs to represent hook failure; selecting it has no side effect by itself.
Timeout
Use this variant when the contract needs to represent timeout; selecting it has no side effect by itself.
RecoveryRepairNeeded
Use this variant when the contract needs to represent recovery repair needed; selecting it has no side effect by itself.
HostConfigurationNeeded
Use this variant when the contract needs to represent host configuration needed; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for AgentErrorKind
impl Clone for AgentErrorKind
Source§fn clone(&self) -> AgentErrorKind
fn clone(&self) -> AgentErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AgentErrorKind
Source§impl Debug for AgentErrorKind
impl Debug for AgentErrorKind
Source§impl<'de> Deserialize<'de> for AgentErrorKind
impl<'de> Deserialize<'de> for AgentErrorKind
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>,
Source§impl Display for AgentErrorKind
impl Display for AgentErrorKind
impl Eq for AgentErrorKind
Source§impl Error for AgentErrorKind
impl Error for AgentErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for AgentErrorKind
impl PartialEq for AgentErrorKind
Source§fn eq(&self, other: &AgentErrorKind) -> bool
fn eq(&self, other: &AgentErrorKind) -> bool
self and other values to be equal, and is used by ==.