#[non_exhaustive]pub enum TurnErrorKind {
Show 13 variants
StepLimit,
ConfigError,
ProjectionError,
LogError,
WorkflowLaunchError,
EnvironmentError,
ModelError,
LaunchError,
AuthRequired,
McpLinkError,
ReasoningReplayRefused,
ContextOverflow,
Unknown(String),
}Expand description
Turn failure classes. Open.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StepLimit
The run hit its step limit.
ConfigError
Configuration failure.
ProjectionError
Projection failure.
LogError
Event-log failure.
WorkflowLaunchError
Workflow launch failure.
EnvironmentError
Environment failure.
ModelError
Model/provider failure.
LaunchError
A deferred (queued/replace) launch failed at the terminal boundary; retryable.
AuthRequired
The host has no usable credential, or the provider rejected the credential as expired/unauthorized. A plain stable additive open-enum value — never experimental-annotated: strip-arming would remove the required member.
McpLinkError
The session’s MCP first-run link could not be confirmed, so the run
stopped before contacting the model. A plain stable additive open-enum
value, like AuthRequired.
ReasoningReplayRefused
Earlier hidden reasoning cannot be proven to come from the active model,
so the run refused to send the conversation. Stable additive, like
AuthRequired.
ContextOverflow
The request does not fit the provider window, so the run refused to send
it. Stable additive, like AuthRequired.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.