Skip to content
1 min read · 118 words

Interface: AnthropicMessagesErrorStatusInput ​

Defined in: src/batteries/llm/anthropic_messages/types.ts:326

Input handed to an AnthropicMessagesErrorStatusResolver.

Properties ​

PropertyTypeDescriptionDefined in
bodyTextstringThe error body as text: JSON.stringify(err.error) when the SDK parsed an object, else its string form. Empty string when the SDK captured no body.src/batteries/llm/anthropic_messages/types.ts:333
errorunknownThe raw SDK error being classified — an APIError instance.src/batteries/llm/anthropic_messages/types.ts:328
sdkStatusnumberThe status the SDK reported, already coerced: err.status when numeric, otherwise 0. A resolver typically returns undefined immediately unless this is 0.src/batteries/llm/anthropic_messages/types.ts:338