effect-io-ai

Package: @effect/ai-openrouter
Module: OpenRouterError

OpenRouterError.OpenRouterErrorMetadata

OpenRouter-specific error metadata fields.

Signature

type OpenRouterErrorMetadata = {
  /**
   * The error code returned by the API.
   */
  readonly errorCode: string | number | null
  /**
   * The error type returned by the API.
   */
  readonly errorType: string | null
  /**
   * The unique request ID for debugging.
   */
  readonly requestId: string | null
}

Source

Since v4.0.0