Skip to content
1 min read · 14 words

Type Alias: AnthropicErrorClassification ​

ts
type AnthropicErrorClassification =
  | {
      kind: "abort";
    }
  | {
      kind: "timeout";
    }
  | {
      kind: "context-overflow";
      message: string;
    }
  | {
      kind: "retriable";
      message: string;
      status: number;
    }
  | {
      kind: "fatal";
      message: string;
      status: number;
    };

Defined in: src/batteries/llm/anthropic_messages/error_translation.ts:99

The outcome of classifying an SDK error.