Skip to content

inderunErrorSchema

const inderunErrorSchema: object

The JSON Schemas those models were generated from, for runtime use.

readonly $id: "https://schemas.inderun.dev/1.0/inderun-error.schema.json"

readonly $schema: "https://json-schema.org/draft/2020-12/schema"

readonly additionalProperties: true

readonly description: "The error shape thrown by run() (wrapped in an IndeRunException) when execution fails — via validation, routing (no eligible provider), or every attempted provider failing. Never returned as part of a successful TaskResult."

readonly properties: object

readonly details: object

readonly additionalProperties: true

readonly description: "Optional structured diagnostic details. It must not contain raw secrets."

readonly type: "object"

readonly errorClass: object

readonly description: "Normalized error taxonomy, shared with TaskResult.telemetry.errorClass: CapabilityMismatch (request needs something no eligible provider supports), Offline/Unavailable (provider unreachable or not ready), AuthError (credential/auth failure), RateLimited (provider throttled the request), Timeout (provider exceeded its execution budget), Internal (unexpected engine-side failure)."

readonly enum: readonly ["CapabilityMismatch", "Offline", "AuthError", "RateLimited", "Timeout", "Unavailable", "Internal"]

readonly message: object

readonly description: "Human-readable error message suitable for logs and developer diagnostics."

readonly minLength: 1

readonly type: "string"

readonly provenance: object

readonly $ref: "execution-provenance.schema.json"

readonly description: "Normalized execution provenance: which target ran, its declared locality, the configured and reported model, and how fallback and routing played out. See execution-provenance.schema.json."

readonly providerId: object

readonly description: "Identifier of the provider associated with the failure, if execution reached a provider."

readonly minLength: 1

readonly type: "string"

readonly retryable: object

readonly description: "Whether retrying the same request may succeed."

readonly type: "boolean"

readonly retryAfterMs: object

readonly description: "Optional suggested delay before retrying, in milliseconds."

readonly minimum: 0

readonly type: "integer"

readonly runId: object

readonly description: "Opaque run identifier associated with the failed execution, if available."

readonly minLength: 1

readonly type: "string"

readonly schemaVersion: object

readonly const: "1.0"

readonly description: "Contract schema version used to interpret the error payload."

readonly required: readonly ["schemaVersion", "errorClass", "message"]

readonly title: "IndeRunError"

readonly type: "object"