unstale

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 init

@unstale/cli on npm

anthropic 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.

    2.9.0release notes

  • Some error detail types are removed.

    2.7.0release notes

  • Bedrock and Vertex platform clients now raise error-code and status exception classes.

    2.6.0release notes

  • Sampling parameters are no longer recorded on OpenTelemetry spans.

    2.6.0release notes

  • Moves some error details types to the resource they describe.

    2.5.0release notes

  • Bedrock raises ValueError for model values of "." or ".." rather than sending a request to a different path.

    2.5.0release notes

  • Rejects path parameters such as '..;x' and ';x'.

    2.5.0release notes

  • Analytics fields that are always sent are now required.

    2.4.0release notes

  • The unused project product field is dropped.

    2.4.0release notes

  • Google Cloud user profiles requests are now sent to the organization endpoint.

    2.3.0release notes

  • After append_messages(), the caller retains the tool runner's history; the current reply is excluded from the set_messages_params() callback.

    2.2.0release notes

  • The top-level ProxiesTypes export was removed; use httpx2.Proxy or a proxy URL string directly.

    2.0.0upgrade guide

  • The top-level Transport export was removed; use httpx2.BaseTransport or httpx2.AsyncBaseTransport directly.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

  • Unknown streaming events from the Bedrock API are now skipped instead of yielded.

    2.0.0upgrade guide

  • The deprecated type alias was removed; use BetaRequestDocumentBlockParam instead.

    2.0.0upgrade guide

  • Low-level request methods now always JSON-serialize body; send raw payloads through content instead.

    2.0.0upgrade guide

  • Passing bytes as header values now raises an error; header values must be strings.

    2.0.0upgrade guide

  • The legacy Text Completions endpoint was removed; use the Messages API instead.

    2.0.0upgrade guide

  • Client-side tool-runner compaction and its CompactionControl dict were removed in favor of server-side compaction.

    2.0.0upgrade guide

  • Header merging now matches names case-insensitively, so an entry with any casing replaces a same-name header, and omit removes it.

    2.0.0upgrade guide

  • The aiohttp extra no longer installs httpx_aiohttp because it now ships inside the SDK.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

  • The stream argument was removed because parse always performs a non-streaming request; use messages.stream instead.

    2.0.0upgrade guide

  • Structured Outputs are supported in the Messages API, with the message format sent in output_config rather than output_format.

    0.77.0, 2.0.0release notesupgrade guide

  • The deprecated request parameter was removed in favor of output_config; helper arguments now accept only a type, not a schema dict.

    2.0.0upgrade guide

  • The minimum supported Python version increased from 3.9 to 3.10.

    2.0.0upgrade guide

  • MessageStream and AsyncMessageStream no longer pass isinstance checks against Stream and AsyncStream; check for the concrete message stream classes instead.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

  • It now returns APIResponse and AsyncAPIResponse instead of LegacyAPIResponse; async response-reading methods are coroutines, and text and content access changed to methods.

    2.0.0upgrade guide

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.

    2.9.0release notes

Deprecations 3

  • Error data models were renamed, and their old names are deprecated.

    2.10.0release notes

  • 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.

    2.9.0release notes

  • Older usage and cost reports are marked legacy.

    2.2.0release notes

