ReadonlyattemptedReadonlycodeReadonlydetailsReadonlymodelReadonlyproviderReadonlyretryableReadonlyseverityReadonlysuggestionsReadonlytimestampReadonlytokenReturns structured context for AI agents to reason about the error.
AI-friendly context object.
Serializes the error to a plain JSON-safe object.
Structured representation with all diagnostic fields.
Error subclass for AI provider failures.
Example