aws.internal._supports_tool_result_status

(internal) `ToolResultBlock.status` "is only supported by Amazon Nova and Anthropic Claude 3 and 4 models" (API_runtime_ToolResultBlock). Sending it to any other family ships a member that model does not accept, so it is gated on a substring of the model id — which covers a bare id (`anthropic.claude-3-5-…`), a cross-region inference profile (`us.amazon.nova-…`) and a full ARN (`…:foundation-model/anthropic.claude-…`) alike. An unrecognized model (a custom-model ARN, a provisioned-throughput ARN, Mistral/Llama/DeepSeek) omits the field; the result's text still carries the error message, so only the flag is lost.

Reference version

Signature

function aws.internal._supports_tool_result_status(model: string) -> bool

(internal) ToolResultBlock.status "is only supported by Amazon Nova and Anthropic Claude 3 and 4 models" (API_runtime_ToolResultBlock). Sending it to any other family ships a member that model does not accept, so it is gated on a substring of the model id — which covers a bare id (anthropic.claude-3-5-…), a cross-region inference profile (us.amazon.nova-…) and a full ARN (…:foundation-model/anthropic.claude-…) alike. An unrecognized model (a custom-model ARN, a provisioned-throughput ARN, Mistral/Llama/DeepSeek) omits the field; the result's text still carries the error message, so only the flag is lost.

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 2821728383