Skip to main content

Interface: AISDKErrorDiagnostics

Defined in: packages/core/src/utils/format-error.ts:40

Structured diagnostic fields extracted from an AI SDK error chain. Attached to enriched errors as err.diagnostics so UI consumers can render fields cleanly without parsing the suffix out of .message.

Properties

finishReason?

optional finishReason?: string

Defined in: packages/core/src/utils/format-error.ts:45


isRetryable?

optional isRetryable?: boolean

Defined in: packages/core/src/utils/format-error.ts:42


responseBody?

optional responseBody?: string

Defined in: packages/core/src/utils/format-error.ts:44


statusCode?

optional statusCode?: number

Defined in: packages/core/src/utils/format-error.ts:41


text?

optional text?: string

Defined in: packages/core/src/utils/format-error.ts:51


url?

optional url?: string

Defined in: packages/core/src/utils/format-error.ts:43


usage?

optional usage?: object

Defined in: packages/core/src/utils/format-error.ts:46

inputTokens?

optional inputTokens?: number

outputTokens?

optional outputTokens?: number

totalTokens?

optional totalTokens?: number