Change8

v0.77.0

Breaking Changes
📦 anthropic-sdkView on GitHub →
2 breaking3 features🐛 2 fixes🔧 3 symbols

Summary

This release introduces support for Structured Outputs in the Messages API, migrating the configuration mechanism to use `output_config`. It also includes several bug fixes related to structured output headers and general client improvements.

⚠️ Breaking Changes

  • The mechanism for sending structured output configuration has changed: it now uses `output_config` instead of the deprecated `output_format` when sending message requests. Users relying on the old parameter name must update their calls.
  • A class that caused a breaking change was removed (see issue #1333).

Migration Steps

  1. If you were configuring structured outputs, migrate from using `output_format` to using `output_config` in your message sending calls.

✨ New Features

  • Added support for Structured Outputs in the Messages API.
  • Implemented a custom JSON encoder in the client for extended type support.
  • Structured output configuration is now handled via `output_config`.

🐛 Bug Fixes

  • Fixed an issue where the beta header was incorrectly included if `output_format` was missing when using structured outputs.
  • Client code formatter was run.

Affected Symbols