pypi / anthropic
anthropic
What changed in anthropic 0.70 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-25.
52 breaking6 security11 deprecations212 new APIs and options1 performance21 behavior and defaults151 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initanthropic 2128 changes
Breaking changes 32
Batch requests no longer send message-batches-2024-09-24; client-set default anthropic-beta headers are now sent instead.
Some error detail types are removed.
Bedrock and Vertex platform clients now raise error-code and status exception classes.
Sampling parameters are no longer recorded on OpenTelemetry spans.
Moves some error details types to the resource they describe.
Bedrock raises ValueError for model values of "." or ".." rather than sending a request to a different path.
Rejects path parameters such as '..;x' and ';x'.
Analytics fields that are always sent are now required.
The unused project product field is dropped.
Google Cloud user profiles requests are now sent to the organization endpoint.
After append_messages(), the caller retains the tool runner's history; the current reply is excluded from the set_messages_params() callback.
The top-level ProxiesTypes export was removed; use httpx2.Proxy or a proxy URL string directly.
The top-level Transport export was removed; use httpx2.BaseTransport or httpx2.AsyncBaseTransport directly.
Construction now raises ValueError when no AWS region can be resolved, rather than warning and falling back to us-east-1; the boto3 session profile is now considered.
Unknown streaming events from the Bedrock API are now skipped instead of yielded.
The deprecated type alias was removed; use BetaRequestDocumentBlockParam instead.
Low-level request methods now always JSON-serialize body; send raw payloads through content instead.
Passing bytes as header values now raises an error; header values must be strings.
The legacy Text Completions endpoint was removed; use the Messages API instead.
Client-side tool-runner compaction and its CompactionControl dict were removed in favor of server-side compaction.
Header merging now matches names case-insensitively, so an entry with any casing replaces a same-name header, and omit removes it.
The aiohttp extra no longer installs httpx_aiohttp because it now ships inside the SDK.
The SDK's HTTP layer moved from httpx to httpx2; clients, transports, and other HTTP objects passed to or returned from the SDK must use httpx2 types.
The stream argument was removed because parse always performs a non-streaming request; use messages.stream instead.
Structured Outputs are supported in the Messages API, with the message format sent in output_config rather than output_format.
The deprecated request parameter was removed in favor of output_config; helper arguments now accept only a type, not a schema dict.
The minimum supported Python version increased from 3.9 to 3.10.
MessageStream and AsyncMessageStream no longer pass isinstance checks against Stream and AsyncStream; check for the concrete message stream classes instead.
Message methods no longer accept this parameter; for older models that still use it, pass it through extra_body, or put it in the batch request params.
Message methods no longer accept this parameter; for older models that still use it, pass it through extra_body, or put it in the batch request params.
Message methods no longer accept this parameter; for older models that still use it, pass it through extra_body, or put it in the batch request params.
It now returns APIResponse and AsyncAPIResponse instead of LegacyAPIResponse; async response-reading methods are coroutines, and text and content access changed to methods.
Security 1
The grep tool skips rg executables inside writable directories and uses the next PATH executable or built-in search; it no longer passes process ANTHROPIC_* variables to rg.
Deprecations 3
Error data models were renamed, and their old names are deprecated.
The API still accepts the listed old beta header values, but a later release removes them from SDKs; files-api-2025-04-14 and skills-2025-10-02 select beta response shapes and require migration before deletion.
Older usage and cost reports are marked legacy.
New APIs and options 42
Beta support was added for the billing_policy request parameter.
This error code is now available for messages.
Webhook events for external key failure and recovery were added.
Error codes for linked billing refusals were added.
This error code is now available.
Adds an operation to set a Claude Tag Bundle's instructions.
Claude Tag metrics are added to analytics summaries and users reports.
Claude Tag Slack channel settings accept reply_mode.
Adds claude-fable-5-2 as an available model.
Adds claude-mythos-5-2 as an available model.
Usage and cost reports now support parent organization filtering and grouping.
Adds the sandbox_egress_restricted error to Admin API write methods.
Adds the user_profile.program_status_updated webhook event and allows it on organization webhook endpoints.
Adds error codes for External Key validation failures.
Adds an error code for ramp limit errors.
Adds support for signing organization members out everywhere.
Adds api_message to APIStatusError.
Adds details to APIStatusError.
Adds error_code to APIStatusError.
Adds error details types for API errors.
Adds new values for API error types.
Adds client error classes for HTTP statuses and API error codes.
Adds an ids filter to list workspaces.
Types are added for analytics group_by.
GA methods are added for analytics.
Shared types are added for analytics ordering and increase request actors.
A session error type is added for compaction limit reached errors.
Named beta types are added for RBAC delete responses.
Types are added for spend limit period filters.
A session error type is added for tool use limit reached errors.
Named beta types are added for unified metrics.
user_profile_id is added to External Keys and Workspaces.
Added Claude Tag endpoints for Claude Enterprise organizations.
The API adds support for message threads.
Usage and cost reports can now be requested by dimension.
User profiles now include actions.
User profiles now include enforcement status.
User profiles now include a filter.
Adds support for API version 2026-10-21.
Call this at application startup to make imports of httpx and httpcore resolve to httpx2 and httpcore2; it must run before anything imports httpx.
Adds usage_tier as a scope type for listing spend limits.
Adds a workspace_id filter to list spend limits.
Behavior and default changes 4
Bundle responses now return instructions.
RBAC Role read endpoints now include source and error codes.
GA methods are added for RBAC.
GA methods are added for spend limits.
Fixes and other changes 46
On an errored scan, reason explains why there is no verdict; it is not a security finding, so check status before treating it as a concern.
Deprecated model aliases and the types nested under them continue to work.
Failed aiohttp connections are no longer reported as timeouts.
Fixes writing the credentials file on Windows with Python 3.12 and earlier.
For terminated sessions, the worker force-stops work before downloading skills or memory stores; the API reports an archived session as terminated.
Directory names are compared exactly when confining file tool and upload paths on Windows.
File tool paths that pass through a dangling symlink are now fully resolved.
The agent toolset's grep tool ignores ripgrep config files.
The agent toolset's grep searches only absolute PATH entries; on Windows it looks for rg.exe, and uses built-in search when no other rg is found.
The built-in search reads only regular files and passes over FIFOs and devices.
When ripgrep is not installed, the grep tool stops after 30 seconds of CPU time.
The session tool runner's max_idle countdown continues when a session thread terminates, including after a reconnect history-read failure.
Memory files are read only through the path that was validated.
Symlinks that point outside /memories are left out of listings.
The runner no longer runs or yields tool calls from a terminated session thread, except calls already running, which it yields with posted=false and no result.
An existing skill directory is kept when a replacement download or extraction fails.
A semicolon in a model ID is sent as is; IDs with an empty, "." or ".." part before the first semicolon are refused.
Empty model, project ID or region values are refused instead of being written into the request path.
Semicolons in the model are percent-encoded as %3B in the request path.
Project, location and workspace IDs are percent-encoded in workspace and organization base URL paths.
Empty project, location or workspace IDs are refused instead of being written into a derived base URL.
Bedrock, Bedrock Mantle, and Vertex clients now read ANTHROPIC_CUSTOM_HEADERS.
copy, with_options, and with_middleware no longer raise when ANTHROPIC_FOUNDRY_RESOURCE is set.
API errors can now be unpickled and copied.
Bedrock Mantle clients serialize query lists as a[]=1&a[]=2, matching Anthropic's behavior.
Bedrock signs requests without a Connection header instead of raising KeyError.
Adds the missing count_tokens method to beta.messages.with_raw_response and beta.messages.with_streaming_response on Bedrock and Vertex.
Adds the missing parse method to beta.messages.with_raw_response and beta.messages.with_streaming_response on Bedrock and Vertex.
Parsing keeps const in structured output schemas and drops type beside const and enum.
Bedrock and Vertex clients send the X-Stainless-Async header and stream raw requests that name no stream class.
Bedrock copies made with copy preserve a custom http_client and aws_profile.
Bedrock copies made with with_options preserve a custom http_client and aws_profile.
Capitalizes CMEK in error details type names.
The memory tool no longer renames or deletes the /memories directory.
Bedrock raises ValueError for an empty model instead of sending a request to
/model//invoke.Makes OverloadedError a subclass of InternalServerError.
Percent-encodes the model, project ID and region in the Vertex request path.
Makes the first parse of each response model thread-safe.
Makes ServiceUnavailableError a subclass of InternalServerError.
Validates unions correctly across threads on pydantic v1.
Pydantic now validates params types that accept omit.
spend_limit is nullable in the spend limit increase request approve response.
The max_retries error message no longer suggests math.inf.
The tool runner preserves betas, user_profile_id, and workspace_id when set_messages_params() leaves them out.
The tool runner receives tools as definitions; it continues running function tools provided as definitions and stops running tools removed from the tools list.
The tool runner's set_messages_params() callback receives its tools as definitions again.
anthropic 1142 changes
Breaking changes 12
The google-cloud integration now uses the v1 endpoints.
Memory store archived_at is now required.
Memory store description is now required.
Memory store metadata is now required.
Bedrock eventstream exceptions and error frames now raise an API error.
Credential loading refuses config files writable by group or others.
Beta user profiles use access_type in place of relationship.
Beta user profiles add external_user_onboarded_at.
Beta user profiles remove relationship in favor of access_type.
Dated beta header pins are dropped, so developers no longer need to pin those beta headers.
Webhook unwrap() requires headers to be passed.
The client upgrades to httpx2 and includes minor breaking changes; see MIGRATION.md for details.
Deprecations 4
Deprecates name on RBAC roles in favor of display_name.
Deprecates sonnet 4.5.
group_type is deprecated for rate limits.
The idempotency_key request option is retained as a deprecated no-op.
New APIs and options 70
Adds org webhook endpoints.
Adds owner-access error codes to the Admin API.
Adds user profile enforcement events.
Analytics report pages now include data_refreshed_at, allowing developers to access the data refresh time.
Analytics report pages now include has_more, allowing developers to check whether more results are available.
The google-cloud integration adds an organization endpoint.
The Admin API now supports workspace rate-limit updates.
Adds the speed parameter to Messages.
Returns a Console organization's usage-tier spend cap as a read-only spend limit.
Adds usage.speed to Messages.
Set ANTHROPIC_OPEN_TELEMETRY=false to disable native OpenTelemetry support.
Managed Agents agents now support execution_identity.
Pass open_telemetry=False to the client to disable native OpenTelemetry support.
An endpoint is available to test telemetry destinations.
The Admin API now supports telemetry destinations.
Multiagent configuration was added to Managed Agents.
Thread status filtering was added to Managed Agents.
Workflows were added to Managed Agents.
Types were added for Chat and Cowork unified analytics metrics.
Adds claude-haiku-5-5 as a model developers can use.
Adds typed computer and browser toolset tool calls.
Adds display_name to RBAC roles.
Adds line to model objects.
Adds the include_default parameter to list workspaces.
Adds web search and code execution support to model capabilities.
Adds disabled to thinking types in model capabilities.
Adds url_sources to the Managed Agents web_fetch tool configuration.
Adds lifecycle stage fields and a filter to the models endpoint.
Adds an endpoint to list spend limits.
The Admin API adds Claude Enterprise analytics.
Admin API analytics now provide per-user usage and cost reports.
The Admin API adds support for Plugins and Plugin Marketplaces.
The Admin API adds RBAC groups and roles.
Managed Agents session idle events can report a refusal stop reason.
The Admin API adds spend limits.
Managed Agents session idle events now include stop_details.
MCP tunnels expose a read-only transport object on Tunnel.
Adds between_tools to thinking types in model capabilities.
Adds the claude-sonnet-5-5 model.
Adds include_inherited to workspace rate limits.
Adds typed event type values to the Managed Agents events list filter.
Adds source to workspace rate limits.
Optionally runs tool calls while the reply streams.
Adds support for the claude-opus-5-5 model.
Adds support for inline tool definitions.
Adds beta support for MCP tool-list pinning.
The tool runner adds compact_before_next_turn() to compact before the next turn.
Rate limits now include a group with display_name.
The client now supports asynchronous credential token providers.
A compaction parameter is available in beta.
Signed compaction blocks are available in beta.
input_transformations now supports thinking_mismatch_allowed entries in beta.
The web fetch tool now supports url_sources.
Enum types are now available for workspace data-residency geo fields.
User profiles methods now accept a workspace_id parameter.
Managed Agents now support auto mode tool permissions.
Adds BetaMessage.to_param() for converting a BetaMessage to a parameter representation.
Adds content_too_large as a web_fetch tool error code.
Adds the CredentialsError exception.
Adds external_user_details to user profiles.
Adds the IdentityTokenFileError exception.
Adds Message.to_param() for converting a Message to a parameter representation.
Tool objects are accepted directly in messages.create, parse, stream, and count_tokens.
Adds a beta value for user profiles.
Named types are now available for organization compliance settings state.
Usage reports now include Claude Tag category and user breakdowns.
More endpoints now support sending a workspace ID.
Organization compliance settings are updated.
Adds support for Organization API endpoints, allowing developers to use those endpoints through the SDK.
Adds the updates thinking display mode (beta), giving developers another available thinking display mode.
Behavior and default changes 12
The client now yields server-sent events even when their event names are unrecognized.
User Profiles are now generally available.
The SDK uses a registered global tracer provider to create spans and exports them with the rest of your traces; requests also get trace context headers from the global propagator.
Organization API endpoints are now generally available.
A plugin's org-wide installation setting can now be removed.
MCP tunnel creation responses now return the one-time relay token.
Makes cache diagnostics generally available on Message and MessageCreateParams.
Managed Agents sessions can mount public GitHub repositories without an authorization_token.
User-profile order_by is updated.
The toolset schema is updated.
The beta files namespace uses GA shapes.
The beta skills namespace uses GA shapes.
Fixes and other changes 44
Bedrock and Mantle clients now keep a workspace ID set in default_headers.
Google Cloud clients now keep workspace and user profile IDs set in default_headers.
Dropped streams close without waiting for the collector.
Unknown event types pass through the message stream helpers.
An event before message_start no longer raises "Unexpected event order".
Spend limit lists now include the organization_type_not_supported error.
Sends the beta header by default when listing spend limits.
Keeps a local edit made after a memory upload whose response was lost.
The client now sends empty strings in query parameters and multipart forms.
Admin plugin preference and marketplace fields are now typed as enums.
Auto-paging continues after an empty page when next_page is set.
The session tool runner stops after any idle that ends the turn.
Between_tools thinking degrades to disabled on fallback hops.
Accepts diagnostics in stream() and parse().
Unnamed file uploads no longer send a placeholder filename.
Changes made with add_tools take effect straight away.
Managed Agents events now share one evaluated_permission enum.
Avoids a Python 3.13 crash at exit when a stream is left open.
Reply-only parameters are no longer included in the tool runner's compaction request.
Multiple anthropic-beta values are joined with a comma and no space.
The tool runner's compact_before_next_turn() state and failure handling are tidied.
Response parsing now accepts X | Y union types.
Fields typed as X | Y no longer raise TypeError when response data is unknown.
The async client retries connection errors without blocking in the coroutine retry loop.
Message and delta event now use one input transformation type.
The client now honors Retry-After values above 60 seconds.
Invalid Retry-After values are ignored, and maxRetries is validated.
The client uses the default backoff when Retry-After is out of range.
The usage iteration model is now marked nullable, matching responses where it may be absent.
extra_body is merged before client hooks run.
parsed_output is excluded from dumped text blocks.
Streaming keeps partial tool input JSON off content blocks.
The custom-code merge in messages resources was repaired.
Passing an httpx object instead of an httpx2 object now raises a clear error.
Resolve base_url from aws_region when using skip_auth and with_options.
The memory-store schema is updated.
Derive a multipart filename for file tuples passed without one.
Add results to GA raw and streaming batch response wrappers.
AWS Bedrock signs raw request bytes so binary file uploads work.
The agent toolset and memory tool preserve exact file bytes without newline translation.
The event accumulator handles new event types in a forward-compatible way.
The read tool can return a view_range of a file even when the file exceeds the size cap.
The tool runner now keeps going on pause_turn.
The parse, stream, and tool_runner helpers no longer warn about output_format=.
anthropic 0.1252 changes
New APIs and options 2
Adds web search configuration for managed agents.
Adds support for memory in self-hosted sandboxes.
anthropic 0.1244 changes
New APIs and options 2
A browser use toolset is added.
A computer use toolset is added.
Behavior and default changes 2
The Files API is now generally available.
The Skills API is now generally available.
anthropic 0.1238 changes
Breaking changes 1
Removes the unsupported mid_conv_system content block.
New APIs and options 2
Adds API support for files and memory stores.
Adds client helpers for accessing the workspace ID in response headers.
Fixes and other changes 5
Exports DeadlineExceededError from the package root.
Exports ServiceUnavailableError from the package root.
Runs synchronous session tools in a worker thread.
Updates the API for skills, files, and user profiles.
Retries tool-result sends for at least the lease TTL.
anthropic 0.12218 changes
Security 1
Tool paths reject symlink loops.
New APIs and options 4
Expose beta.messages.parse for Bedrock and Vertex clients.
Dream creation accepts output_behavior to create a new memory store or update the input store in place.
Expose stream for Bedrock clients.
Expose tool_runner for Bedrock and Vertex clients.
Fixes and other changes 13
Omitted content block fields remain unset in accumulated messages.
An empty ANTHROPIC_API_KEY is treated as unset.
An empty ANTHROPIC_AUTH_TOKEN is treated as unset.
Streaming emits input_json events for server tool use blocks.
Non-beta accumulator errors for malformed tool input JSON include context.
Accumulated streamed messages apply all message_delta fields.
Pydantic serializer warnings are silenced on message_stop events.
The request transform runs once in messages.stream().
Add models to the client.
Read contents from PathLike values passed inside a file tuple.
Async Bedrock clients run SigV4 signing off the event loop.
Special skill-archive members are skipped.
Keep token exchange bound per client when using copy().
anthropic 0.1216 changes
Breaking changes 1
Removes retired Claude Opus 4.1 models.
New APIs and options 5
Adds support for the advisor tool.
Adds the mid-conversation-tool-changes-2026-07-01 beta.
Adds support for pinned inference location.
Adds support for session budgets.
Adds support for skills auto-loading from GitHub.
anthropic 0.1206 changes
New APIs and options 5
Adds the claude-opus-5 model.
Expands the supported client-side fallback credit token types.
Adds a default option for server-side fallbacks.
Adds blocks for tool additions and removals.
Adds tool_change events.
Fixes and other changes 1
Supports MCP SDK v2 alongside v1.
anthropic 0.1192 changes
New APIs and options 1
Adds model_context_window_exceeded as a stop reason.
Fixes and other changes 1
Handles binary files in agent toolset read/edit.
anthropic 0.1183 changes
New APIs and options 3
Adds support for initial session events.
Adds support for model effort in Managed Agents.
Adds support for delta streaming in threads.
anthropic 0.1174 changes
Security 1
Keeps credential material out of traceback frame locals via SecretStr.
New APIs and options 2
Adds API support for dreaming.
Adds API support for MCP Tunnels.
Fixes and other changes 1
Credentials are now handled correctly when using AnthropicAWS.copy().
anthropic 0.1161 changes
New APIs and options 1
Adds the agent-memory-2026-07-22 beta header.
anthropic 0.1156 changes
Breaking changes 1
Some nonfunctional types were removed from the SDKs, which may affect developers referencing them.
New APIs and options 5
Adds support for agent and deployment webhook events.
Adds support for agent overrides.
Adds support for Managed Agents event delta streaming.
Adds support for reverse pagination.
Adds support for vault credential injection scoping.
anthropic 0.1142 changes
New APIs and options 1
The API now supports claude-sonnet-5 as a model.
Fixes and other changes 1
The agent toolset allows absolute paths that resolve inside the workdir.
anthropic 0.1133 changes
New APIs and options 2
Accepts user profile IDs when counting tokens.
Adds API support for 20260318 web fetch and support tools.
Fixes and other changes 1
Fixes the async count_tokens output_format/output_config merge block.
anthropic 0.1124 changes
New APIs and options 3
The API now supports a new refusal category.
The client supports system.message streaming events, allowing developers to handle these events in streams.
Requests can now send a User Profile ID in their headers.
Fixes and other changes 1
The memory tool now creates parent directories with the correct permissions.
anthropic 0.1111 changes
New APIs and options 1
Requests from refusal-fallback middleware are tagged with fallback-refusal-middleware.
anthropic 0.1102 changes
New APIs and options 1
Adds support for the code_execution_20260120 tool.
Fixes and other changes 1
Preserves the stream event type for Bedrock.
anthropic 0.1094 changes
Breaking changes 1
Retired models were removed from the API and SDKs.
New APIs and options 3
Adds frontier_llm as a refusal category in the API.
The SDK adds support for credentials supplied through environment variables.
The SDK adds support for Managed Agents deployments.
anthropic 0.1083 changes
New APIs and options 3
Adds support for claude-fable-5, including server-side fallbacks on refusal.
Adds support for claude-mythos-5, including server-side fallbacks on refusal.
Adds client-side fallbacks middleware for API providers that do not support server-side fallbacks.
anthropic 0.1072 changes
Fixes and other changes 2
Foundry now sends the x-api-key header when using API-key authentication.
Managed Agents types received small updates, which may affect code that uses those types.
anthropic 0.1064 changes
Deprecations 1
Claude Opus 4.1 is now marked as deprecated.
Fixes and other changes 3
The Foundry client's copy() method now works.
Schema transformation now preserves $defs when the schema root is a $ref.
The Foundry client's with_options() method now works.
anthropic 0.1054 changes
New APIs and options 4
Adds support for the claude-opus-4-8 model.
Adds support for custom file size caps.
Adds support for system blocks in the middle of a conversation.
Adds support for usage.output_tokens_details.
anthropic 0.1042 changes
New APIs and options 1
Adds support for the thinking-token-count beta, providing estimated tokens in thinking block deltas when streaming.
Fixes and other changes 1
Streaming now carries encrypted_content through the beta compaction accumulator.
anthropic 0.1032 changes
New APIs and options 1
Adds support for self-hosted sandboxes in CMA with sandbox helpers.
Fixes and other changes 1
SessionToolRunner now skips tool calls it does not own.
anthropic 0.1022 changes
New APIs and options 2
Adds BetaManagedAgentsSearchResultBlock types for working with managed agent search results.
Adds support for cache diagnostics beta.
anthropic 0.1012 changes
New APIs and options 1
Adds an AWS client for Claude Platform on AWS.
Fixes and other changes 1
Fixes a missing f-string prefix in the file type error message.
anthropic 0.1005 changes
New APIs and options 4
Adds API support for Managed Agents multiagents.
Adds API support for Managed Agents outcomes.
Adds support for vault validation.
Adds API support for webhooks.
Fixes and other changes 1
Adjusts webhook configuration.
anthropic 0.991 changes
New APIs and options 1
OIDC federation token exchange can target a workspace.
anthropic 0.988 changes
New APIs and options 4
Auth profiles were added to the client.
Headers can now be set via environment variables.
Interactive OAuth was added to the client.
Workload Identity Federation was added to the client.
Fixes and other changes 4
The async Vertex client now includes the us/eu multi-region base_url branches.
The Managed Agents APIs were improved.
Multipart file arrays now use the correct field name format.
Streaming now propagates stop_details from message_delta onto the accumulated Message.
anthropic 0.972 changes
Performance 1
File structure copying in multipart requests is optimized, improving request performance.
Behavior and default changes 1
CMA Memory is available in public beta.
anthropic 0.963 changes
New APIs and options 3
Adds claude-opus-4-7 as an API model.
Adds token budgets to the API.
Adds user_profiles to the API.
anthropic 0.952 changes
Deprecations 1
Sonnet and Opus 4 are marked as deprecated.
Behavior and default changes 1
The Bedrock Mantle client uses an auth header.
anthropic 0.943 changes
New APIs and options 1
Adds support for the Vertex EU region.
Fixes and other changes 2
Adds missing events to streaming support.
Ensures file data are sent as only one parameter.
anthropic 0.931 changes
New APIs and options 1
Adds a beta advisor tool to the API.
anthropic 0.921 changes
New APIs and options 1
Adds support for Claude Managed Agents in the SDK.
anthropic 0.911 changes
New APIs and options 1
A Bedrock Mantle client was added to the SDK.
anthropic 0.901 changes
New APIs and options 1
Adds support for the claude-mythos-preview model.
anthropic 0.893 changes
Deprecations 1
Deprecates the client-side compaction helpers.
New APIs and options 1
Adds support for the US multi-region endpoint for Vertex.
Fixes and other changes 1
Hardcoded query parameters are preserved when merging with user-provided parameters.
anthropic 0.882 changes
New APIs and options 2
Adds API key authentication for Bedrock.
Message responses now include structured stop_details.
anthropic 0.877 changes
Security 3
Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape
Sanitizes endpoint path parameters.
Memory files now use a more restrictive file mode.
New APIs and options 2
Adds an error type field to APIStatusError so developers can inspect the API error type.
Implements indices array format for query and form serialization.
Fixes and other changes 2
The async transform path now honors __api_exclude__.
Schema transformation now supports enums.
anthropic 0.862 changes
New APIs and options 1
Support was added for filesystem memory tools.
Fixes and other changes 1
The SDK no longer passes by_alias to Pydantic unless it is set.
anthropic 0.854 changes
Behavior and default changes 1
Thinking-display-setting is now GA.
Fixes and other changes 3
Async compaction now uses the filtered messages list.
The async status-error handling now includes cases for HTTP statuses 529 and 413.
Programmatic tool calling now propagates container_id through the tool runner.
anthropic 0.842 changes
Breaking changes 1
Array formatting changes to brackets, affecting how arrays are serialized.
New APIs and options 1
Conversion helpers are available for MCP tools, prompts, and resources.
anthropic 0.831 changes
New APIs and options 1
Adds top-level cache control for automatic caching.
anthropic 0.823 changes
Fixes and other changes 3
Fixes the API's error code types.
Uses a shared UserLocation type in the API.
Adds backward-compatible aliases for removed nested UserLocation classes.
anthropic 0.811 changes
New APIs and options 1
New tool versions are available as top-level tool types.
anthropic 0.802 changes
Breaking changes 1
The speed field was removed from GA messages.
New APIs and options 1
Claude Sonnet 4.6 is now available for use through the API.
anthropic 0.792 changes
New APIs and options 1
Fast mode is enabled for claude-opus-4-6, allowing developers to use the speed parameter with that model.
Fixes and other changes 1
The synchronous beta count_tokens call now passes through the speed parameter.
anthropic 0.782 changes
New APIs and options 2
Adaptive thinking is released as an API feature.
Claude Opus 4.6 is released for use through the API.
anthropic 0.774 changes
Breaking changes 1
A class was removed, causing a breaking change; the notes do not identify which class.
New APIs and options 1
The client uses a custom JSON encoder to support extended types.
Fixes and other changes 2
The SDK now sends the structured output beta header when format is omitted.
The beta header is no longer included when output_format is missing.
anthropic 0.766 changes
New APIs and options 3
The client now supports binary request streaming.
messages.stream() now accepts a raw JSON schema.
The tool runner now supports server-side tools.
Fixes and other changes 3
Client authentication header validation is less restrictive.
Pyright can now infer TypedDict types within SequenceNotStr.
Streams are now always closed, helping ensure resources are released.
anthropic 0.755 changes
New APIs and options 5
Adds support for Advance Tool Use Features.
Adds support for Autocompaction.
Adds API support for Claude Opus 4.5.
Adds support for Computer Use v5.
Adds support for Effort.
anthropic 0.742 changes
New APIs and options 1
Adds Foundry SDK support for developers building with Anthropic.
Fixes and other changes 1
Structured outputs now use the correct beta header, so requests send the expected header.
anthropic 0.731 changes
New APIs and options 1
Adds SDK support for structured outputs beta.
anthropic 0.725 changes
Breaking changes 1
Support for Python 3.8 was dropped.
New APIs and options 1
Adds the ability to clear thinking in context management.
Fixes and other changes 3
The signature was updated for Pydantic v1 compatibility.
Compatibility with Python 3.14 was fixed.
Streams can be closed without being fully consumed.
anthropic 0.713 changes
Deprecations 1
Older Sonnet models are now marked as deprecated.
New APIs and options 1
Adds support for agent skills in the API.
Fixes and other changes 1
Resolved non-functional default socket options in the client.
anthropic 0.702 changes
New APIs and options 2
The client adds the context-management-2025-06-27 beta header to requests.
The client adds the model-context-window-exceeded-2025-08-26 beta header to requests.