New APIs and options 42

  • Beta support was added for the billing_policy request parameter.

    2.10.0release notes

  • This error code is now available for messages.

    2.10.0release notes

  • Webhook events for external key failure and recovery were added.

    2.10.0release notes

  • Error codes for linked billing refusals were added.

    2.10.0release notes

  • This error code is now available.

    2.10.0release notes

  • Adds an operation to set a Claude Tag Bundle's instructions.

    2.9.0release notes

  • Claude Tag metrics are added to analytics summaries and users reports.

    2.8.0release notes

  • Claude Tag Slack channel settings accept reply_mode.

    2.8.0release notes

  • Adds claude-fable-5-2 as an available model.

    2.7.0release notes

  • Adds claude-mythos-5-2 as an available model.

    2.7.0release notes

  • Usage and cost reports now support parent organization filtering and grouping.

    2.7.0release notes

  • Adds the sandbox_egress_restricted error to Admin API write methods.

    2.7.0release notes

  • Adds the user_profile.program_status_updated webhook event and allows it on organization webhook endpoints.

    2.7.0release notes

  • Adds error codes for External Key validation failures.

    2.6.0release notes

  • Adds an error code for ramp limit errors.

    2.6.0release notes

  • Adds support for signing organization members out everywhere.

    2.6.0release notes

  • Adds api_message to APIStatusError.

    2.5.0release notes

  • Adds details to APIStatusError.

    2.5.0release notes

  • Adds error_code to APIStatusError.

    2.5.0release notes

  • Adds error details types for API errors.

    2.5.0release notes

  • Adds new values for API error types.

    2.5.0release notes

  • Adds client error classes for HTTP statuses and API error codes.

    2.5.0release notes

  • Adds an ids filter to list workspaces.

    2.5.0release notes

  • Types are added for analytics group_by.

    2.4.0release notes

  • GA methods are added for analytics.

    2.4.0release notes

  • Shared types are added for analytics ordering and increase request actors.

    2.4.0release notes

  • A session error type is added for compaction limit reached errors.

    2.4.0release notes

  • Named beta types are added for RBAC delete responses.

    2.4.0release notes

  • Types are added for spend limit period filters.

    2.4.0release notes

  • A session error type is added for tool use limit reached errors.

    2.4.0release notes

  • Named beta types are added for unified metrics.

    2.4.0release notes

  • user_profile_id is added to External Keys and Workspaces.

    2.4.0release notes

  • Added Claude Tag endpoints for Claude Enterprise organizations.

    2.3.0release notes

  • The API adds support for message threads.

    2.2.0release notes

  • Usage and cost reports can now be requested by dimension.

    2.2.0release notes

  • User profiles now include actions.

    2.1.0release notes

  • User profiles now include enforcement status.

    2.1.0release notes

  • User profiles now include a filter.

    2.1.0release notes

  • Adds support for API version 2026-10-21.

    2.0.0release notes

  • Call this at application startup to make imports of httpx and httpcore resolve to httpx2 and httpcore2; it must run before anything imports httpx.

    2.0.0upgrade guide

  • Adds usage_tier as a scope type for listing spend limits.

    2.0.0release notes

  • Adds a workspace_id filter to list spend limits.

    2.0.0release notes

Behavior and default changes 4

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.

    2.10.0release notes

  • Deprecated model aliases and the types nested under them continue to work.

    2.10.0release notes

  • Failed aiohttp connections are no longer reported as timeouts.

    2.10.0release notes

  • Fixes writing the credentials file on Windows with Python 3.12 and earlier.

    2.9.0release notes

  • For terminated sessions, the worker force-stops work before downloading skills or memory stores; the API reports an archived session as terminated.

    2.9.0release notes

  • Directory names are compared exactly when confining file tool and upload paths on Windows.

    2.9.0release notes

  • File tool paths that pass through a dangling symlink are now fully resolved.

    2.9.0release notes

  • The agent toolset's grep tool ignores ripgrep config files.

    2.9.0release notes

  • 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.

    2.9.0release notes

  • The built-in search reads only regular files and passes over FIFOs and devices.

    2.9.0release notes

  • When ripgrep is not installed, the grep tool stops after 30 seconds of CPU time.

    2.9.0release notes

  • The session tool runner's max_idle countdown continues when a session thread terminates, including after a reconnect history-read failure.

    2.9.0release notes

  • Memory files are read only through the path that was validated.

    2.9.0release notes

  • Symlinks that point outside /memories are left out of listings.

    2.9.0release notes

  • 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.

    2.9.0release notes

  • An existing skill directory is kept when a replacement download or extraction fails.

    2.9.0release notes

  • A semicolon in a model ID is sent as is; IDs with an empty, "." or ".." part before the first semicolon are refused.

    2.8.0release notes

  • Empty model, project ID or region values are refused instead of being written into the request path.

    2.8.0release notes

  • Semicolons in the model are percent-encoded as %3B in the request path.

    2.8.0release notes

  • Project, location and workspace IDs are percent-encoded in workspace and organization base URL paths.

    2.8.0release notes

  • Empty project, location or workspace IDs are refused instead of being written into a derived base URL.

    2.8.0release notes

  • Bedrock, Bedrock Mantle, and Vertex clients now read ANTHROPIC_CUSTOM_HEADERS.

    2.7.0release notes

  • copy, with_options, and with_middleware no longer raise when ANTHROPIC_FOUNDRY_RESOURCE is set.

    2.7.0release notes

  • API errors can now be unpickled and copied.

    2.7.0release notes

  • Bedrock Mantle clients serialize query lists as a[]=1&a[]=2, matching Anthropic's behavior.

    2.7.0release notes

  • Bedrock signs requests without a Connection header instead of raising KeyError.

    2.7.0release notes

  • Adds the missing count_tokens method to beta.messages.with_raw_response and beta.messages.with_streaming_response on Bedrock and Vertex.

    2.7.0release notes

  • Adds the missing parse method to beta.messages.with_raw_response and beta.messages.with_streaming_response on Bedrock and Vertex.

    2.7.0release notes

  • Parsing keeps const in structured output schemas and drops type beside const and enum.

    2.7.0release notes

  • Bedrock and Vertex clients send the X-Stainless-Async header and stream raw requests that name no stream class.

    2.7.0release notes

  • Bedrock copies made with copy preserve a custom http_client and aws_profile.

    2.6.0release notes

  • Bedrock copies made with with_options preserve a custom http_client and aws_profile.

    2.6.0release notes

  • Capitalizes CMEK in error details type names.

    2.5.0release notes

  • The memory tool no longer renames or deletes the /memories directory.

    2.5.0release notes

  • Bedrock raises ValueError for an empty model instead of sending a request to /model//invoke.

    2.5.0release notes

  • Makes OverloadedError a subclass of InternalServerError.

    2.5.0release notes

  • Percent-encodes the model, project ID and region in the Vertex request path.

    2.5.0release notes

  • Makes the first parse of each response model thread-safe.

    2.5.0release notes

  • Makes ServiceUnavailableError a subclass of InternalServerError.

    2.5.0release notes

  • Validates unions correctly across threads on pydantic v1.

    2.5.0release notes

  • Pydantic now validates params types that accept omit.

    2.4.0release notes

  • spend_limit is nullable in the spend limit increase request approve response.

    2.4.0release notes

  • The max_retries error message no longer suggests math.inf.

    2.2.0release notes

  • The tool runner preserves betas, user_profile_id, and workspace_id when set_messages_params() leaves them out.

    2.2.0release notes

  • The tool runner receives tools as definitions; it continues running function tools provided as definitions and stops running tools removed from the tools list.

    2.2.0release notes

  • The tool runner's set_messages_params() callback receives its tools as definitions again.

    2.2.0release notes

