anthropic.internal._reject
(internal) Every LOCAL, pre-send rejection in the Anthropic client throws ONE error identity: `ai.errors.InvalidRequest` with a null status code — the class the Responses, Google, Images and Bedrock clients already use.
Signature
(internal) Every LOCAL, pre-send rejection in the Anthropic client throws ONE error
identity: ai.errors.InvalidRequest with a null status code — the class
the Responses, Google, Images and Bedrock clients already use.
It matters that this is an ai.errors.Failure and not
baml.errors.InvalidArgument: ai.errors.normalize flattens a non-Failure
into an untyped baml.errors.UnknownError, and ai.Fallback only advances
to the next member on a TYPED failure. A missing key in one member of a
fallback chain has to fall through, not abort the chain.
Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 1681–1888