fix(anthropic): support output_config
by ccurme
·
Feb 06, 2026 at 19:28 UTC
·
scan-34f78f033c5b361f
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Medium (30%)
Support output_config for response formatting in the Anthropic chat model.
chat_models.py changes output_format to output_config.format.
Test files modified to remove betas related to structured outputs.
No additional tests, changes mainly removal in test_chat_models.py.
Trusted contributor with 1100 merged PRs. has 207 followers.
Review 1 high-priority file(s)
libs/partners/anthropic/tests/unit_tests/test_chat_models.py
+108
108 lines changed; Source code
libs/partners/anthropic/langchain_anthropic/chat_models.py
+57
57 lines changed; Source code
libs/partners/anthropic/tests/integration_tests/test_chat_models.py
+2
Source code
libs/partners/anthropic/tests/cassettes/test_response_format_in_agent.yaml.gz
+0
Standard file
libs/partners/anthropic/tests/cassettes/test_strict_tool_use.yaml.gz
+0
Standard file
31
minutes to review
medium
effort level
none
staleness risk
Standard review process
Good evidence, acceptable risk, ready for merge
Why is coverage_maintained missing? Consider adding this check.