anthropic 1142 changes

Breaking changes 12

  • The google-cloud integration now uses the v1 endpoints.

    1.16.0release notes

  • Memory store archived_at is now required.

    1.10.0release notes

  • Memory store description is now required.

    1.10.0release notes

  • Memory store metadata is now required.

    1.10.0release notes

  • Bedrock eventstream exceptions and error frames now raise an API error.

    1.7.0release notes

  • Credential loading refuses config files writable by group or others.

    1.5.0release notesrelease notes

  • Beta user profiles use access_type in place of relationship.

    1.3.0release notes

  • Beta user profiles add external_user_onboarded_at.

    1.3.0release notes

  • Beta user profiles remove relationship in favor of access_type.

    1.3.0release notes

  • Dated beta header pins are dropped, so developers no longer need to pin those beta headers.

    1.2.0release notes

  • Webhook unwrap() requires headers to be passed.

    1.2.0release notes

  • The client upgrades to httpx2 and includes minor breaking changes; see MIGRATION.md for details.

    1.0.0release notes

Deprecations 4

  • Deprecates name on RBAC roles in favor of display_name.

    1.12.0release notes

  • Deprecates sonnet 4.5.

    1.11.0release notes

  • group_type is deprecated for rate limits.

    1.7.0release notes

  • The idempotency_key request option is retained as a deprecated no-op.

    1.5.0release notes

