pub enum TransitionGuard {
Show 24 variants
None,
PackageValid,
BudgetValid,
PackageHashesMatch,
ModelMessageHasToolCalls,
RuleActionAllowed,
FinalMessageComplete,
ProviderFailureClassified,
PermissionsPass,
DispatcherAvailableOrEscalationConfigured,
DeniedResultAllowed,
DecisionValid,
TimeoutElapsed,
ApprovalTransportFatal,
TerminalStatusAppended,
InterruptResumable,
ResumeTokenRequired,
CheckpointAndPackageValid,
ProtectedContextPreserved,
RepairPlanSafe,
InvariantRestored,
MaxIterationBudgetExhausted,
CancellationRequested,
UnsafeIntervention,
}Expand description
Enumerates the finite transition guard cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
None
Use this variant when the contract needs to represent none; selecting it has no side effect by itself.
PackageValid
Use this variant when the contract needs to represent package valid; selecting it has no side effect by itself.
BudgetValid
Use this variant when the contract needs to represent budget valid; selecting it has no side effect by itself.
PackageHashesMatch
Use this variant when the contract needs to represent package hashes match; selecting it has no side effect by itself.
ModelMessageHasToolCalls
Use this variant when the contract needs to represent model message has tool calls; selecting it has no side effect by itself.
RuleActionAllowed
Use this variant when the contract needs to represent rule action allowed; selecting it has no side effect by itself.
FinalMessageComplete
Use this variant when the contract needs to represent final message complete; selecting it has no side effect by itself.
ProviderFailureClassified
Use this variant when the contract needs to represent provider failure classified; selecting it has no side effect by itself.
PermissionsPass
Use this variant when the contract needs to represent permissions pass; selecting it has no side effect by itself.
DispatcherAvailableOrEscalationConfigured
Use this variant when the contract needs to represent dispatcher available or escalation configured; selecting it has no side effect by itself.
DeniedResultAllowed
Use this variant when the contract needs to represent denied result allowed; selecting it has no side effect by itself.
DecisionValid
Use this variant when the contract needs to represent decision valid; selecting it has no side effect by itself.
TimeoutElapsed
Use this variant when the contract needs to represent timeout elapsed; 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.
TerminalStatusAppended
Use this variant when the contract needs to represent terminal status appended; selecting it has no side effect by itself.
InterruptResumable
Use this variant when the contract needs to represent interrupt resumable; selecting it has no side effect by itself.
ResumeTokenRequired
Use this variant when the contract needs to represent resume token required; selecting it has no side effect by itself.
CheckpointAndPackageValid
Use this variant when the contract needs to represent checkpoint and package valid; selecting it has no side effect by itself.
ProtectedContextPreserved
Use this variant when the contract needs to represent protected context preserved; selecting it has no side effect by itself.
RepairPlanSafe
Use this variant when the contract needs to represent repair plan safe; selecting it has no side effect by itself.
InvariantRestored
Use this variant when the contract needs to represent invariant restored; selecting it has no side effect by itself.
MaxIterationBudgetExhausted
Use this variant when the contract needs to represent max iteration budget exhausted; selecting it has no side effect by itself.
CancellationRequested
Use this variant when the contract needs to represent cancellation requested; selecting it has no side effect by itself.
UnsafeIntervention
Use this variant when the contract needs to represent unsafe intervention; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for TransitionGuard
impl Clone for TransitionGuard
Source§fn clone(&self) -> TransitionGuard
fn clone(&self) -> TransitionGuard
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 TransitionGuard
Source§impl Debug for TransitionGuard
impl Debug for TransitionGuard
Source§impl<'de> Deserialize<'de> for TransitionGuard
impl<'de> Deserialize<'de> for TransitionGuard
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 TransitionGuard
Source§impl Hash for TransitionGuard
impl Hash for TransitionGuard
Source§impl Ord for TransitionGuard
impl Ord for TransitionGuard
Source§fn cmp(&self, other: &TransitionGuard) -> Ordering
fn cmp(&self, other: &TransitionGuard) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TransitionGuard
impl PartialEq for TransitionGuard
Source§fn eq(&self, other: &TransitionGuard) -> bool
fn eq(&self, other: &TransitionGuard) -> bool
self and other values to be equal, and is used by ==.