aws.internal._reject
(internal) Every LOCAL, pre-send rejection in this file throws ONE error identity: `ai.errors.InvalidRequest` with a null status code — the same class `converse_url` and `sign` already throw for an unresolvable region or missing credentials. It is an `ai.errors.Failure`, so unlike `baml.errors.InvalidArgument` it survives `BedrockClient.invoke`'s `ai.errors.normalize` with its identity (and its `RetrySafety`) intact instead of being flattened into an untyped `baml.errors.UnknownError`.
Signature
(internal) Every LOCAL, pre-send rejection in this file throws ONE error identity:
ai.errors.InvalidRequest with a null status code — the same class
converse_url and sign already throw for an unresolvable region or
missing credentials. It is an ai.errors.Failure, so unlike
baml.errors.InvalidArgument it survives BedrockClient.invoke's
ai.errors.normalize with its identity (and its RetrySafety) intact
instead of being flattened into an untyped baml.errors.UnknownError.
Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 14738–14947