New APIs and options 70

  • Adds org webhook endpoints.

    1.17.0release notes

  • Adds owner-access error codes to the Admin API.

    1.17.0release notes

  • Adds user profile enforcement events.

    1.17.0release notes

  • Analytics report pages now include data_refreshed_at, allowing developers to access the data refresh time.

    1.16.0release notes

  • Analytics report pages now include has_more, allowing developers to check whether more results are available.

    1.16.0release notes

  • The google-cloud integration adds an organization endpoint.

    1.16.0release notes

  • The Admin API now supports workspace rate-limit updates.

    1.16.0release notes

  • Adds the speed parameter to Messages.

    1.15.0release notes

  • Returns a Console organization's usage-tier spend cap as a read-only spend limit.

    1.15.0release notes

  • Adds usage.speed to Messages.

    1.15.0release notes

  • Set ANTHROPIC_OPEN_TELEMETRY=false to disable native OpenTelemetry support.

    1.14.0release notes

  • Managed Agents agents now support execution_identity.

    1.14.0release notes

  • Pass open_telemetry=False to the client to disable native OpenTelemetry support.

    1.14.0release notes

  • An endpoint is available to test telemetry destinations.

    1.14.0release notes

  • The Admin API now supports telemetry destinations.

    1.14.0release notes

  • Multiagent configuration was added to Managed Agents.

    1.13.0release notes

  • Thread status filtering was added to Managed Agents.

    1.13.0release notes

  • Workflows were added to Managed Agents.

    1.13.0release notes

  • Types were added for Chat and Cowork unified analytics metrics.

    1.13.0release notes

  • Adds claude-haiku-5-5 as a model developers can use.

    1.12.0release notes

  • Adds typed computer and browser toolset tool calls.

    1.12.0release notes

  • Adds display_name to RBAC roles.

    1.12.0release notes

  • Adds line to model objects.

    1.12.0release notes

  • Adds the include_default parameter to list workspaces.

    1.12.0release notes

  • Adds web search and code execution support to model capabilities.

    1.12.0release notes

  • Adds disabled to thinking types in model capabilities.

    1.12.0release notes

  • Adds url_sources to the Managed Agents web_fetch tool configuration.

    1.12.0release notes

  • Adds lifecycle stage fields and a filter to the models endpoint.

    1.12.0release notes

  • Adds an endpoint to list spend limits.

    1.11.0release notes

  • The Admin API adds Claude Enterprise analytics.

    1.10.0release notes

  • Admin API analytics now provide per-user usage and cost reports.

    1.10.0release notes

  • The Admin API adds support for Plugins and Plugin Marketplaces.

    1.10.0release notes

  • The Admin API adds RBAC groups and roles.

    1.10.0release notes

  • Managed Agents session idle events can report a refusal stop reason.

    1.10.0release notes

  • The Admin API adds spend limits.

    1.10.0release notes

  • Managed Agents session idle events now include stop_details.

    1.10.0release notes

  • MCP tunnels expose a read-only transport object on Tunnel.

    1.10.0release notes

  • Adds between_tools to thinking types in model capabilities.

    1.9.0release notesrelease notes

  • Adds the claude-sonnet-5-5 model.

    1.9.0release notes

  • Adds include_inherited to workspace rate limits.

    1.9.0release notes

  • Adds typed event type values to the Managed Agents events list filter.

    1.9.0release notes

  • Adds source to workspace rate limits.

    1.9.0release notes

  • Optionally runs tool calls while the reply streams.

    1.9.0release notes

  • Adds support for the claude-opus-5-5 model.

    1.8.0release notes

  • Adds support for inline tool definitions.

    1.8.0release notes

  • Adds beta support for MCP tool-list pinning.

    1.8.0release notes

  • The tool runner adds compact_before_next_turn() to compact before the next turn.

    1.7.0release notes

  • Rate limits now include a group with display_name.

    1.7.0release notes

  • The client now supports asynchronous credential token providers.

    1.6.0release notes

  • A compaction parameter is available in beta.

    1.6.0release notes

  • Signed compaction blocks are available in beta.

    1.6.0release notes

  • input_transformations now supports thinking_mismatch_allowed entries in beta.

    1.6.0release notes

  • The web fetch tool now supports url_sources.

    1.6.0release notes

  • Enum types are now available for workspace data-residency geo fields.

    1.6.0release notes

  • User profiles methods now accept a workspace_id parameter.

    1.6.0release notes

  • Managed Agents now support auto mode tool permissions.

    1.5.0release notesrelease notes

  • Adds BetaMessage.to_param() for converting a BetaMessage to a parameter representation.

    1.5.0release notes

  • Adds content_too_large as a web_fetch tool error code.

    1.5.0release notes

  • Adds the CredentialsError exception.

    1.5.0release notes

  • Adds external_user_details to user profiles.

    1.5.0release notes

  • Adds the IdentityTokenFileError exception.

    1.5.0release notes

  • Adds Message.to_param() for converting a Message to a parameter representation.

    1.5.0release notes

  • Tool objects are accepted directly in messages.create, parse, stream, and count_tokens.

    1.5.0release notes

  • Adds a beta value for user profiles.

    1.5.0release notes

  • Named types are now available for organization compliance settings state.

    1.4.0release notes

  • Usage reports now include Claude Tag category and user breakdowns.

    1.4.0release notes

  • More endpoints now support sending a workspace ID.

    1.4.0release notes

  • Organization compliance settings are updated.

    1.3.0release notes

  • Adds support for Organization API endpoints, allowing developers to use those endpoints through the SDK.

    1.1.0release notes

  • Adds the updates thinking display mode (beta), giving developers another available thinking display mode.

    1.1.0release notes

Behavior and default changes 12

  • The client now yields server-sent events even when their event names are unrecognized.

    1.16.0release notes

  • User Profiles are now generally available.

    1.16.0release notes

  • 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.

    1.14.0release notes

  • Organization API endpoints are now generally available.

    1.10.0release notes

  • A plugin's org-wide installation setting can now be removed.

    1.10.0release notes

  • MCP tunnel creation responses now return the one-time relay token.

    1.10.0release notes

  • Makes cache diagnostics generally available on Message and MessageCreateParams.

    1.9.0release notes

  • Managed Agents sessions can mount public GitHub repositories without an authorization_token.

    1.5.0release notes

  • User-profile order_by is updated.

    1.3.0release notes

  • The toolset schema is updated.

    1.3.0release notes

  • The beta files namespace uses GA shapes.

    1.2.0release notes

  • The beta skills namespace uses GA shapes.

    1.2.0release notes

