pub enum KernelErrorCode {
Show 15 variants
InvalidModel,
InvalidRequest,
InvalidState,
ModelFailure,
ToolFailure,
PolicyFailure,
SessionFailure,
EventSinkFailure,
Cancelled,
LimitExceeded,
IdExhausted,
ClockFailure,
ContextOverflow,
RetryExhausted,
SchedulerConflict,
}Expand description
Stable machine-readable kernel failure classification.
Variants§
InvalidModel
The requested model is absent or incompatible with the run snapshot.
InvalidRequest
Run configuration or immutable request construction failed.
InvalidState
A runtime state transition is not legal.
ModelFailure
A model adapter stream violated its normalized contract.
ToolFailure
Tool lookup, validation, or execution failed.
PolicyFailure
Policy or approval context could not be constructed safely.
SessionFailure
Durable session state could not be loaded or appended.
EventSinkFailure
The awaited observation sink rejected an event.
Cancelled
The run was cooperatively cancelled.
LimitExceeded
A deterministic run limit was reached.
IdExhausted
A required deterministic ID could not be produced.
ClockFailure
The configured clock could not provide a canonical timestamp.
ContextOverflow
The compiled prompt, tools, and messages exceed the model context window.
RetryExhausted
A retryable model request exhausted the configured retry policy.
SchedulerConflict
The tool scheduler could not place an invocation safely.