v0.122.0
📦 anthropic-sdkView on GitHub →
✨ 1 features🐛 14 fixes🔧 9 symbols
Summary
This release introduces `output_behavior` for dream creation and includes numerous bug fixes across API clients, streaming, and tool handling. It also refactors the use of the `NOT_GIVEN` alias to the `not_given` singleton.
Migration Steps
- Use the `not_given` singleton instead of the legacy `NOT_GIVEN` alias.
✨ New Features
- Added `output_behavior` to dream creation for managing memory stores.
🐛 Bug Fixes
- SigV4 signing now runs off the event loop in async clients for Bedrock and AWS.
- Exposed `beta.messages.parse`, `stream`, and `tool_runner` for Bedrock.
- Added models to the client.
- Ensured token exchange remains bound per client across `copy()` operations.
- Client can now read `PathLike` contents passed within a file tuple.
- Empty `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` are now treated as unset.
- Added context to malformed tool input JSON errors in the non-beta accumulator for streaming.
- Applied all `message_delta` fields when accumulating streamed messages.
- Emitted `input_json` events for server tool use blocks in streaming.
- Kept omitted content block fields unset in accumulated messages.
- Ran the request transform once in `messages.stream()`.
- Silenced pydantic serializer warnings on `message_stop` events.
- Rejected symlink loops in tool paths and skipped special skill-archive members.
- Exposed `beta.messages.parse` and `tool_runner` for Vertex AI.