Fixes and other changes 44

  • Bedrock and Mantle clients now keep a workspace ID set in default_headers.

    1.17.0release notes

  • Google Cloud clients now keep workspace and user profile IDs set in default_headers.

    1.17.0release notes

  • Dropped streams close without waiting for the collector.

    1.14.0release notes

  • Unknown event types pass through the message stream helpers.

    1.14.0release notes

  • An event before message_start no longer raises "Unexpected event order".

    1.14.0release notes

  • Spend limit lists now include the organization_type_not_supported error.

    1.14.0release notes

  • Sends the beta header by default when listing spend limits.

    1.12.0release notes

  • Keeps a local edit made after a memory upload whose response was lost.

    1.12.0release notes

  • The client now sends empty strings in query parameters and multipart forms.

    1.12.0release notes

  • Admin plugin preference and marketplace fields are now typed as enums.

    1.10.0release notes

  • Auto-paging continues after an empty page when next_page is set.

    1.10.0release notes

  • The session tool runner stops after any idle that ends the turn.

    1.10.0release notes

  • Between_tools thinking degrades to disabled on fallback hops.

    1.9.0release notes

  • Accepts diagnostics in stream() and parse().

    1.9.0release notes

  • Unnamed file uploads no longer send a placeholder filename.

    1.9.0release notes

  • Changes made with add_tools take effect straight away.

    1.8.0release notes

  • Managed Agents events now share one evaluated_permission enum.

    1.8.0release notes

  • Avoids a Python 3.13 crash at exit when a stream is left open.

    1.8.0release notes

  • Reply-only parameters are no longer included in the tool runner's compaction request.

    1.8.0release notes

  • Multiple anthropic-beta values are joined with a comma and no space.

    1.7.0release notes

  • The tool runner's compact_before_next_turn() state and failure handling are tidied.

    1.7.0release notes

  • Response parsing now accepts X | Y union types.

    1.7.0release notes

  • Fields typed as X | Y no longer raise TypeError when response data is unknown.

    1.7.0release notes

  • The async client retries connection errors without blocking in the coroutine retry loop.

    1.6.0release notes

  • Message and delta event now use one input transformation type.

    1.6.0release notes

  • The client now honors Retry-After values above 60 seconds.

    1.6.0release notes

  • Invalid Retry-After values are ignored, and maxRetries is validated.

    1.6.0release notes

  • The client uses the default backoff when Retry-After is out of range.

    1.6.0release notes

  • The usage iteration model is now marked nullable, matching responses where it may be absent.

    1.6.0release notes

  • extra_body is merged before client hooks run.

    1.5.0release notes

  • parsed_output is excluded from dumped text blocks.

    1.5.0release notes

  • Streaming keeps partial tool input JSON off content blocks.

    1.5.0release notes

  • The custom-code merge in messages resources was repaired.

    1.4.0release notes

  • Passing an httpx object instead of an httpx2 object now raises a clear error.

    1.4.0release notes

  • Resolve base_url from aws_region when using skip_auth and with_options.

    1.3.0release notes

  • The memory-store schema is updated.

    1.3.0release notes

  • Derive a multipart filename for file tuples passed without one.

    1.3.0release notes

  • Add results to GA raw and streaming batch response wrappers.

    1.3.0release notes

  • AWS Bedrock signs raw request bytes so binary file uploads work.

    1.2.0release notes

  • The agent toolset and memory tool preserve exact file bytes without newline translation.

    1.2.0release notes

  • The event accumulator handles new event types in a forward-compatible way.

    1.2.0release notes

  • The read tool can return a view_range of a file even when the file exceeds the size cap.

    1.2.0release notes

  • The tool runner now keeps going on pause_turn.

    1.1.0release notes

  • The parse, stream, and tool_runner helpers no longer warn about output_format=.

    1.0.0release notes

anthropic 0.1252 changes

New APIs and options 2

  • Adds web search configuration for managed agents.

    0.125.0release notes

  • Adds support for memory in self-hosted sandboxes.

    0.125.0release notes

anthropic 0.1244 changes

New APIs and options 2

Behavior and default changes 2

anthropic 0.1238 changes

Breaking changes 1

  • Removes the unsupported mid_conv_system content block.

    0.123.0release notes

