Skip to content

feat(bedrock): add native structured outputs - #2515

Closed
jxnl wants to merge 1 commit into
mainfrom
codex/1.16-bedrock-native-structured
Closed

jxnl wants to merge 1 commit into
mainfrom
codex/1.16-bedrock-native-structured

Conversation

@jxnl

@jxnl jxnl commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add opt-in Bedrock Mode.JSON_SCHEMA support through Converse outputConfig.textFormat
  • add opt-in Bedrock Mode.TOOLS_STRICT support through native strict tool schemas
  • recursively set additionalProperties: false on object schemas without mutating Pydantic-owned data, and reject free-form mappings instead of silently changing their semantics
  • raise the Bedrock extra floor to boto3>=1.42.42,<2, the first verified line exposing both request shapes while retaining Python 3.9
  • document current usage and record the change in the changelog

This is the current-v2 reconstruction of #2086 and preserves the structured-output contribution from @ndgigliotti. It fixes #2084 once merged.

Deliberately omitted

Those concerns remain independently reviewable and avoid coupling native structured outputs to policy or credential changes.

Validation

  • focused Bedrock/provider suite: 328 passed, 66 skipped
  • exact offline core scope: 2051 passed, 148 skipped
  • deterministic offline coverage: 760 passed, 93% statement coverage
  • focused branch coverage exercises every newly added Bedrock handler statement
  • isolated Python 3.9 lock resolution: boto3/botocore 1.42.97; focused handlers/client suite 18 passed, 1 skipped
  • isolated boto3/botocore 1.42.42 service-model probes on Python 3.9 and 3.11 expose both Converse.outputConfig and toolSpec.strict
  • full Ruff lint/format
  • strict source and test typing for current Python plus Python 3.9 and 3.14 targets
  • uv lock --check, all pre-commit hooks, installed-package typing smoke, and git diff --check
  • clean MkDocs build; only the three pre-existing Griffe warnings and unrelated stale anchors remain

No Bedrock live-credential job is configured in this repository, so request-shape support is verified deterministically against botocore's locked service model and the complete offline matrix. GitHub checks are pending.

Release sequencing

This remains draft while exact commit 1454af92 is held as the unpublished 1.15.5 candidate. Runtime 1.16 work should not merge past that point until 1.15.5 is published or the release-history decision is made explicitly.

Co-authored-by: ndgigliotti <12902796+ndgigliotti@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
instructor 211fce3 Commit Preview URL

Branch Preview URL
Aug 08 2026, 07:49 PM

jxnl commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator Author

1.16 integration update: this component remains independently green, and the exact six-PR aggregate is now fully green in draft #2517 at 0980b3da across Ruff, ty, full coverage, Python 3.9-3.13, provider jobs, and nonpublishing release readiness. The stacked versioned 1.16.0 candidate is also fully green in draft #2518 at de3ceaf5, including artifact build and Python 3.9/3.13 wheel smokes. Keep this PR draft until the unpublished 1.15.5 sequencing decision is approved.

jxnl commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator Author

Explicit Bedrock native JSON_SCHEMA and TOOLS_STRICT support is now on main via #2517 at ad95a3d4. Closing this independently reviewed draft as consolidated; its focused history and attribution remain here, and the final folded 1.16 release metadata is in #2519.

@jxnl jxnl closed this Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(bedrock): Add support for AWS Bedrock native structured outputs

1 participant