Skip to main content
Version: 1.x

Interface: AiResponseError

Structured error payload included in non-success AI responses.

Intent​

Provide machine-readable error codes alongside human messages.

Example​

const err: AiResponseError = {
code: 'ERR_AI_TOKEN_LIMIT',
message: 'Token limit exceeded for GPT-4o',
};

Properties​

code​

readonly code: string

Machine-readable error code (matches ErrorCode pattern).


message​

readonly message: string

Human-readable description of what failed.