New APIs and options 2

  • Adds API support for files and memory stores.

    0.123.0release notes

  • Adds client helpers for accessing the workspace ID in response headers.

    0.123.0release notes

Fixes and other changes 5

  • Exports DeadlineExceededError from the package root.

    0.123.0release notes

  • Exports ServiceUnavailableError from the package root.

    0.123.0release notes

  • Runs synchronous session tools in a worker thread.

    0.123.0release notes

  • Updates the API for skills, files, and user profiles.

    0.123.0release notes

  • Retries tool-result sends for at least the lease TTL.

    0.123.0release notes

anthropic 0.12218 changes

Security 1

New APIs and options 4

  • Expose beta.messages.parse for Bedrock and Vertex clients.

    0.122.0release notes

  • Dream creation accepts output_behavior to create a new memory store or update the input store in place.

    0.122.0release notes

  • Expose stream for Bedrock clients.

    0.122.0release notes

  • Expose tool_runner for Bedrock and Vertex clients.

    0.122.0release notes

Fixes and other changes 13

  • Omitted content block fields remain unset in accumulated messages.

    0.122.0release notes

  • An empty ANTHROPIC_API_KEY is treated as unset.

    0.122.0release notes

  • An empty ANTHROPIC_AUTH_TOKEN is treated as unset.

    0.122.0release notes

  • Streaming emits input_json events for server tool use blocks.

    0.122.0release notes

  • Non-beta accumulator errors for malformed tool input JSON include context.

    0.122.0release notes

  • Accumulated streamed messages apply all message_delta fields.

    0.122.0release notes

  • Pydantic serializer warnings are silenced on message_stop events.

    0.122.0release notes

  • The request transform runs once in messages.stream().

    0.122.0release notes

  • Add models to the client.

    0.122.0release notes

  • Read contents from PathLike values passed inside a file tuple.

    0.122.0release notes

  • Async Bedrock clients run SigV4 signing off the event loop.

    0.122.0release notes

  • Special skill-archive members are skipped.

    0.122.0release notes

  • Keep token exchange bound per client when using copy().

    0.122.0release notes

anthropic 0.1216 changes

Breaking changes 1

New APIs and options 5

anthropic 0.1206 changes

New APIs and options 5

Fixes and other changes 1

anthropic 0.1192 changes

New APIs and options 1

  • Adds model_context_window_exceeded as a stop reason.

    0.119.0release notes

Fixes and other changes 1

  • Handles binary files in agent toolset read/edit.

    0.119.0release notes

anthropic 0.1183 changes

New APIs and options 3

anthropic 0.1174 changes

Security 1

  • Keeps credential material out of traceback frame locals via SecretStr.

    0.117.0release notes

New APIs and options 2

Fixes and other changes 1

  • Credentials are now handled correctly when using AnthropicAWS.copy().

    0.117.1release notes

anthropic 0.1161 changes

New APIs and options 1

  • Adds the agent-memory-2026-07-22 beta header.

    0.116.0release notes

anthropic 0.1156 changes

Breaking changes 1

  • Some nonfunctional types were removed from the SDKs, which may affect developers referencing them.

    0.115.1release notes

New APIs and options 5

  • Adds support for agent and deployment webhook events.

    0.115.0release notes

  • Adds support for agent overrides.

    0.115.0release notes

  • Adds support for Managed Agents event delta streaming.

    0.115.0release notes

  • Adds support for reverse pagination.

    0.115.0release notes

  • Adds support for vault credential injection scoping.

    0.115.0release notes

anthropic 0.1142 changes

New APIs and options 1

  • The API now supports claude-sonnet-5 as a model.

    0.114.0release notes

Fixes and other changes 1

  • The agent toolset allows absolute paths that resolve inside the workdir.

    0.114.0release notes

anthropic 0.1133 changes

New APIs and options 2

  • Accepts user profile IDs when counting tokens.

    0.113.0release notes

  • Adds API support for 20260318 web fetch and support tools.

    0.113.0release notes

Fixes and other changes 1

  • Fixes the async count_tokens output_format/output_config merge block.

    0.113.0release notes

anthropic 0.1124 changes

New APIs and options 3

  • The API now supports a new refusal category.

    0.112.0release notesrelease notes

  • The client supports system.message streaming events, allowing developers to handle these events in streams.

    0.112.0release notes

  • Requests can now send a User Profile ID in their headers.

    0.112.0release notes

Fixes and other changes 1

  • The memory tool now creates parent directories with the correct permissions.

    0.112.0release notes

anthropic 0.1111 changes

