Are you an LLM? You can read better optimized documentation at /api/@nhtio/adk/batteries/llm/anthropic_messages/types/type-aliases/AnthropicMessagesErrorStatusResolver.md for this page in Markdown format
Type Alias: AnthropicMessagesErrorStatusResolver
ts
type AnthropicMessagesErrorStatusResolver = (
input: AnthropicMessagesErrorStatusInput,
) => number | undefined;Defined in: src/batteries/llm/anthropic_messages/types.ts:352
Recovers an HTTP status the Anthropic SDK could not observe.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | AnthropicMessagesErrorStatusInput | The error, its body text, and the SDK-reported status. |
Returns
number | undefined
An HTTP status to classify against, or undefined to decline.
Remarks
See AnthropicMessagesAdapterOptions.resolveErrorStatus for when this is called, why the ADK ships no default implementation, and the contract for declining. Return an HTTP status (100–599) to classify against, or undefined to leave sdkStatus in force.