Are you an LLM? You can read better optimized documentation at /api/@nhtio/adk/batteries/llm/anthropic_messages/error_translation.md for this page in Markdown format
@nhtio/adk/batteries/llm/anthropic_messages/error_translation
SDK error → ADK classification for the Anthropic Messages battery.
Remarks
Extracted so the dispatch path (adapter.ts) and the token-count path (count_tokens.ts) share ONE classifier. They previously carried byte-identical private copies, which meant a fix to one silently left the other wrong — exactly what happened with the statusless-APIError bug this module's AnthropicMessagesErrorStatusResolver seam addresses.
Type Aliases
| Type Alias | Description |
|---|---|
| AnthropicErrorClassification | The outcome of classifying an SDK error. |
Variables
| Variable | Description |
|---|---|
| CONTEXT_OVERFLOW_PHRASE | Body-text marker identifying an Anthropic context-overflow rejection. |
Functions
| Function | Description |
|---|---|
| translateAnthropicError | Classify an error thrown by the Anthropic SDK into an ADK disposition. |