New APIs and options 1

  • Requests from refusal-fallback middleware are tagged with fallback-refusal-middleware.

    0.111.0release notes

anthropic 0.1102 changes

New APIs and options 1

  • Adds support for the code_execution_20260120 tool.

    0.110.0release notes

Fixes and other changes 1

anthropic 0.1094 changes

Breaking changes 1

  • Retired models were removed from the API and SDKs.

    0.109.2release notes

New APIs and options 3

  • Adds frontier_llm as a refusal category in the API.

    0.109.1release notes

  • The SDK adds support for credentials supplied through environment variables.

    0.109.0release notes

  • The SDK adds support for Managed Agents deployments.

    0.109.0release notes

anthropic 0.1083 changes

New APIs and options 3

  • Adds support for claude-fable-5, including server-side fallbacks on refusal.

    0.108.0release notes

  • Adds support for claude-mythos-5, including server-side fallbacks on refusal.

    0.108.0release notes

  • Adds client-side fallbacks middleware for API providers that do not support server-side fallbacks.

    0.108.0release notes

anthropic 0.1072 changes

Fixes and other changes 2

  • Foundry now sends the x-api-key header when using API-key authentication.

    0.107.1release notes

  • Managed Agents types received small updates, which may affect code that uses those types.

    0.107.0release notes

anthropic 0.1064 changes

Deprecations 1

Fixes and other changes 3

  • The Foundry client's copy() method now works.

    0.106.0release notes

  • Schema transformation now preserves $defs when the schema root is a $ref.

    0.106.0release notes

  • The Foundry client's with_options() method now works.

    0.106.0release notes

anthropic 0.1054 changes

New APIs and options 4

  • Adds support for the claude-opus-4-8 model.

    0.105.0release notes

  • Adds support for custom file size caps.

    0.105.0release notes

  • Adds support for system blocks in the middle of a conversation.

    0.105.0release notes

  • Adds support for usage.output_tokens_details.

    0.105.0release notes

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.

    0.104.0release notes

Fixes and other changes 1

  • Streaming now carries encrypted_content through the beta compaction accumulator.

    0.104.1release notes

anthropic 0.1032 changes

New APIs and options 1

  • Adds support for self-hosted sandboxes in CMA with sandbox helpers.

    0.103.0release notes

Fixes and other changes 1

  • SessionToolRunner now skips tool calls it does not own.

    0.103.1release notes

anthropic 0.1022 changes

New APIs and options 2

  • Adds BetaManagedAgentsSearchResultBlock types for working with managed agent search results.

    0.102.0release notes

  • Adds support for cache diagnostics beta.

    0.102.0release notes

anthropic 0.1012 changes

New APIs and options 1

  • Adds an AWS client for Claude Platform on AWS.

    0.101.0release notes

Fixes and other changes 1

  • Fixes a missing f-string prefix in the file type error message.

    0.101.0release notes

anthropic 0.1005 changes

New APIs and options 4

Fixes and other changes 1

anthropic 0.991 changes

New APIs and options 1

  • OIDC federation token exchange can target a workspace.

    0.99.0release notes

anthropic 0.988 changes

New APIs and options 4

Fixes and other changes 4

  • The async Vertex client now includes the us/eu multi-region base_url branches.

    0.98.0release notes

  • The Managed Agents APIs were improved.

    0.98.0release notes

  • Multipart file arrays now use the correct field name format.

    0.98.0release notes

  • Streaming now propagates stop_details from message_delta onto the accumulated Message.

    0.98.0release notes

anthropic 0.972 changes

Performance 1

  • File structure copying in multipart requests is optimized, improving request performance.

    0.97.0release notes

Behavior and default changes 1

anthropic 0.963 changes

New APIs and options 3

anthropic 0.952 changes

Deprecations 1

Behavior and default changes 1

  • The Bedrock Mantle client uses an auth header.

    0.95.0release notes

anthropic 0.943 changes

New APIs and options 1

Fixes and other changes 2

anthropic 0.931 changes

New APIs and options 1

anthropic 0.921 changes

New APIs and options 1

  • Adds support for Claude Managed Agents in the SDK.

    0.92.0release notes

anthropic 0.911 changes

New APIs and options 1

anthropic 0.901 changes

New APIs and options 1

  • Adds support for the claude-mythos-preview model.

    0.90.0release notes

anthropic 0.893 changes

Deprecations 1

  • Deprecates the client-side compaction helpers.

    0.89.0release notes

New APIs and options 1

  • Adds support for the US multi-region endpoint for Vertex.

    0.89.0release notes

Fixes and other changes 1

anthropic 0.882 changes

New APIs and options 2

  • Adds API key authentication for Bedrock.

    0.88.0release notes

  • Message responses now include structured stop_details.

    0.88.0release notes

