#[non_exhaustive]pub enum TurnErrorKind {
StepLimit,
ConfigError,
ProjectionError,
LogError,
WorkflowLaunchError,
EnvironmentError,
ModelError,
LaunchError,
AuthRequired,
McpLinkError,
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.
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.