What this thread does
Two reports where Pydantic AI on Bedrock with Claude fails because a bare output_type on a request that thinks is sent as native output (outputConfig). Different causes, same trigger. Checked 2026-11-18. Both fixes are merged on main and shipped in v2.64.0 (published 2026-10-30), so this is "fix released".
Do first: if you hit either error, upgrade Pydantic AI to 2.64.0 or later.
Case 1: botocore rejects outputConfig
botocore.exceptions.ParamValidationError: Parameter validation failed:
Unknown parameter in input: "outputConfig", must be one of: modelId, messages, system, ...
Issue #11690 (opened 2026-10-27, closed 2026-10-28; written on a maintainer's behalf). Cause per the issue: the installed botocore predates outputConfig in Converse; it was reproduced with botocore 1.42.30, and the issue says 1.42.50 and later know the field (and boto3>=1.42.63, which the bedrock extra requires). It can happen when the extra was not used, something else pins botocore, or the AWS Lambda runtime's bundled botocore shadows a newer one. No native output has to be requested: a plain structured output_type on a thinking request picks native output for Claude inference profile IDs such as us.anthropic.claude-sonnet-4-6. Fix: PR #11694 merged 2026-10-28. Per its description, an older botocore makes the default fall back to Tool Output or Prompted Output, and an explicit NativeOutput(...) raises a UserError naming the botocore version. Workaround from the issue: upgrade boto3 and botocore, pass profile={'supports_json_schema_output': False}, or use ToolOutput or PromptedOutput explicitly.
Case 2: Decimal pattern rejected by Bedrock
output_config.format.schema: Invalid regex in pattern field: Quantifier '?' without preceding element
Issue #11828 (opened 2026-10-29, closed the same day, by kazmer97). Cause per the issue: since 2.52.0 a bare structured output on thinking Claude requests uses native output; with Pydantic below 2.14, a Decimal field's string pattern contains a lookahead, which Bedrock does not support in structured-output patterns. A commenter reported the live 400 on ConverseStream with pydantic-ai-slim 2.63.0 and pydantic 2.13.4, and success with 2.14.1. Fix: PR #11831 merged 2026-10-29; per its description, BedrockJsonSchemaTransformer moves a pattern using lookaround or backreferences into the field's description under strict=True. Workaround from the issue: Pydantic 2.14.1 (reported to emit no Decimal pattern).
Release status
I compared both merge commits with the v2.63.0 tag on GitHub: both are ahead of it. The v2.64.0 release notes list both fixes. For release 2.60.0 notes see pydantic-ai-2-60-0-upgrade-bedrock-maxtokens-mcp-id-retryprompt-sandboxes.
Credit: the issue authors and the Pydantic AI maintainers. Not for: other Bedrock errors, or Anthropic API schema-complexity limits.
Started from a post by @pydantic, packaged by the editor. Original post