npm / @anthropic-ai/sdk
@anthropic-ai/sdk
What changed in @anthropic-ai/sdk 0.66 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
31 breaking9 security12 deprecations189 new APIs and options5 performance26 behavior and defaults1 tooling106 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@anthropic-ai/sdk 179 changes
Breaking changes 9
Batch requests no longer send message-batches-2024-09-24; if a default anthropic-beta header is set, these requests now send it.
grep skips rg executables resolving inside workdir or allowedRoots and uses the next PATH rg or built-in search; rg no longer receives ANTHROPIC_* process variables.
Skill extraction tools and helpers are selected only from PATH entries outside workdir and allowedRoots, except when no such entries exist; extraction failures reject with an AnthropicError.
The lenient parser now rejects characters and words that aren't JSON; invalid streamed tool input fails with an error.
Some error detail types are removed and descriptions are updated.
The client rejects path parameters like ";x", ".;x" and "..;x".
Analytics fields that are always sent are now required.
The unused project product field is dropped.
Adds support for API version 2026-10-21, a breaking change for developers using the SDK.
Security 2
On Windows, directory names are compared exactly when confining file paths.
Memory files are read only through the path that was validated.
Deprecations 3
Renames error data models and deprecates the old names.
The listed old beta header values are deprecated and should be deleted from requests; files-api-2025-04-14 and skills-2025-10-02 require following their migration guides before removal.
Older usage and cost reports are marked legacy.
New APIs and options 38
Adds beta support for the billing_policy request parameter.
Adds this error code to messages.
Adds webhook events for external key failure and recovery.
Adds error codes for linked billing refusals.
Adds this error code.
A new Update Bundle operation sets a Claude Tag Bundle's instructions, and Bundle responses now return instructions.
Claude Tag metrics are now included in analytics summaries and users reports.
Claude Tag Slack channel settings now 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 support parent organization filtering and grouping.
Adds the sandbox_egress_restricted error to Admin API write methods.
Organization webhook endpoints now accept user_profile.program_status_updated.
Adds user_profile.program_status_updated as a webhook event.
Error codes were added for External Key validation failures.
Support was added for signing organization members out everywhere.
An error code was added for ramp limit errors.
Adds apiMessage to APIError.
Adds details to APIError.
Adds errorCode to APIError.
Adds error details types and new error type values for API errors.
Adds client error classes for HTTP statuses and API error codes.
Adds an ids filter when listing workspaces.
GA methods are added for analytics.
A shared analytics order type is added.
A session error type is added for compaction limit reached errors.
An increase request actor type is added.
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.
External Keys and Workspaces gain a user_profile_id field.
Adds Claude Tag endpoints for Claude Enterprise organizations.
The API adds support for message threads.
The API adds usage and cost reports by dimension.
User profiles now include enforcement status, actions, and a filter.
Adds a workspace_id filter when listing spend limits.
Adds the usage_tier scope type for listing spend limits.
Performance 1
Streaming decodes server-sent events once per chunk.
Behavior and default changes 3
RBAC Role read endpoints now include source and error codes.
GA methods are added for RBAC.
GA methods are added for spend limits.
Tooling 1
Types are added for analytics group_by.
Fixes and other changes 22
On an errored scan, reason explains why there is no verdict and is not a security finding; code treating any reason as a concern should also check status.
Force-stops work for a terminated session immediately after retrieving it, before downloading skills or memory stores, and no longer throws SessionMemoryError for that session.
Keeps the session tool runner's maxIdleMs countdown running when a session thread terminates, including after a failed event-history read following reconnect.
The runner stops running tool calls for a terminated session thread, waiting for confirmations, or yielding calls; calls already started before it reads the termination event still finish and are yielded with posted: false if the API refuses the result.
The grep tool ignores ripgrep config files.
Extracted files receive mode 0644, or 0755 if any execute bit is set, inside 0700 directories; system tar must support the listed options.
File tool paths that pass through a dangling symlink are now fully resolved.
The built-in search stops reading a file at a NUL byte, avoiding an uncaught RangeError on large binary files.
When ripgrep is missing, the grep tool's search is bounded at 60 seconds; its regex runs off the main thread.
Symlinks pointing outside /memories are left out of listings.
The tools no longer search for rg, tar, or unzip in the current directory.
$schema is no longer included in the transformed schema description.
Structured output schemas now keep const.
Structured output schemas now keep enum.
Debug logs now include the body of a failed response.
Each error's name is now set to its class name.
The name of WorkloadIdentityError is now set.
The memory tool no longer renames or deletes the /memories directory.
spend_limit is nullable in the spend limit increase request approve response.
Links long-request error messages to the SDK documentation.
The tool runner copies the messages it was created with again.
The tool runner's behavior is restored after setMessagesParams() or pushMessages() is called in the loop body.
@anthropic-ai/sdk 0.1372 changes
New APIs and options 2
Adds org webhook endpoints.
Adds user profile enforcement events.
@anthropic-ai/sdk 0.1368 changes
Security 1
The client now treats x-amz-security-token as a sensitive header.
New APIs and options 3
The Admin API now supports workspace rate-limit updates.
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 determine whether more results are available.
Behavior and default changes 3
The client now yields server-sent events with unrecognized event names.
Tool helpers now accept every tool definition field.
User Profiles is now generally available.
Fixes and other changes 1
The memory tool now keeps $ sequences literal in str_replace.
@anthropic-ai/sdk 0.1355 changes
New APIs and options 3
Adds the speed parameter to Messages; some models require a beta header to use it.
Adds usage.speed to Messages.
Returns a Console organization's usage-tier spend cap as a read-only spend limit.
Fixes and other changes 2
Closes streams that are dropped without being read to the end.
Keeps an unread JSONL response open while it is held.
@anthropic-ai/sdk 0.13413 changes
Breaking changes 1
Token requests no longer follow redirects.
Security 1
The client now treats proxy-authorization as a sensitive header.
New APIs and options 5
Set ANTHROPIC_OPEN_TELEMETRY=false to disable OpenTelemetry tracing.
Managed Agents agents now support execution_identity.
Pass openTelemetry: false to the client to disable OpenTelemetry tracing.
A telemetry destination test endpoint is now available.
Telemetry destinations are now available through the Admin API.
Behavior and default changes 2
The SDK uses a registered global tracer provider to create spans and the global propagator to add trace context headers to requests.
Spend limit lists can now return the organization_type_not_supported error.
Fixes and other changes 4
MessageStream and BetaMessageStream no longer throw “Unexpected event order” when an event arrives before message_start.
MessageStream and BetaMessageStream now yield events that arrive before message_start when iterated.
MessageStream and BetaMessageStream now tolerate unknown event types.
The client now closes an unread stream dropped while tracing is enabled.
@anthropic-ai/sdk 0.1334 changes
New APIs and options 4
Types were added for Chat and Cowork unified analytics metrics.
Multiagent configuration was added to Managed Agents.
Thread status filtering was added to Managed Agents.
Workflows were added to Managed Agents.
@anthropic-ai/sdk 0.13216 changes
Breaking changes 2
The client throws before sending a request when a path parameter is empty.
Throws when a JSONL stream is iterated twice.
Deprecations 2
Deprecates name on RBAC roles in favor of display_name.
Marks the Text Completions API as deprecated.
New APIs and options 10
Adds claude-haiku-5-5 as a model.
Adds code execution support to model capabilities.
Adds typed computer and browser toolset tool calls.
Adds display_name to RBAC roles.
Adds line to model objects.
Adds lifecycle stage fields and a filter to /v1/models.
Adds disabled to the thinking types in model capabilities.
Adds url_sources to the Managed Agents web_fetch tool config.
Adds web search support to model capabilities.
Adds the include_default parameter to list workspaces.
Fixes and other changes 2
Keeps a local edit made after a memory upload when the response was lost.
The beta header is now sent by default when listing spend limits.
@anthropic-ai/sdk 0.1312 changes
Deprecations 1
Deprecates Sonnet 4.5.
New APIs and options 1
Adds an endpoint to list spend limits.
@anthropic-ai/sdk 0.13018 changes
Breaking changes 4
Admin plugin preference and marketplace fields are now typed as enums.
The memory store archived_at field is now required.
The memory store description field is now required.
The memory store metadata field is now required.
New APIs and options 8
Claude Enterprise analytics are now available through the Admin API.
Idle events can now include a refusal stop reason and stop_details.
A plugin's org-wide installation setting can now be removed.
Admin API analytics now include per-user usage and cost reports.
Plugins and Plugin Marketplaces are now available through the Admin API.
RBAC groups and roles are now available through the Admin API.
Spend limits are now available through the Admin API.
MCP tunnels beta adds a read-only transport object to Tunnel.
Behavior and default changes 3
MCP tunnel creation now returns the one-time relay token in the create response.
Managed Agents session errors now include repository error types.
Organization API endpoints are now generally available.
Fixes and other changes 3
Auto-paging continues past an empty page when next_page is set.
The session tool runner stops after any idle that ends the turn.
The tool runner now sends API fields only for runnable tools.
@anthropic-ai/sdk 0.12915 changes
Breaking changes 1
Removes client-side compaction control.
Deprecations 1
Deprecates the betas parameter on GA models and completions methods.
New APIs and options 7
Adds between_tools to the thinking types in model capabilities.
Adds claude-sonnet-5-5 as a known model ID.
Adds a union type for client-executed tools.
Adds typed event type values to the Managed Agents events list filter.
Optionally starts tool calls while the reply streams.
Adds include_inherited to workspace rate limits.
Adds source to workspace rate limits.
Performance 1
Takes each string token as one slice in the partial JSON tokenizer.
Behavior and default changes 1
Makes cache diagnostics generally available on Message and MessageCreateParams.
Fixes and other changes 4
Degrades between_tools thinking to disabled on fallback hops.
Shows every complete array item and holds back unfinished numbers in partial tool input.
Sends upload filenames as given, without a placeholder.
Client-level timeouts now also send the X-Stainless-Timeout header.
@anthropic-ai/sdk 0.1286 changes
New APIs and options 3
Adds support for claude-opus-5-5.
Adds support for inline tool definitions.
Adds beta support for MCP tool-list pinning.
Fixes and other changes 3
Changes made with addTools() take effect straight away.
Managed Agents events now share one evaluated_permission enum.
Reply-only parameters are no longer included in the tool runner's compaction request.
@anthropic-ai/sdk 0.12710 changes
Breaking changes 1
Pagination exports on the client namespace are type-only.
Deprecations 1
The rate limits group_type field is deprecated.
New APIs and options 2
The tool runner adds compactBeforeNextTurn() for compacting before the next turn.
Rate limits now include a group with a display_name.
Performance 1
Request details are not formatted when debug logging is off.
Fixes and other changes 5
Multiple anthropic-beta values are joined with a comma and no space.
A null compaction_delta content is no longer coerced into the string "null".
A streamed compaction summary is echoed in the fallback continuation.
Requests whose body is a stream or iterator are no longer retried.
The transformation keeps $defs when the root schema is a $ref.
@anthropic-ai/sdk 0.12614 changes
New APIs and options 5
Adds a compaction parameter and signed compaction blocks in beta.
Adds thinking_mismatch_allowed entries to beta input_transformations.
Adds url_sources to the web fetch tool.
Adds enum types for workspace data-residency geo fields.
Adds a workspace_id parameter to user profiles methods.
Performance 2
Sets sideEffects to false so bundlers can drop unused modules.
Marks classes as pure so bundlers can drop unused ones.
Fixes and other changes 7
The client stops waiting for a retry as soon as the request is aborted.
The async client retries connection errors, and the coroutine retry loop no longer blocks.
Uses one input transformation type for message and delta events.
The client now validates maxRetries.
The client ignores invalid Retry-After values and uses the default backoff when a value is out of range.
A declaration file no longer uses a type that requires TypeScript 5.7.
Marks the usage iteration model as nullable.
@anthropic-ai/sdk 0.1255 changes
New APIs and options 4
Managed Agents adds auto mode tool permissions.
Adds a web_fetch tool error code for content that is too large.
Adds external_user_details to user profiles.
Adds the user-profiles-2026-09-04 beta value for user profiles.
Behavior and default changes 1
Managed Agents sessions can mount public GitHub repositories without an authorization_token.
@anthropic-ai/sdk 0.1245 changes
Security 1
Agent-toolset files and directories are now created with owner-only permissions.
New APIs and options 3
Named types are available for organization compliance settings state.
Usage reports now include Claude Tag category and user breakdowns.
More endpoints support sending a workspace ID.
Fixes and other changes 1
Repairs custom-code merging in messages resources.
@anthropic-ai/sdk 0.1238 changes
Breaking changes 3
Beta user profiles use access_type in place of relationship.
Beta user profiles add the external_user_onboarded_at field.
Beta user profiles remove relationship in favor of access_type.
New APIs and options 1
Organization compliance settings are updated.
Behavior and default changes 2
The toolset schema is updated.
User-profile order_by is updated.
Fixes and other changes 2
Credential file access is kept out of non-Node bundles.
The memory-store schema is updated.
@anthropic-ai/sdk 0.1229 changes
Breaking changes 2
Dated beta header pins are dropped.
Webhook unwrap now requires headers to be passed.
Behavior and default changes 2
The files namespace uses GA shapes instead of beta shapes.
The skills namespace uses GA shapes instead of beta shapes.
Fixes and other changes 5
Skills endpoints now default a filename for bare Blob uploads.
Cross-realm DOMException abort and timeout errors are now classified correctly.
The sessions event accumulator now forwards new event types for forward compatibility.
SSE parse errors now use the configured logger.
The tools read operation can return a file view_range even when the file exceeds the size cap.
@anthropic-ai/sdk 0.1216 changes
New APIs and options 3
Adds the updates thinking display mode (beta).
Adds support for Organization API endpoints.
Helpers support Standard Schema for structured outputs and tools.
Fixes and other changes 3
Adds missing anthropic-beta values.
Published types no longer reference NodeJS.ProcessEnv.
Keeps the tool runner going when a turn is paused.
@anthropic-ai/sdk 0.1202 changes
New APIs and options 2
Adds web search configuration for managed agents.
Adds memory support for self hosted sandboxes.
@anthropic-ai/sdk 0.1194 changes
New APIs and options 2
Browser use toolsets are added.
Computer use toolsets are added.
Behavior and default changes 2
The Files API is now generally available.
The Skills API is now generally available.
@anthropic-ai/sdk 0.1185 changes
Breaking changes 1
The unsupported mid_conv_system content block is removed.
New APIs and options 2
The API adds functionality for files and memory stores.
Client helpers make it easier to access the workspace ID in response headers.
Fixes and other changes 2
The API is updated for skill, files, and user profiles.
The session runner retries tool-result sends for at least the lease TTL.
@anthropic-ai/sdk 0.1176 changes
New APIs and options 2
Models were added to the SDK.
Dream creation accepts output_behavior to create a new memory store or update the input store in place.
Fixes and other changes 4
The non-streaming long-request check now honors the timeout set for an individual request.
The tool runner now forwards the response container id to the next request.
Accumulating streamed messages now applies all message_delta fields.
Tool path resolution, skill-archive members, and heartbeat bounds were aligned with the other SDKs.
@anthropic-ai/sdk 0.1168 changes
Breaking changes 1
Retired Claude Opus 4.1 models are removed.
New APIs and options 6
Adds support for the advisor tool.
Bash timeout and abort errors can now be matched by class.
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.
Fixes and other changes 1
The client uses hardcoded User-Agent strings instead of constructor names.
@anthropic-ai/sdk 0.1155 changes
New APIs and options 4
Adds the claude-opus-5 model for use with the API.
Expands the client-side fallback credit token types.
Adds a default option for server-side fallbacks.
Adds tool addition/removal blocks and tool_change events to the API.
Fixes and other changes 1
Releases abort listeners when requests settle, preventing them from remaining attached after completion.
@anthropic-ai/sdk 0.1141 changes
New APIs and options 1
Adds model_context_window_exceeded as a new stop reason.
@anthropic-ai/sdk 0.1133 changes
New APIs and options 3
Adds support for initial session events.
Adds support for Managed Agents model effort.
Adds support for threads delta streaming.
@anthropic-ai/sdk 0.1122 changes
New APIs and options 1
Adds SDK support for MCP Tunnels.
Fixes and other changes 1
withOptions() now preserves AWS options and auth mode.
@anthropic-ai/sdk 0.1113 changes
Breaking changes 1
Session tool calls are gated on evaluated_permission.
New APIs and options 1
The API adds support for dreaming.
Behavior and default changes 1
Idle is bounded by the server stop_reason.
@anthropic-ai/sdk 0.1101 changes
New APIs and options 1
Adds the agent-memory-2026-07-22 beta header.
@anthropic-ai/sdk 0.1092 changes
Breaking changes 1
Some nonfunctional types were removed from the SDKs; code that references them may need updating.
New APIs and options 1
Adds support for streaming Managed Agents event deltas.
@anthropic-ai/sdk 0.1082 changes
New APIs and options 1
The API now supports claude-sonnet-5 as a model.
Fixes and other changes 1
Absolute paths that resolve inside the workdir are now allowed.
@anthropic-ai/sdk 0.1074 changes
Security 1
Bounds canonicalize symlink hops and resolves glob matches before the confinement check.
New APIs and options 2
Accepts user profile IDs when counting tokens.
Adds support for the 20260318 web fetch and support tools.
Fixes and other changes 1
Restores the dropped params field on BatchCreateParams.Request.
@anthropic-ai/sdk 0.1063 changes
New APIs and options 3
Adds support for a new refusal category.
The client supports system.message streaming events.
Requests can send a User Profile ID in request headers.
@anthropic-ai/sdk 0.1052 changes
New APIs and options 1
Adds support for the code_execution_20260120 tool.
Behavior and default changes 1
Partial tool JSON input is now parsed lazily in streams.
@anthropic-ai/sdk 0.1044 changes
Breaking changes 1
Retired models were removed from the API and SDKs.
New APIs and options 2
The SDK adds support for credentials supplied through environment variables.
The SDK adds support for Managed Agents deployments.
Fixes and other changes 1
Adds frontier_llm as a refusal category.
@anthropic-ai/sdk 0.1036 changes
New APIs and options 5
Adds support for the claude-fable-5 model.
Adds support for the claude-mythos-5 model.
Adds client-side fallbacks middleware for API providers that do not support server-side fallbacks.
Adds ctx.logger to middleware.
Adds support for server-side fallbacks when a refusal occurs.
Fixes and other changes 1
Fixes ordering of third-party middleware.
@anthropic-ai/sdk 0.1022 changes
Fixes and other changes 2
Managed Agents types received small updates.
Middleware now runs before request signing.
@anthropic-ai/sdk 0.1013 changes
New APIs and options 1
The client now supports middleware, allowing developers to add middleware to SDK requests.
Fixes and other changes 2
Request timeouts now apply only to the inner fetch, not the middleware chain.
Streaming now correctly parses JSON numbers written in scientific notation.
@anthropic-ai/sdk 0.1004 changes
New APIs and options 3
The API adds support for claude-opus-4-8, allowing developers to use this model.
The API adds support for mid-conversation system blocks.
The API adds usage.output_tokens_details to provide additional output-token usage details.
Fixes and other changes 1
Streaming now carries encrypted_content on beta compaction blocks.
@anthropic-ai/sdk 0.992 changes
New APIs and options 1
Custom file size caps are supported, allowing developers to set their own file size limits.
Fixes and other changes 1
Beta message_delta accumulation now carries stop_details through streaming responses.
@anthropic-ai/sdk 0.982 changes
New APIs and options 1
Adds support for estimated tokens in thinking block deltas when streaming.
Fixes and other changes 1
Uploads created with skills.versions.create now preserve the directory prefix.
@anthropic-ai/sdk 0.972 changes
New APIs and options 1
Adds support for self-hosted sandboxes in CMA with sandbox helpers.
Fixes and other changes 1
SessionToolRunner skips tool calls it does not own.
@anthropic-ai/sdk 0.963 changes
New APIs and options 2
Adds the BetaManagedAgentsSearchResultBlock types for working with managed agent search results.
Adds SDK support for the cache diagnostics beta.
Fixes and other changes 1
Ensures only zod/v4 types are used, avoiding types from other Zod versions.
@anthropic-ai/sdk 0.955 changes
Security 1
API-key headers are redacted in debug logs, reducing the risk of exposing credentials.
New APIs and options 3
Adds API support for Managed Agents multiagents and outcomes.
Adds support for vault validation.
Adds API support for webhooks.
Fixes and other changes 1
Adjusts webhook configuration.
@anthropic-ai/sdk 0.941 changes
New APIs and options 1
Allows targeting a workspace for OIDC federation token exchange.
@anthropic-ai/sdk 0.933 changes
New APIs and options 3
Adds auth profiles to the client.
Adds interactive OAuth support to the client.
Adds Workload Identity Federation support to the client.
@anthropic-ai/sdk 0.923 changes
Breaking changes 1
Bedrock error events delivered in chunk frames now throw APIError.
New APIs and options 1
Headers can now be set via environment variables.
Fixes and other changes 1
The Managed Agents APIs were improved; the notes do not specify the details of the changes.
@anthropic-ai/sdk 0.915 changes
Security 1
Memory files now use a restrictive file mode.
Behavior and default changes 2
CMA Memory is available in public beta.
The Bedrock Mantle client uses an auth header.
Fixes and other changes 2
Missing API features were restored.
Errors in the API spec were fixed.
@anthropic-ai/sdk 0.903 changes
New APIs and options 3
Adds claude-opus-4-7 to the API.
Adds token budgets to the API.
Adds user_profiles to the API.
@anthropic-ai/sdk 0.892 changes
Deprecations 1
Sonnet and Opus 4 are marked as deprecated.
Fixes and other changes 1
Missing streaming events have been added.
@anthropic-ai/sdk 0.881 changes
New APIs and options 1
The Vertex integration now supports an EU region.
@anthropic-ai/sdk 0.871 changes
New APIs and options 1
Adds a beta advisor tool to the API.
@anthropic-ai/sdk 0.861 changes
New APIs and options 1
The SDK adds support for Claude Managed Agents.
@anthropic-ai/sdk 0.851 changes
New APIs and options 1
Adds a Bedrock Mantle client for using the SDK with Bedrock Mantle.
@anthropic-ai/sdk 0.842 changes
New APIs and options 2
The SDK adds support for the claude-mythos-preview model.
The tool runner now supports AbortSignal.
@anthropic-ai/sdk 0.832 changes
Deprecations 1
Client-side compaction helpers are deprecated.
New APIs and options 1
The Vertex region setting supports the US multi-region endpoint.
@anthropic-ai/sdk 0.822 changes
New APIs and options 2
The Bedrock SDK now supports API keys.
Message responses now include structured stop_details, allowing developers to inspect stop information.
@anthropic-ai/sdk 0.812 changes
Security 1
Claude SDK for TypeScript: Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories
New APIs and options 1
Adds a type field to identify the kind of API error.
@anthropic-ai/sdk 0.793 changes
New APIs and options 1
The SDK adds support for filesystem memory tools.
Behavior and default changes 1
The thinking display setting reaches general availability.
Fixes and other changes 1
The SDK uses the Zod v4 import path for compatibility with Zod versions ^3.25.
@anthropic-ai/sdk 0.782 changes
New APIs and options 1
Adds top-level cache control for automatic caching.
Fixes and other changes 1
Eliminates a race condition in AWS credential resolution for Bedrock.
@anthropic-ai/sdk 0.772 changes
Fixes and other changes 2
Fixed the shared error code types.
Fixed the shared UserLocation type.
@anthropic-ai/sdk 0.761 changes
New APIs and options 1
New tool versions are available as top-level tool types.
@anthropic-ai/sdk 0.752 changes
New APIs and options 1
Releases claude-sonnet-4-6 for use with the SDK.
Fixes and other changes 1
Fixes form-urlencoded requests.
@anthropic-ai/sdk 0.741 changes
New APIs and options 1
Fast mode is enabled for claude-opus-4-6, allowing developers to use the mode with this model.
@anthropic-ai/sdk 0.734 changes
New APIs and options 2
The SDK releases adaptive thinking as a new feature.
The SDK releases Claude Opus 4.6, making it available to developers.
Fixes and other changes 2
Fixes abort signal listener handling to avoid memory leaks and removing the listener too early.
The client does not parse responses with an empty content-length.
@anthropic-ai/sdk 0.726 changes
Breaking changes 2
OutputFormat exports were removed from index.ts, so they are no longer available from the package index.
Send the message format in output_config rather than output_format.
New APIs and options 2
New helper functions are available for the MCP SDK.
The Messages API now supports Structured Outputs, allowing developers to use structured output formats.
Fixes and other changes 2
Corrects the API endpoint used by the MCP code tool.
MCP now returns the correct lines for TypeScript errors.
@anthropic-ai/sdk 0.719 changes
Deprecations 1
Accessing parsed now produces deprecation warnings.
New APIs and options 4
Adds support for Advance Tool Use Features.
Adds support for Autocompaction.
Adds support for Computer Use v5.
Adds support for Claude Opus 4.5, allowing SDK users to work with the new model.
Fixes and other changes 4
Errors in streams are now catchable, allowing developers to handle them.
Fixes the client logger property type.
Ensures parsed is not enumerable in structured outputs.
Corrects the naming used for parsed text blocks.
@anthropic-ai/sdk 0.702 changes
New APIs and options 1
Adds a Foundry SDK for developers to use.
Fixes and other changes 1
Uses the correct beta header for structured outputs.
@anthropic-ai/sdk 0.691 changes
New APIs and options 1
Adds support for structured outputs beta.
@anthropic-ai/sdk 0.681 changes
New APIs and options 1
Adds the ability to clear thinking in context management.
@anthropic-ai/sdk 0.672 changes
Deprecations 1
Older Sonnet models are marked as deprecated.
New APIs and options 1
Adds support for agent skills in the SDK.
@anthropic-ai/sdk 0.663 changes
Behavior and default changes 2
Adds the context-management-2025-06-27 beta header to the client.
Adds the model-context-window-exceeded-2025-08-26 beta header to the client.
Fixes and other changes 1
Fixes an unhandled promise error for streams in the tool runner.