Anthropic Python SDK v0.122.0 Adds Dream Creation Output Behavior, Fixes Bugs
sdkaipreviewengineermedia
feature patch
Anthropic has released version 0.122.0 of its Python SDK, introducing an `output_behavior` parameter for dream creation that allows specifying a new memory store or updating an existing one. This release also includes multiple bug fixes, enhancing the SDK's stability and consistency across various integrations. Key improvements address asynchronous client signing in Bedrock, expose beta APIs for messages and tool running, and refine streaming message accumulation. Developers using the Python SDK for AI model interactions, particularly with AWS Bedrock or Google Cloud Vertex AI, are affected by these updates.
- →add output_behavior to dream creation (create a new memory store or update the input store in place)
- →bedrock,aws: run SigV4 signing off the event loop in async clients
- →expose beta.messages.parse, stream and tool_runner
- →add models
- →keep token exchange bound per client across copy()
Features (1) ›
- api add output_behavior to dream creation (create a new memory store or update the input store in place)
Fixes (14) ›
- bedrock,aws: run SigV4 signing off the event loop in async clients
- bedrock expose beta.messages.parse, stream and tool_runner
- client add models
- client keep token exchange bound per client across copy()
- client read PathLike contents passed inside a file tuple
- client treat empty ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN as unset
- streaming add context to malformed tool input JSON errors in the non-beta accumulator
- streaming apply all message_delta fields when accumulating streamed messages
- streaming emit input_json events for server tool use blocks
- streaming keep omitted content block fields unset in accumulated messages
- streaming run the request transform once in messages.stream()
- streaming silence pydantic serializer warnings on message_stop events
- tools reject symlink loops in tool paths and skip special skill-archive members
- vertex expose beta.messages.parse and tool_runner
Maintenance (11) ›
- ci run breaking-change detection as a ci.yml job on every push
- examples update messages_stream.py shebang from rye to uv
- internal codegen related update
- internal drop remaining references to black
- internal remove misc things
- tests use pytest monkeypatch and fakes instead of unittest.mock
- tests use pytest monkeypatch instead of unittest.mock
- api clarify that user profile name is optional for resold profiles
- fix fulfillment typos in session runner
- fix incorrect docstring in AsyncAnthropicFoundry.models
- use the not_given singleton instead of the legacy NOT_GIVEN alias
Read the original announcement →
https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.122.0
Related releases
- Claude Code Patch Fixes MCP OAuth Sign-In Issue Claude Code Releases ·
- Claude Code v2.1.229 Delivers Stability Fixes and Developer Workflow Improvements Claude Code Releases ·
- Anthropic Claude claude-sonnet-4-5-20250929 reaches end of life in 49 days endoflife.date ·
- Anthropic Claude claude-haiku-4-5-20251001 reaches end of life in 65 days endoflife.date ·
- Claude Code v2.1.228: Bug Fixes and Improvements Claude Code Releases ·
- Anthropic Claude Platform Updates: Opus 5, Agent Enhancements, & Deprecations Claude Platform Release Notes ·