effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicError

AnthropicError.AnthropicErrorMetadata

Anthropic-specific error metadata fields.

Details

Contains the Anthropic error type and request identifier copied from provider error responses when available. Either field may be null when Anthropic does not include it or the response cannot be decoded.

See

Signature

type AnthropicErrorMetadata = {
  /**
   * The Anthropic error type returned by the API.
   */
  readonly errorType: string | null
  /**
   * The unique request ID for debugging with Anthropic support.
   */
  readonly requestId: string | null
}

Source

Since v4.0.0