pub enum LoopStopReason {
Show 14 variants
EndTurn,
StreamRuleStop,
MaxIterations {
outcome: MaxIterationOutcome,
},
Cancelled,
ProviderFailure,
UnsafeStreamIntervention,
ToolDenied,
ApprovalDenied,
ApprovalTimeout,
ApprovalTransportFatal,
ToolFailure,
ResumeDenied,
RecoveryCompleted,
RecoveryIrrecoverable,
}Expand description
Enumerates the finite loop stop reason cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
EndTurn
Use this variant when the contract needs to represent end turn; selecting it has no side effect by itself.
StreamRuleStop
Use this variant when the contract needs to represent stream rule stop; selecting it has no side effect by itself.
MaxIterations
Use this variant when the contract needs to represent max iterations; selecting it has no side effect by itself.
Fields
outcome: MaxIterationOutcomeOutcome used by this record or request.
Cancelled
Use this variant when the contract needs to represent cancelled; 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.
UnsafeStreamIntervention
Use this variant when the contract needs to represent unsafe stream intervention; selecting it has no side effect by itself.
ToolDenied
Use this variant when the contract needs to represent tool denied; selecting it has no side effect by itself.
ApprovalDenied
Use this variant when the contract needs to represent approval denied; selecting it has no side effect by itself.
ApprovalTimeout
Use this variant when the contract needs to represent approval timeout; selecting it has no side effect by itself.
ApprovalTransportFatal
Use this variant when the contract needs to represent approval transport fatal; 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.
ResumeDenied
Use this variant when the contract needs to represent resume denied; selecting it has no side effect by itself.
RecoveryCompleted
Use this variant when the contract needs to represent recovery completed; selecting it has no side effect by itself.
RecoveryIrrecoverable
Use this variant when the contract needs to represent recovery irrecoverable; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for LoopStopReason
impl Clone for LoopStopReason
Source§fn clone(&self) -> LoopStopReason
fn clone(&self) -> LoopStopReason
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 LoopStopReason
Source§impl Debug for LoopStopReason
impl Debug for LoopStopReason
Source§impl<'de> Deserialize<'de> for LoopStopReason
impl<'de> Deserialize<'de> for LoopStopReason
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>,
impl Eq for LoopStopReason
Source§impl Hash for LoopStopReason
impl Hash for LoopStopReason
Source§impl PartialEq for LoopStopReason
impl PartialEq for LoopStopReason
Source§fn eq(&self, other: &LoopStopReason) -> bool
fn eq(&self, other: &LoopStopReason) -> bool
self and other values to be equal, and is used by ==.