llmwire - v2.2.0
    Preparing search index...

    Class AIError

    Hierarchy

    • Error
      • AIError
    Index
    • Positional form kept from 1.x: new AIError(message, provider, statusCode?, details?, code?). Prefer AIError.from({...}) for anything richer.

      Parameters

      • message: string
      • provider: string
      • OptionalstatusCode: number
      • Optionaldetails: unknown
      • Optionalcode: AIErrorCode

      Returns AIError

    cause?: unknown
    details?: unknown
    hint?: string
    model?: string
    provider: string
    providerCode?: string
    requestId?: string
    retryable: boolean
    retryAfterMs?: number
    statusCode?: number
    • get status(): number | undefined

      Alias of statusCode.

      Returns number | undefined

    • Returns Record<string, unknown>

    • [provider/CODE] message — hint

      Returns string