anthropic 0.877 changes

Security 3

New APIs and options 2

  • Adds an error type field to APIStatusError so developers can inspect the API error type.

    0.87.0release notes

  • Implements indices array format for query and form serialization.

    0.87.0release notes

Fixes and other changes 2

  • The async transform path now honors __api_exclude__.

    0.87.0release notes

  • Schema transformation now supports enums.

    0.87.0release notes

anthropic 0.862 changes

New APIs and options 1

  • Support was added for filesystem memory tools.

    0.86.0release notes

Fixes and other changes 1

  • The SDK no longer passes by_alias to Pydantic unless it is set.

    0.86.0release notes

anthropic 0.854 changes

Behavior and default changes 1

Fixes and other changes 3

  • Async compaction now uses the filtered messages list.

    0.85.0release notes

  • The async status-error handling now includes cases for HTTP statuses 529 and 413.

    0.85.0release notesrelease notes

  • Programmatic tool calling now propagates container_id through the tool runner.

    0.85.0release notes

anthropic 0.842 changes

Breaking changes 1

  • Array formatting changes to brackets, affecting how arrays are serialized.

    0.84.0release notes

New APIs and options 1

  • Conversion helpers are available for MCP tools, prompts, and resources.

    0.84.0release notes

anthropic 0.831 changes

New APIs and options 1

  • Adds top-level cache control for automatic caching.

    0.83.0release notes

anthropic 0.823 changes

Fixes and other changes 3

  • Fixes the API's error code types.

    0.82.0release notes

  • Uses a shared UserLocation type in the API.

    0.82.0release notes

  • Adds backward-compatible aliases for removed nested UserLocation classes.

    0.82.0release notes

anthropic 0.811 changes

New APIs and options 1

  • New tool versions are available as top-level tool types.

    0.81.0release notes

anthropic 0.802 changes

Breaking changes 1

New APIs and options 1

  • Claude Sonnet 4.6 is now available for use through the API.

    0.80.0release notes

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.

    0.79.0release notes

Fixes and other changes 1

  • The synchronous beta count_tokens call now passes through the speed parameter.

    0.79.0release notes

anthropic 0.782 changes

New APIs and options 2

  • Adaptive thinking is released as an API feature.

    0.78.0release notes

  • Claude Opus 4.6 is released for use through the API.

    0.78.0release notes

anthropic 0.774 changes

Breaking changes 1

  • A class was removed, causing a breaking change; the notes do not identify which class.

    0.77.0release notes

New APIs and options 1

  • The client uses a custom JSON encoder to support extended types.

    0.77.0release notes

Fixes and other changes 2

  • The SDK now sends the structured output beta header when format is omitted.

    0.77.1release notes

  • The beta header is no longer included when output_format is missing.

    0.77.0release notes

anthropic 0.766 changes

New APIs and options 3

  • The client now supports binary request streaming.

    0.76.0release notes

  • messages.stream() now accepts a raw JSON schema.

    0.76.0release notes

  • The tool runner now supports server-side tools.

    0.76.0release notes

Fixes and other changes 3

  • Client authentication header validation is less restrictive.

    0.76.0release notes

  • Pyright can now infer TypedDict types within SequenceNotStr.

    0.76.0release notes

  • Streams are now always closed, helping ensure resources are released.

    0.76.0release notes

anthropic 0.755 changes

New APIs and options 5

anthropic 0.742 changes

New APIs and options 1

  • Adds Foundry SDK support for developers building with Anthropic.

    0.74.0release notes

Fixes and other changes 1

  • Structured outputs now use the correct beta header, so requests send the expected header.

    0.74.1release notes

anthropic 0.731 changes

New APIs and options 1

anthropic 0.725 changes

Breaking changes 1

New APIs and options 1

  • Adds the ability to clear thinking in context management.

    0.72.0release notes

Fixes and other changes 3

  • The signature was updated for Pydantic v1 compatibility.

    0.72.1release notes

  • Compatibility with Python 3.14 was fixed.

    0.72.1release notes

  • Streams can be closed without being fully consumed.

    0.72.1release notes

anthropic 0.713 changes

Deprecations 1

  • Older Sonnet models are now marked as deprecated.

    0.71.1release notes

New APIs and options 1

Fixes and other changes 1

  • Resolved non-functional default socket options in the client.

    0.71.1release notes

anthropic 0.702 changes

New APIs and options 2

  • The client adds the context-management-2025-06-27 beta header to requests.

    0.70.0release notes

  • The client adds the model-context-window-exceeded-2025-08-26 beta header to requests.

    0.70.0release notes