anthropic breaking changes
Updated December 4, 2026
On this page
Latest version 2.17.0, released December 3, 2026. Source repository
Its 0.72.1 release drops Python 3.8. Python end of life dates.
- From 1.16.0 to 2.13.0: 1,455 breaking changes in 12 versions.
- From 0.19.0 to 2.13.0: 3,000 breaking changes in 116 versions.
anthropic 2.13.0 breaking changes
- Signature changed
anthropic.resources.beta.organization.compliance_settings.ComplianceSettings.retrieve
Was def retrieve(self, *, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) -> BetaComplianceSettings; now def... pypi.org - Signature changed
anthropic.resources.beta.organization.compliance_settings.ComplianceSettings.update
Was def update(self, *, state: BetaComplianceSettingsStateParam, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) ->... pypi.org - Signature changed
anthropic.resources.beta.organization.ComplianceSettings.retrieve
Was def retrieve(self, *, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) -> BetaComplianceSettings; now def... pypi.org - Signature changed
anthropic.resources.beta.organization.ComplianceSettings.update
Was def update(self, *, state: BetaComplianceSettingsStateParam, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) ->... pypi.org - Signature changed
anthropic.resources.beta.organization.Webhooks.create
Was def create(self, *, enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']], url: str... pypi.org - Signature changed
anthropic.resources.beta.organization.Webhooks.update
Was def update(self, webhook_endpoint_id: str, *, description: str | Omit = omit, enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened'... pypi.org - Signature changed
anthropic.resources.beta.organization.webhooks.Webhooks.create
Was def create(self, *, enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']], url: str... pypi.org - Signature changed
anthropic.resources.beta.organization.webhooks.Webhooks.update
Was def update(self, webhook_endpoint_id: str, *, description: str | Omit = omit, enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened'... pypi.org - Signature changed
anthropic.resources.beta.organization.Workspaces.archive
Was def archive(self, workspace_id: str, *, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) -> BetaWorkspace; now def... pypi.org - Signature changed
anthropic.resources.beta.organization.Workspaces.create
Was def create(self, *, name: str, data_residency: Optional[BetaDataResidencyCreateConfigParam] | Omit = omit, display_color: Optional[str] | Omit = omit, external_key_id: Optional[str] | Omit = omit, tags: Optional[Dict[str, str]] | Omit... pypi.org - Signature changed
anthropic.resources.beta.organization.Workspaces.list
Was def list(self, *, after_id: str | Omit = omit, before_id: str | Omit = omit, ids: SequenceNotStr[str] | Omit = omit, include_archived: bool | Omit = omit, include_default: bool | Omit = omit, limit: int | Omit = omit, extra_headers... pypi.org - Signature changed
anthropic.resources.beta.organization.Workspaces.retrieve
Was def retrieve(self, workspace_id: str, *, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) -> BetaWorkspace; now def... pypi.org - Signature changed
anthropic.resources.beta.organization.Workspaces.update
Was def update(self, workspace_id: str, *, data_residency: Optional[BetaDataResidencyUpdateConfigParam] | Omit = omit, display_color: str | Omit = omit, external_key_id: str | Omit = omit, name: str | Omit = omit, tags: Optional[Dict[str... pypi.org - Signature changed
anthropic.resources.beta.organization.workspaces.workspaces.Workspaces.archive
Was def archive(self, workspace_id: str, *, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) -> BetaWorkspace; now def... pypi.org - Signature changed
anthropic.resources.beta.organization.workspaces.workspaces.Workspaces.create
Was def create(self, *, name: str, data_residency: Optional[BetaDataResidencyCreateConfigParam] | Omit = omit, display_color: Optional[str] | Omit = omit, external_key_id: Optional[str] | Omit = omit, tags: Optional[Dict[str, str]] | Omit... pypi.org - Signature changed
anthropic.resources.beta.organization.workspaces.workspaces.Workspaces.list
Was def list(self, *, after_id: str | Omit = omit, before_id: str | Omit = omit, ids: SequenceNotStr[str] | Omit = omit, include_archived: bool | Omit = omit, include_default: bool | Omit = omit, limit: int | Omit = omit, extra_headers... pypi.org - Signature changed
anthropic.resources.beta.organization.workspaces.workspaces.Workspaces.retrieve
Was def retrieve(self, workspace_id: str, *, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx2.Timeout | None | NotGiven = not_given) -> BetaWorkspace; now def... pypi.org - Signature changed
anthropic.resources.beta.organization.workspaces.workspaces.Workspaces.update
Was def update(self, workspace_id: str, *, data_residency: Optional[BetaDataResidencyUpdateConfigParam] | Omit = omit, display_color: str | Omit = omit, external_key_id: str | Omit = omit, name: str | Omit = omit, tags: Optional[Dict[str... pypi.org - Signature changed
anthropic.types.bash_code_execution_tool_result_block.BashCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.BashCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.beta_advisor_tool_result_block.BetaAdvisorToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.beta_bash_code_execution_tool_result_block.BetaBashCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.beta_code_execution_tool_result_block.BetaCodeExecutionToolResultBlock.content
Was content: BetaCodeExecutionToolResultBlockContent; now content: Annotated[BetaCodeExecutionToolResultBlockContent, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.beta_text_editor_code_execution_tool_result_block.BetaTextEditorCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.beta_tool_search_tool_result_block.BetaToolSearchToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.beta_web_fetch_tool_result_block.BetaWebFetchToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.beta_web_search_tool_result_block.BetaWebSearchToolResultBlock.content
Was content: BetaWebSearchToolResultBlockContent; now content: Annotated[BetaWebSearchToolResultBlockContent, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.BetaAdvisorToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.BetaBashCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.BetaCodeExecutionToolResultBlock.content
Was content: BetaCodeExecutionToolResultBlockContent; now content: Annotated[BetaCodeExecutionToolResultBlockContent, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.BetaTextEditorCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.BetaToolSearchToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.BetaWebFetchToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.BetaWebSearchToolResultBlock.content
Was content: BetaWebSearchToolResultBlockContent; now content: Annotated[BetaWebSearchToolResultBlockContent, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.beta.organization.beta_new_organization_webhook_endpoint.BetaNewOrganizationWebhookEndpoint.enabled_events
Was enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]; now enabled_events... pypi.org - Signature changed
anthropic.types.beta.organization.beta_organization_webhook_endpoint.BetaOrganizationWebhookEndpoint.enabled_events
Was enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]; now enabled_events... pypi.org - Signature changed
anthropic.types.beta.organization.BetaNewOrganizationWebhookEndpoint.enabled_events
Was enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]; now enabled_events... pypi.org - Signature changed
anthropic.types.beta.organization.BetaOrganizationWebhookEndpoint.enabled_events
Was enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]; now enabled_events... pypi.org - Signature changed
anthropic.types.beta.organization.webhook_create_params.WebhookCreateParams.enabled_events
Was enabled_events: Required[List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]]; now enabled_events... pypi.org - Signature changed
anthropic.types.beta.organization.webhook_update_params.WebhookUpdateParams.enabled_events
Was enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]; now enabled_events... pypi.org - Signature changed
anthropic.types.beta.organization.WebhookCreateParams.enabled_events
Was enabled_events: Required[List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]]; now enabled_events... pypi.org - Signature changed
anthropic.types.beta.organization.WebhookUpdateParams.enabled_events
Was enabled_events: List[Literal['external_key.failed', 'external_key.recovered', 'user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved', 'user_profile.program_status_updated']]; now enabled_events... pypi.org - Signature changed
anthropic.types.code_execution_tool_result_block.CodeExecutionToolResultBlock.content
Was content: CodeExecutionToolResultBlockContent; now content: Annotated[CodeExecutionToolResultBlockContent, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.CodeExecutionToolResultBlock.content
Was content: CodeExecutionToolResultBlockContent; now content: Annotated[CodeExecutionToolResultBlockContent, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.text_editor_code_execution_tool_result_block.TextEditorCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.TextEditorCodeExecutionToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.tool_search_tool_result_block.ToolSearchToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.ToolSearchToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.web_fetch_tool_result_block.WebFetchToolResultBlock.content
Was content: Content; now content: Annotated[Content, UnionDiscriminator(type)]. pypi.org - Signature changed
anthropic.types.web_search_tool_result_block.WebSearchToolResultBlock.content
Was content: WebSearchToolResultBlockContent; now content: Annotated[WebSearchToolResultBlockContent, UnionDiscriminator(type)]. pypi.org
And 2 more in this version. Sign up to see every change
anthropic 2.12.0 breaking changes
- Behavior changed
AnthropicBedrock
The user profile ID is now sent in the body of Messages requests, and the anthropic-user-profile-id header is no longer sent. A user_profile_id already in the body takes priority over the header. github.com
anthropic 2.10.0 breaking changes
- Removed
anthropic.types.AuthenticationError.__str__
AuthenticationError.__str__ was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.Config
anthropic.types.AuthenticationError.Config was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.construct
AuthenticationError.construct was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.message
AuthenticationError.message was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.model_config
AuthenticationError.model_config was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.model_construct
AuthenticationError.model_construct was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.model_dump
AuthenticationError.model_dump was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.model_dump_json
AuthenticationError.model_dump_json was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.model_fields_set
AuthenticationError.model_fields_set was removed in anthropic 2.10.0 pypi.org - Removed
anthropic.types.AuthenticationError.model_rebuild
AuthenticationError.model_rebuild was removed in anthropic 2.10.0 pypi.org
And 1,251 more in this version. Sign up to see every change
anthropic 2.9.0 breaking changes
- Behavior changed
beta.messages.batches
Batch requests stop sending message-batches-2024-09-24. If your client sets a default anthropic-beta header, these requests now send it, and if you set the old value yourself, delete it. github.com
anthropic 2.8.0 breaking changes
- Behavior changed
A semicolon in the model is now sent as %3B in the Vertex request path instead of as a raw semicolon. github.com - Behavior changed
A semicolon in a Bedrock model ID is now sent as is, and model IDs whose part before the first semicolon is empty, "." or ".." are refused. Check any code that passes such model IDs. github.com - Behavior changed
The project, location and workspace ID are percent-encoded in workspace and organization base URL paths, so URLs built from them change. github.com
anthropic 2.7.0 breaking changes
- Removed
The release removes some error detail types and updates descriptions. Code that imports or type-checks against the removed error detail types must stop using them. github.com - Removed
anthropic.types.beta.beta_billing_frozen_error
anthropic.types.beta.beta_billing_frozen_error was removed in anthropic 2.7.0 pypi.org - Removed
anthropic.types.beta.beta_billing_frozen_error_details
anthropic.types.beta.beta_billing_frozen_error_details was removed in anthropic 2.7.0 pypi.org - Removed
anthropic.types.beta.BetaBillingFrozenError
anthropic.types.beta.BetaBillingFrozenError was removed in anthropic 2.7.0 pypi.org - Removed
anthropic.types.beta.BetaBillingFrozenErrorDetails
anthropic.types.beta.BetaBillingFrozenErrorDetails was removed in anthropic 2.7.0 pypi.org - Behavior changed
Lists in a query are now written as a[]=1&a[]=2 on the Bedrock Mantle clients. Code that depended on the previous encoding of list query parameters may see different requests. github.com - Behavior changed
Schemas passed for structured output now keep const and no longer include type beside const and enum. Code that inspects or compares the generated schema may see different output. github.com - Signature changed
anthropic.resources.beta.organization.analytics.Cost.list
Was def list(self, *, starting_at: Union[str, datetime], actor_ids: Optional[SequenceNotStr[str]] | Omit = omit, actor_types: Optional[List[BetaAnalyticsActorType]] | Omit = omit, agent_ids: Optional[SequenceNotStr[str]] | Omit = omit... pypi.org - Signature changed
anthropic.resources.beta.organization.analytics.Usage.list
Was def list(self, *, starting_at: Union[str, datetime], actor_ids: Optional[SequenceNotStr[str]] | Omit = omit, actor_types: Optional[List[BetaAnalyticsActorType]] | Omit = omit, agent_ids: Optional[SequenceNotStr[str]] | Omit = omit... pypi.org - Signature changed
anthropic.resources.beta.organization.Webhooks.create
Was def create(self, *, enabled_events: List[Literal['user_profile.enforcement_action_opened', 'user_profile.enforcement_action_resolved']], url: str, description: str | Omit = omit, name: str | Omit = omit, betas: List[AnthropicBetaParam]... pypi.org
And 5 more in this version. Sign up to see every change
Older versions
111 older versions, each with its first changes. Sign up to see every change
Show 111 older versions
anthropic 2.6.0 breaking changes
- Removed
anthropic.lib.foundry.is_given
anthropic.lib.foundry.is_given was removed in anthropic 2.6.0 pypi.org - Behavior changed
Sampling parameters are no longer recorded as attributes on OpenTelemetry spans. Code or dashboards that read those span attributes must be updated. github.com
And 1 more in this version.
anthropic 2.5.0 breaking changes
- Removed
anthropic.DeadlineExceededError.__init__
DeadlineExceededError() was removed in anthropic 2.5.0 pypi.org - Removed
anthropic.DeadlineExceededError.body
DeadlineExceededError.body was removed in anthropic 2.5.0 pypi.org
And 24 more in this version.
anthropic 2.4.0 breaking changes
- Removed
The unused project product field was dropped from analytics, and always-sent analytics fields are now required. Code that relies on the removed field or omits required fields must be updated. github.com - Removed
anthropic.types.beta.organization.beta_analytics_connector_activity.ChatCoworkUnifiedMetrics
anthropic.types.beta.organization.beta_analytics_connector_activity.ChatCoworkUnifiedMetrics was removed in anthropic 2.4.0 pypi.org
And 48 more in this version.
anthropic 2.2.0 breaking changes
- Signature changed
anthropic.lib.tools.BetaAsyncStreamingToolRunner.__init__
Was def __init__(self, *, params: ParseMessageCreateParamsBase[ResponseFormatT], options: RequestOptions, tools: Iterable[BetaAsyncRunnableTool | BetaAsyncRunnableToolset], client: AsyncAnthropic, max_iterations: int | None = None... pypi.org - Signature changed
anthropic.lib.tools.BetaAsyncStreamingToolRunner.add_tools
Was def add_tools(self, *tools: AnyFunctionToolT | BetaToolUnionParam) -> None; now def add_tools(self, *tools: RunnableToolT | BetaToolUnionParam) -> None. pypi.org
And 14 more in this version.
anthropic 2.1.0 breaking changes
- Signature changed
anthropic.resources.UserProfiles.list
Was def list(self, *, limit: int | Omit = omit, order: UserProfileListOrder | Omit = omit, order_by: UserProfileListOrderBy | Omit = omit, page: str | Omit = omit, workspace_id: str | Omit = omit, extra_headers: Headers | None = None... pypi.org
anthropic 2.0.0 breaking changes
- Removed
anthropic.types.beta.BetaMessageParam.clear_at
BetaMessageParam.clear_at was removed in anthropic 2.0.0 pypi.org - Removed
anthropic.types.beta.BetaMessageParam.content
BetaMessageParam.content was removed in anthropic 2.0.0 pypi.org
And 24 more in this version.
anthropic 1.16.0 breaking changes
- Behavior changed
Server-sent events with event names the SDK does not recognize are now yielded instead of being skipped. Code iterating streams must handle unknown event types. github.com - Behavior changed
The Google Cloud integration now calls the v1 endpoints. Users of that integration should confirm their setup works against the v1 endpoints. github.com
And 8 more in this version.
anthropic 1.15.0 breaking changes
- Signature changed
anthropic.resources.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[MessageParam], model: ModelParam, cache_control: Optional[CacheControlEphemeralParam] | Omit = omit, output_config: OutputConfigParam | Omit = omit, output_format: Optional[type] | Omit =... pypi.org - Signature changed
anthropic.resources.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, cache_control: Optional[CacheControlEphemeralParam] | Omit = omit, container: Optional[MessageCreateParamsContainerParam] | Omit = omit... pypi.org
And 2 more in this version.
anthropic 1.14.0 breaking changes
- Behavior changed
The client now creates spans with any global tracer provider and adds trace context headers to requests. To keep the old behavior, pass open_telemetry=False to the client or set ANTHROPIC_OPEN_TELEMETRY=false. github.com - Signature changed
anthropic.Anthropic.__init__
Was def __init__(self, *, api_key: str | None = None, auth_token: str | None = None, credentials: AccessTokenProvider | None = None, config: Mapping[str, Any] | None = None, profile: str | None = None, webhook_key: str | None = None... pypi.org
And 24 more in this version.
anthropic 1.13.0 breaking changes
- Removed
anthropic.types.beta.beta_managed_agents_multiagent.Agent
anthropic.types.beta.beta_managed_agents_multiagent.Agent was removed in anthropic 1.13.0 pypi.org - Removed
anthropic.types.beta.beta_managed_agents_multiagent.BetaManagedAgentsMultiagent.Config
anthropic.types.beta.beta_managed_agents_multiagent.BetaManagedAgentsMultiagent.Config was removed in anthropic 1.13.0 pypi.org
And 18 more in this version.
anthropic 1.12.0 breaking changes
- Behavior changed
The client now sends empty string values in query parameters and multipart forms instead of dropping them. Code that relied on empty values being omitted may see different requests. github.com - Signature changed
anthropic.lib.tools.BetaAsyncStreamingToolRunner.__init__
Was def __init__(self, *, params: ParseMessageCreateParamsBase[ResponseFormatT], options: RequestOptions, tools: Iterable[BetaAsyncRunnableTool], client: AsyncAnthropic, max_iterations: int | None = None, run_tools_eagerly: bool = False)... pypi.org
And 9 more in this version.
anthropic 1.10.0 breaking changes
- Behavior changed
Config files that group or others can write are now refused. Restrict the file permissions so only the owner can write them. github.com - Signature changed
Admin plugin preference and marketplace fields are typed as enums instead of free-form values. Code passing other values may need updating. github.com
And 2 more in this version.
anthropic 1.9.0 breaking changes
- Removed
anthropic.types.beta.beta_diagnostics.CacheMissReason
anthropic.types.beta.beta_diagnostics.CacheMissReason was removed in anthropic 1.9.0 pypi.org - Behavior changed
parse
The SDK stopped sending the beta header from parse and the tool runner. Code that relied on that header being sent with those calls may need to set it explicitly. github.com
And 10 more in this version.
anthropic 1.8.0 breaking changes
- Signature changed
anthropic.types.Base64ImageSourceParam.data
Was data: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format='base64')]]; now data: Required[Union[str, Base64FileInput]]. pypi.org - Signature changed
anthropic.types.Base64PDFSourceParam.data
Was data: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format='base64')]]; now data: Required[Union[str, Base64FileInput]]. pypi.org
And 39 more in this version.
anthropic 1.7.0 breaking changes
- Configuration changed
The package now requires pydantic 1.10 or later. Environments with an older pydantic must upgrade it before installing this release. github.com
anthropic 1.6.0 breaking changes
- Configuration changed
The SDK now requires anyio 4.1 or later. Projects that pin an older anyio must upgrade it before installing this version. github.com - Signature changed
anthropic.AsyncAnthropic.__init__
Was def __init__(self, *, api_key: str | None = None, auth_token: str | None = None, credentials: AccessTokenProvider | None = None, config: Mapping[str, Any] | None = None, profile: str | None = None, webhook_key: str | None = None... pypi.org
And 19 more in this version.
anthropic 1.5.0 breaking changes
- Behavior changed
The SDK now refuses to load credentials files that are accessible by group or others. Users with looser file permissions must restrict them to owner-only access. github.com - Signature changed
anthropic.resources.beta.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit = omit... pypi.org
And 6 more in this version.
anthropic 1.4.0 breaking changes
- Removed
anthropic.types.beta.organization.beta_compliance_settings.State
anthropic.types.beta.organization.beta_compliance_settings.State was removed in anthropic 1.4.0 pypi.org - Removed
anthropic.types.beta.organization.compliance_setting_update_params.State
anthropic.types.beta.organization.compliance_setting_update_params.State was removed in anthropic 1.4.0 pypi.org
And 141 more in this version.
anthropic 1.3.0 breaking changes
- Removed
anthropic.types.beta.BetaBrowserToolset20260801Param.allowed_callers
BetaBrowserToolset20260801Param.allowed_callers was removed in anthropic 1.3.0 pypi.org - Removed
anthropic.types.beta.BetaComputerToolset20260801Param.allowed_callers
BetaComputerToolset20260801Param.allowed_callers was removed in anthropic 1.3.0 pypi.org
And 91 more in this version.
anthropic 1.2.0 breaking changes
- Removed
anthropic.types.beta.BetaSkill.skill_id
BetaSkill.skill_id was removed in anthropic 1.2.0 pypi.org - Removed
anthropic.types.beta.BetaSkill.version
BetaSkill.version was removed in anthropic 1.2.0 pypi.org
And 58 more in this version.
anthropic 1.1.0 breaking changes
- Removed
The release removes the legacy response API, which code relying on it will need to stop using. The changelog labels this an internal change and names no replacement. github.com - Signature changed
anthropic.APIRequest.copy
Was def copy(self, *, method: str | NotGiven = not_given, url: str | NotGiven = not_given, headers: Headers | NotGiven = not_given, params: Query | NotGiven = not_given, body: Body | NotGiven = not_given, timeout: float | httpx.Timeout |... pypi.org
And 36 more in this version.
anthropic 1.0.0 breaking changes
- Removed
anthropic.AI_PROMPT
anthropic.AI_PROMPT was removed in anthropic 1.0.0 pypi.org - Removed
anthropic.Anthropic.AI_PROMPT
anthropic.Anthropic.AI_PROMPT was removed in anthropic 1.0.0 pypi.org
And 126 more in this version.
anthropic 0.125.0 breaking changes
- Removed
anthropic.types.beta.beta_managed_agents_agent_tool_config_params.PermissionPolicy
anthropic.types.beta.beta_managed_agents_agent_tool_config_params.PermissionPolicy was removed in anthropic 0.125.0 pypi.org - Removed
anthropic.types.beta.beta_managed_agents_agent_tool_config.BetaManagedAgentsAgentToolConfig.Config
anthropic.types.beta.beta_managed_agents_agent_tool_config.BetaManagedAgentsAgentToolConfig.Config was removed in anthropic 0.125.0 pypi.org
And 25 more in this version.
anthropic 0.124.0 breaking changes
- Removed
anthropic.types.beta.deleted_file
anthropic.types.beta.deleted_file was removed in anthropic 0.124.0 pypi.org - Removed
anthropic.types.beta.DeletedFile
anthropic.types.beta.DeletedFile was removed in anthropic 0.124.0 pypi.org
And 9 more in this version.
anthropic 0.123.0 breaking changes
- Removed
anthropic.types.beta.beta_mid_conversation_system_block_param
anthropic.types.beta.beta_mid_conversation_system_block_param was removed in anthropic 0.123.0 pypi.org - Removed
anthropic.types.beta.BetaMidConversationSystemBlockParam
anthropic.types.beta.BetaMidConversationSystemBlockParam was removed in anthropic 0.123.0 pypi.org
And 8 more in this version.
anthropic 0.122.0 breaking changes
- Removed
anthropic.lib.foundry.NOT_GIVEN
anthropic.lib.foundry.NOT_GIVEN was removed in anthropic 0.122.0 pypi.org - Signature changed
anthropic.lib.aws.AnthropicAWS.__init__
Was def __init__(self, *, api_key: str | None = None, aws_access_key: str | None = None, aws_secret_key: str | None = None, aws_region: str | None = None, aws_profile: str | None = None, aws_session_token: str | None = None, workspace_id... pypi.org
And 19 more in this version.
anthropic 0.121.0 breaking changes
- Removed
The retired Claude Opus 4.1 model identifiers were removed from the SDK, so code that references them may no longer work. github.com - Signature changed
anthropic.resources.beta.Deployments.create
Was def create(self, *, agent: deployment_create_params.Agent, environment_id: str, initial_events: Iterable[BetaManagedAgentsDeploymentInitialEventParams], name: str, description: Optional[str] | Omit = omit, metadata: Dict[str, str] |... pypi.org
And 7 more in this version.
anthropic 0.120.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, container: Optional[message_create_params.Container] | Omit = omit... pypi.org - Signature changed
anthropic.resources.beta.Messages.parse
Was def parse(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, container: Optional[message_create_params.Container] | Omit = omit... pypi.org
And 5 more in this version.
anthropic 0.119.0 breaking changes
- Signature changed
anthropic.lib.tools.agent_toolset.AgentToolContext.__init__
Was def __init__(self, workdir: str | os.PathLike[str] = os.getcwd(), unrestricted_paths: bool = False, client: AsyncAnthropic | None = None, session_id: str | None = None, env: Optional[Mapping[str, str]] = None, max_file_bytes: int |... pypi.org
anthropic 0.118.0 breaking changes
- Signature changed
anthropic.resources.beta.Agents.update
Was def update(self, agent_id: str, *, version: int, description: Optional[str] | Omit = omit, mcp_servers: Optional[Iterable[BetaManagedAgentsURLMCPServerParams]] | Omit = omit, metadata: Optional[Dict[str, Optional[str]]] | Omit = omit... pypi.org - Signature changed
anthropic.resources.beta.Sessions.create
Was def create(self, *, agent: session_create_params.Agent, environment_id: str, metadata: Dict[str, str] | Omit = omit, resources: Iterable[session_create_params.Resource] | Omit = omit, title: Optional[str] | Omit = omit, vault_ids... pypi.org
And 2 more in this version.
anthropic 0.117.1 breaking changes
- Signature changed
anthropic.lib.aws.AnthropicAWS.copy
Was def copy(self, *, api_key: str | None = None, aws_access_key: str | None = None, aws_secret_key: str | None = None, aws_region: str | None = None, aws_profile: str | None = None, aws_session_token: str | None = None, workspace_id: str... pypi.org - Signature changed
anthropic.types.beta.BetaFallbackRefusalTrigger.category
Was category: Optional[Literal['cyber', 'bio', 'frontier_llm', 'reasoning_extraction']]; now category: Optional[Literal['cyber', 'bio', 'frontier_llm', 'reasoning_extraction', 'general_harms']]. pypi.org
And 2 more in this version.
anthropic 0.117.0 breaking changes
- Behavior changed
Credentials are wrapped in SecretStr so they no longer appear in traceback frame locals. Code that reads these credential fields as plain strings may need to unwrap them. github.com - Signature changed
anthropic.lib.credentials.exchange_federation_assertion
Was def exchange_federation_assertion(*, assertion: str, federation_rule_id: str, organization_id: str, service_account_id: Optional[str] = None, workspace_id: Optional[str] = None, base_url: Optional[str] = None, http_client... pypi.org
And 1 more in this version.
anthropic 0.116.0 breaking changes
- Removed
anthropic.types.beta.memory_stores.MemoryListParams.order
MemoryListParams.order was removed in anthropic 0.116.0 pypi.org - Removed
anthropic.types.beta.memory_stores.MemoryListParams.order_by
MemoryListParams.order_by was removed in anthropic 0.116.0 pypi.org
And 1 more in this version.
anthropic 0.115.1 breaking changes
- Removed
Some type definitions that had no runtime effect were removed. Code that only used them for type annotations may need updating, but runtime behavior is unchanged. github.com - Removed
anthropic.types.beta.beta_webhook_environment_archived_event_data
anthropic.types.beta.beta_webhook_environment_archived_event_data was removed in anthropic 0.115.1 pypi.org
And 23 more in this version.
anthropic 0.115.0 breaking changes
- Signature changed
anthropic.resources.beta.sessions.Events.stream
Was def stream(self, session_id: str, *, betas: List[AnthropicBetaParam] | Omit = omit, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None |... pypi.org - Signature changed
anthropic.resources.beta.Sessions.list
The client.beta.sessions.list method now returns SyncBidirectionalPageCursor instead of SyncPageCursor. Code that relies on the old page type may need to be checked. pypi.org
anthropic 0.113.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit = omit... pypi.org - Signature changed
anthropic.resources.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[MessageParam], model: ModelParam, cache_control: Optional[CacheControlEphemeralParam] | Omit = omit, output_config: OutputConfigParam | Omit = omit, output_format: None |... pypi.org
anthropic 0.112.0 breaking changes
- Signature changed
anthropic.resources.beta.messages.Batches.create
Was def create(self, *, requests: Iterable[batch_create_params.Request], betas: List[AnthropicBetaParam] | Omit = omit, extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float... pypi.org - Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, container: Optional[message_create_params.Container] | Omit = omit... pypi.org
And 11 more in this version.
anthropic 0.110.0 breaking changes
- Signature changed
anthropic.beta_async_tool
Was def beta_async_tool(func: AsyncFunctionT | None = None, *, name: str | None = None, description: str | None = None, input_schema: InputSchema | type[BaseModel] | None = None, defer_loading: bool | None = None, cache_control... pypi.org - Signature changed
anthropic.beta_tool
Was def beta_tool(func: FunctionT | None = None, *, name: str | None = None, description: str | None = None, input_schema: InputSchema | type[BaseModel] | None = None, defer_loading: bool | None = None, cache_control... pypi.org
And 42 more in this version.
anthropic 0.109.1 breaking changes
- Signature changed
anthropic.types.beta.BetaRefusalStopDetails.category
Was category: Optional[Literal['cyber', 'bio', 'reasoning_extraction']]; now category: Optional[Literal['cyber', 'bio', 'frontier_llm', 'reasoning_extraction']]. pypi.org - Signature changed
anthropic.types.RefusalStopDetails.category
Was category: Optional[Literal['cyber', 'bio', 'reasoning_extraction']]; now category: Optional[Literal['cyber', 'bio', 'frontier_llm', 'reasoning_extraction']]. pypi.org
anthropic 0.109.0 breaking changes
- Signature changed
anthropic.resources.beta.Sessions.list
Was def list(self, *, agent_id: str | Omit = omit, agent_version: int | Omit = omit, created_at_gt: Union[str, datetime] | Omit = omit, created_at_gte: Union[str, datetime] | Omit = omit, created_at_lt: Union[str, datetime] | Omit = omit... pypi.org
anthropic 0.108.0 breaking changes
- Signature changed
anthropic.Anthropic.__init__
Was def __init__(self, *, api_key: str | None = None, auth_token: str | None = None, credentials: AccessTokenProvider | None = None, config: Mapping[str, Any] | None = None, profile: str | None = None, webhook_key: str | None = None... pypi.org - Signature changed
anthropic.Anthropic.copy
Was def copy(self, *, api_key: str | None = None, auth_token: str | None = None, credentials: AccessTokenProvider | None | NotGiven = not_given, config: Mapping[str, Any] | None = None, profile: str | None = None, webhook_key: str | None =... pypi.org
And 19 more in this version.
anthropic 0.107.0 breaking changes
- Signature changed
anthropic.types.beta.BetaAdvisorToolResultError.error_code
Was error_code: Literal['max_uses_exceeded', 'prompt_too_long', 'too_many_requests', 'overloaded', 'unavailable', 'execution_time_exceeded']; now error_code: Literal['max_uses_exceeded', 'prompt_too_long', 'too_many_requests'... pypi.org - Signature changed
anthropic.types.beta.BetaAdvisorToolResultErrorParam.error_code
Was error_code: Required[Literal['max_uses_exceeded', 'prompt_too_long', 'too_many_requests', 'overloaded', 'unavailable', 'execution_time_exceeded']]; now error_code: Required[Literal['max_uses_exceeded', 'prompt_too_long'... pypi.org
And 3 more in this version.
anthropic 0.106.0 breaking changes
- Signature changed
anthropic.lib.foundry.AnthropicFoundry.copy
Was def copy(self, *, api_key: str | None = None, azure_ad_token_provider: AzureADTokenProvider | None = None, auth_token: str | None = None, webhook_key: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | Timeout... pypi.org
anthropic 0.105.0 breaking changes
- Signature changed
anthropic.lib.environments.EnvironmentWorker.__init__
Was def __init__(self, client: AsyncAnthropic, *, environment_id: str | None = None, environment_key: str | None = None, tools: EnvironmentWorkerTools | None = None, workdir: str | os.PathLike[str] | None = None, unrestricted_paths: bool =... pypi.org - Signature changed
anthropic.lib.tools.agent_toolset.AgentToolContext.__init__
Was def __init__(self, workdir: str | os.PathLike[str] = os.getcwd(), unrestricted_paths: bool = False, client: AsyncAnthropic | None = None, session_id: str | None = None, env: Optional[Mapping[str, str]] = None) -> None; now def... pypi.org
And 4 more in this version.
anthropic 0.103.1 breaking changes
- Signature changed
anthropic.lib.environments.DispatchedToolCall.__init__
Was def __init__(self, event: DispatchedToolUseEvent, result: DispatchedToolResultParams, tool_use_id: str, name: str, is_error: bool, posted: bool = True) -> None; now def __init__(self, event: DispatchedToolUseEvent, result... pypi.org - Signature changed
anthropic.lib.environments.DispatchedToolCall.result
Was result: DispatchedToolResultParams; now result: DispatchedToolResultParams | None. pypi.org
anthropic 0.103.0 breaking changes
- Removed
anthropic.types.beta.sessions.beta_managed_agents_session_thread_agent
anthropic.types.beta.sessions.beta_managed_agents_session_thread_agent was removed in anthropic 0.103.0 pypi.org - Removed
anthropic.types.beta.sessions.BetaManagedAgentsSessionThreadAgent
anthropic.types.beta.sessions.BetaManagedAgentsSessionThreadAgent was removed in anthropic 0.103.0 pypi.org
And 7 more in this version.
anthropic 0.102.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, container: Optional[message_create_params.Container] | Omit = omit... pypi.org - Signature changed
anthropic.resources.beta.Messages.parse
Was def parse(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, container: Optional[message_create_params.Container] | Omit = omit... pypi.org
And 2 more in this version.
anthropic 0.100.0 breaking changes
- Signature changed
anthropic.Anthropic.__init__
Was def __init__(self, *, api_key: str | None = None, auth_token: str | None = None, credentials: AccessTokenProvider | None = None, config: Mapping[str, Any] | None = None, profile: str | None = None, base_url: str | httpx.URL | None =... pypi.org - Signature changed
anthropic.Anthropic.copy
Was def copy(self, *, api_key: str | None = None, auth_token: str | None = None, credentials: AccessTokenProvider | None | NotGiven = not_given, config: Mapping[str, Any] | None = None, profile: str | None = None, base_url: str | httpx.URL... pypi.org
And 11 more in this version.
anthropic 0.99.0 breaking changes
- Signature changed
anthropic.lib.credentials.exchange_federation_assertion
Was def exchange_federation_assertion(*, assertion: str, federation_rule_id: str, organization_id: str, service_account_id: Optional[str] = None, base_url: Optional[str] = None, http_client: Optional[httpx.Client] = None) -> AccessToken... pypi.org - Signature changed
anthropic.lib.credentials.WorkloadIdentityCredentials.__init__
Was def __init__(self, *, identity_token_provider: IdentityTokenProvider, federation_rule_id: str, organization_id: str, service_account_id: Optional[str] = None, scope: Optional[str] = None, http_client: Optional[httpx.Client] = None) ->... pypi.org
anthropic 0.98.0 breaking changes
- Signature changed
anthropic.Anthropic.__init__
Was def __init__(self, *, api_key: str | None = None, auth_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | Timeout | None | NotGiven = not_given, max_retries: int = DEFAULT_MAX_RETRIES, default_headers... pypi.org - Signature changed
anthropic.Anthropic.copy
Was def copy(self, *, api_key: str | None = None, auth_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | Timeout | None | NotGiven = not_given, http_client: httpx.Client | None = None, max_retries: int |... pypi.org
And 2 more in this version.
anthropic 0.96.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, container: Optional[message_create_params.Container] | Omit = omit... pypi.org - Signature changed
anthropic.resources.beta.Messages.parse
Was def parse(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, cache_control: Optional[BetaCacheControlEphemeralParam] | Omit = omit, container: Optional[message_create_params.Container] | Omit = omit... pypi.org
And 4 more in this version.
anthropic 0.93.0 breaking changes
- Signature changed
anthropic.types.beta.BetaServerToolUseBlock.name
Was name: Literal['web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution', 'tool_search_tool_regex', 'tool_search_tool_bm25']; now name: Literal['advisor', 'web_search', 'web_fetch'... pypi.org - Signature changed
anthropic.types.beta.BetaServerToolUseBlockParam.name
Was name: Required[Literal['web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution', 'tool_search_tool_regex', 'tool_search_tool_bm25']]; now name: Required[Literal['advisor', 'web_search'... pypi.org
anthropic 0.92.0 breaking changes
- Removed
anthropic.pagination.AsyncPageCursor.has_more
AsyncPageCursor.has_more was removed in anthropic 0.92.0 pypi.org - Removed
anthropic.pagination.SyncPageCursor.has_more
SyncPageCursor.has_more was removed in anthropic 0.92.0 pypi.org
And 1 more in this version.
anthropic 0.88.0 breaking changes
- Signature changed
anthropic.lib.bedrock.AnthropicBedrock.__init__
Was def __init__(self, aws_secret_key: str | None = None, aws_access_key: str | None = None, aws_region: str | None = None, aws_profile: str | None = None, aws_session_token: str | None = None, base_url: str | httpx.URL | None = None... pypi.org - Signature changed
anthropic.lib.bedrock.AnthropicBedrock.copy
Was def copy(self, *, aws_secret_key: str | None = None, aws_access_key: str | None = None, aws_region: str | None = None, aws_session_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | Timeout | None |... pypi.org
anthropic 0.84.0 breaking changes
- Behavior changed
The SDK's array_format setting was changed to brackets, so array values may be serialized differently than before. Check any code that depends on the old array encoding. github.com - Signature changed
anthropic.beta_async_tool
Was def beta_async_tool(func: AsyncFunctionT | None = None, *, name: str | None = None, description: str | None = None, input_schema: InputSchema | type[BaseModel] | None = None, defer_loading: bool | None = None) ->... pypi.org
And 4 more in this version.
anthropic 0.83.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[BetaMessageParam], model: ModelParam, context_management: Optional[BetaContextManagementConfigParam] | Omit = omit, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit =... pypi.org - Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[message_create_params.Container] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit =... pypi.org
And 6 more in this version.
anthropic 0.82.0 breaking changes
- Removed
anthropic.types.web_search_tool_20250305_param.UserLocation.city
UserLocation.city was removed in anthropic 0.82.0 pypi.org - Removed
anthropic.types.web_search_tool_20250305_param.UserLocation.country
UserLocation.country was removed in anthropic 0.82.0 pypi.org
And 9 more in this version.
anthropic 0.81.0 breaking changes
- Removed
anthropic.types.message_count_tokens_tool_param.CodeExecutionTool20260120
anthropic.types.message_count_tokens_tool_param.CodeExecutionTool20260120 was removed in anthropic 0.81.0 pypi.org - Removed
anthropic.types.message_count_tokens_tool_param.WebFetchTool20260209
anthropic.types.message_count_tokens_tool_param.WebFetchTool20260209 was removed in anthropic 0.81.0 pypi.org
And 46 more in this version.
anthropic 0.80.0 breaking changes
- Removed
anthropic.types.beta.beta_web_search_tool_20250305_param.UserLocation
anthropic.types.beta.beta_web_search_tool_20250305_param.UserLocation was removed in anthropic 0.80.0 pypi.org - Signature changed
anthropic.resources.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, inference_geo: Optional[str] | Omit = omit, metadata: MetadataParam | Omit = omit, output_config: OutputConfigParam | Omit = omit, service_tier... pypi.org
And 4 more in this version.
anthropic 0.79.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[BetaMessageParam], model: ModelParam, context_management: Optional[BetaContextManagementConfigParam] | Omit = omit, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit =... pypi.org - Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[message_create_params.Container] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit =... pypi.org
And 3 more in this version.
anthropic 0.78.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[message_create_params.Container] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit =... pypi.org - Signature changed
anthropic.resources.beta.Messages.parse
Was def parse(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[message_create_params.Container] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit =... pypi.org
And 5 more in this version.
anthropic 0.77.0 breaking changes
- Removed
anthropic.types.beta.messages.batch_create_params.RequestParamsOutputFormat
anthropic.types.beta.messages.batch_create_params.RequestParamsOutputFormat was removed in anthropic 0.77.0 pypi.org - Renamed
output_format
The Messages API request format for structured outputs is now sent in output_config rather than output_format. Code that passes output_format must switch to output_config. github.com
And 21 more in this version.
anthropic 0.76.0 breaking changes
- Signature changed
anthropic.Anthropic.delete
Was def delete(self, path: str, *, cast_to: Type[ResponseT], body: Body | None = None, options: RequestOptions = {}) -> ResponseT; now def delete(self, path: str, *, cast_to: Type[ResponseT], body: Body | None = None, content: BinaryTypes... pypi.org - Signature changed
anthropic.Anthropic.patch
Was def patch(self, path: str, *, cast_to: Type[ResponseT], body: Body | None = None, options: RequestOptions = {}) -> ResponseT; now def patch(self, path: str, *, cast_to: Type[ResponseT], body: Body | None = None, content: BinaryTypes |... pypi.org
And 4 more in this version.
anthropic 0.75.0 breaking changes
- Signature changed
anthropic.beta_async_tool
Was def beta_async_tool(func: AsyncFunctionT | None = None, *, name: str | None = None, description: str | None = None, input_schema: InputSchema | type[BaseModel] | None = None) -> BetaAsyncFunctionTool[AsyncFunctionT] |... pypi.org - Signature changed
anthropic.beta_tool
Was def beta_tool(func: FunctionT | None = None, *, name: str | None = None, description: str | None = None, input_schema: InputSchema | type[BaseModel] | None = None) -> BetaFunctionTool[FunctionT] | Callable[[FunctionT]... pypi.org
And 15 more in this version.
anthropic 0.73.0 breaking changes
- Removed
anthropic.lib.streaming.BetaContentBlockStopEvent.__str__
BetaContentBlockStopEvent.__str__ was removed in anthropic 0.73.0 pypi.org - Removed
anthropic.lib.streaming.BetaContentBlockStopEvent.Config
anthropic.lib.streaming.BetaContentBlockStopEvent.Config was removed in anthropic 0.73.0 pypi.org
And 87 more in this version.
anthropic 0.72.1 breaking changes
- Removed
The SDK no longer supports Python 3.8. Users on Python 3.8 must upgrade their Python version before installing this release. github.com - Signature changed
anthropic.BaseModel.model_dump
Was def model_dump(self, *, mode: Literal['json', 'python'] | str = 'python', include: IncEx | None = None, exclude: IncEx | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False... pypi.org
And 13 more in this version.
anthropic 0.72.0 breaking changes
- Signature changed
anthropic.types.beta.BetaContextManagementConfigParam.edits
Was edits: Iterable[BetaClearToolUses20250919EditParam]; now edits: Iterable[Edit]. pypi.org - Signature changed
anthropic.types.beta.BetaContextManagementResponse.applied_edits
Was applied_edits: List[BetaClearToolUses20250919EditResponse]; now applied_edits: List[AppliedEdit]. pypi.org
And 10 more in this version.
anthropic 0.71.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit = omit, mcp_servers... pypi.org - Signature changed
anthropic.resources.beta.Messages.stream
Was def stream(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | Omit = omit, context_management: Optional[BetaContextManagementConfigParam] | Omit = omit, mcp_servers... pypi.org
And 2 more in this version.
anthropic 0.69.0 breaking changes
- Signature changed
anthropic.lib.tools.BetaAsyncStreamingToolRunner.__init__
Was def __init__(self, *, params: MessageCreateParamsBase, options: RequestOptions, tools: Iterable[BetaAsyncFunctionTool[Any]], client: AsyncAnthropic, max_iterations: int | None = None) -> None; now def __init__(self, *, params... pypi.org - Signature changed
anthropic.lib.tools.BetaAsyncToolRunner.__init__
Was def __init__(self, *, params: MessageCreateParamsBase, options: RequestOptions, tools: Iterable[BetaAsyncFunctionTool[Any]], client: AsyncAnthropic, max_iterations: int | None = None) -> None; now def __init__(self, *, params... pypi.org
And 6 more in this version.
anthropic 0.68.1 breaking changes
- Signature changed
anthropic.Anthropic.__init__
Was def __init__(self, *, api_key: str | None = None, auth_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, max_retries: int = DEFAULT_MAX_RETRIES... pypi.org - Signature changed
anthropic.Anthropic.copy
Was def copy(self, *, api_key: str | None = None, auth_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | Timeout | None | NotGiven = NOT_GIVEN, http_client: httpx.Client | None = None, max_retries: int |... pypi.org
And 29 more in this version.
anthropic 0.68.0 breaking changes
- Signature changed
anthropic.BaseModel.model_dump
Was def model_dump(self, *, mode: Literal['json', 'python'] | str = 'python', include: IncEx | None = None, exclude: IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none... pypi.org - Signature changed
anthropic.BaseModel.model_dump_json
Was def model_dump_json(self, *, indent: int | None = None, include: IncEx | None = None, exclude: IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False... pypi.org
And 4 more in this version.
anthropic 0.67.0 breaking changes
- Signature changed
anthropic.types.beta.BetaRequestDocumentBlockParam.citations
Was citations: BetaCitationsConfigParam; now citations: Optional[BetaCitationsConfigParam]. pypi.org - Signature changed
anthropic.types.beta.BetaServerToolUseBlock.name
Was name: Literal['web_search', 'code_execution', 'bash_code_execution', 'text_editor_code_execution']; now name: Literal['web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution']. pypi.org
And 2 more in this version.
anthropic 0.65.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven = NOT_GIVEN, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven = NOT_GIVEN... pypi.org - Signature changed
anthropic.resources.beta.Messages.stream
Was def stream(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven = NOT_GIVEN, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven = NOT_GIVEN... pypi.org
And 12 more in this version.
anthropic 0.62.0 breaking changes
- Signature changed
anthropic.types.MessageParam.content
Was content: Required[Union[str, Iterable[Union[TextBlockParam, ImageBlockParam, DocumentBlockParam, ThinkingBlockParam, RedactedThinkingBlockParam, ToolUseBlockParam, ToolResultBlockParam, ServerToolUseBlockParam... pypi.org
anthropic 0.61.0 breaking changes
- Removed
anthropic.types.message_count_tokens_tool_param.TextEditor20250429
anthropic.types.message_count_tokens_tool_param.TextEditor20250429 was removed in anthropic 0.61.0 pypi.org - Removed
anthropic.types.tool_union_param.TextEditor20250429
anthropic.types.tool_union_param.TextEditor20250429 was removed in anthropic 0.61.0 pypi.org
anthropic 0.59.0 breaking changes
- Removed
Older deprecated model versions were removed in this release. Code that still requests those models must switch to a current model. github.com
anthropic 0.58.0 breaking changes
- Behavior changed
The client no longer sends a Content-Type header on GET requests; code relying on that header on GET requests may need review. github.com
anthropic 0.57.1 breaking changes
- Removed
anthropic.types.beta.beta_search_result_location_citation
anthropic.types.beta.beta_search_result_location_citation was removed in anthropic 0.57.1 pypi.org - Removed
anthropic.types.beta.beta_search_result_location_citation_param
anthropic.types.beta.beta_search_result_location_citation_param was removed in anthropic 0.57.1 pypi.org
And 2 more in this version.
anthropic 0.53.0 breaking changes
- Removed
anthropic.types.beta.beta_base64_pdf_block_param.Source
anthropic.types.beta.beta_base64_pdf_block_param.Source was removed in anthropic 0.53.0 pypi.org - Removed
anthropic.types.beta.BetaBase64PDFBlockParam.cache_control
BetaBase64PDFBlockParam.cache_control was removed in anthropic 0.53.0 pypi.org
And 6 more in this version.
anthropic 0.52.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[BetaMessageParam], model: ModelParam, system: Union[str, Iterable[BetaTextBlockParam]] | NotGiven = NOT_GIVEN, thinking: BetaThinkingConfigParam | NotGiven = NOT_GIVEN, tool_choice... pypi.org - Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, metadata: BetaMetadataParam | NotGiven = NOT_GIVEN, stop_sequences: List[str] | NotGiven = NOT_GIVEN, stream: Literal[False] | Literal[True]... pypi.org
And 7 more in this version.
anthropic 0.51.0 breaking changes
- Signature changed
anthropic.Anthropic.beta
Was beta: beta.Beta; now def beta(self) -> Beta. pypi.org - Signature changed
anthropic.Anthropic.completions
Was completions: completions.Completions; now def completions(self) -> Completions. pypi.org
And 10 more in this version.
anthropic 0.50.0 breaking changes
- Removed
anthropic.types.beta.beta_raw_content_block_delta_event.Delta
anthropic.types.beta.beta_raw_content_block_delta_event.Delta was removed in anthropic 0.50.0 pypi.org - Removed
anthropic.types.raw_content_block_delta_event.Delta
anthropic.types.raw_content_block_delta_event.Delta was removed in anthropic 0.50.0 pypi.org
And 9 more in this version.
anthropic 0.48.0 breaking changes
- Removed
anthropic.types.image_block_param.Source.data
Source.data was removed in anthropic 0.48.0 pypi.org - Removed
anthropic.types.image_block_param.Source.media_type
Source.media_type was removed in anthropic 0.48.0 pypi.org
And 3 more in this version.
anthropic 0.47.2 breaking changes
- Signature changed
anthropic.resources.beta.Messages.stream
Was def stream(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, metadata: BetaMetadataParam | NotGiven = NOT_GIVEN, stop_sequences: List[str] | NotGiven = NOT_GIVEN, system: Union[str... pypi.org
anthropic 0.47.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.count_tokens
Was def count_tokens(self, *, messages: Iterable[BetaMessageParam], model: ModelParam, system: Union[str, Iterable[BetaTextBlockParam]] | NotGiven = NOT_GIVEN, tool_choice: BetaToolChoiceParam | NotGiven = NOT_GIVEN, tools... pypi.org - Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, metadata: BetaMetadataParam | NotGiven = NOT_GIVEN, stop_sequences: List[str] | NotGiven = NOT_GIVEN, stream: Literal[False] | Literal[True]... pypi.org
And 6 more in this version.
anthropic 0.45.0 breaking changes
- Removed
anthropic.resources.messages.BatchesWithRawResponse.results
BatchesWithRawResponse.results was removed in anthropic 0.45.0 pypi.org - Removed
anthropic.resources.messages.BatchesWithStreamingResponse.results
BatchesWithStreamingResponse.results was removed in anthropic 0.45.0 pypi.org
And 3 more in this version.
anthropic 0.43.1 breaking changes
- Signature changed
client.beta.messages.batches.results
client.beta.messages.batches.results no longer returns a BinaryAPIResponse; it now returns a JSONLDecoder of MessageBatchIndividualResponse. Code that reads the raw binary response must be updated to iterate the decoded results. github.com - Signature changed
client.messages.batches.results
client.messages.batches.results no longer returns a BinaryAPIResponse; it now returns a JSONLDecoder of MessageBatchIndividualResponse. Code that reads the raw binary response must be updated to iterate the decoded results. github.com
anthropic 0.43.0 breaking changes
- Removed
The deprecated HTTP client options for the Vertex integration were removed. Code that passes them to the Vertex client must stop using them. github.com - Signature changed
anthropic.BaseModel.construct
Was @classmethod def construct(cls: Type[ModelT], _fields_set: set[str] | None = None, **values: object) -> ModelT; now @classmethod def construct(__cls: Type[ModelT], _fields_set: set[str] | None = None, **values: object) -> ModelT. pypi.org
And 5 more in this version.
anthropic 0.41.0 breaking changes
- Removed
The SDK no longer accepts the HTTP client options it had deprecated. Code that passes them must stop using them. github.com - Removed
anthropic.lib.streaming.AsyncPromptCachingBetaMessageStream
anthropic.lib.streaming.AsyncPromptCachingBetaMessageStream was removed in anthropic 0.41.0 pypi.org
And 22 more in this version.
anthropic 0.40.0 breaking changes
- Removed
The anthropic-instant-1.2 model name is removed from the SDK's type definitions, so code that passes it may fail type checks. Switch to a supported model. github.com
anthropic 0.39.0 breaking changes
- Removed
The SDK no longer supports Python 3.7; users on that runtime must upgrade Python. github.com - Removed
anthropic.Anthropic.count_tokens
The legacy client.count_tokens() method was removed in this breaking release; code calling it must switch to the token counting endpoint instead. pypi.org
And 1 more in this version.
anthropic 0.38.0 breaking changes
- Signature changed
anthropic.BaseModel.model_dump
Was def model_dump(self, *, mode: Literal['json', 'python'] | str = 'python', include: IncEx = None, exclude: IncEx = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False... pypi.org - Signature changed
anthropic.BaseModel.model_dump_json
Was def model_dump_json(self, *, indent: int | None = None, include: IncEx = None, exclude: IncEx = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip: bool =... pypi.org
And 4 more in this version.
anthropic 0.37.0 breaking changes
- Signature changed
anthropic.resources.beta.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, metadata: BetaMetadataParam | NotGiven = NOT_GIVEN, stop_sequences: List[str] | NotGiven = NOT_GIVEN, stream: Literal[False] | Literal[True]... pypi.org - Signature changed
anthropic.types.beta.message_create_params.MessageCreateParamsBase.tools
Was tools: Iterable[BetaToolParam]; now tools: Iterable[BetaToolUnionParam]. pypi.org
anthropic 0.36.2 breaking changes
- Removed
anthropic.types.beta.message_create_params.MessageCreateParamsBase.betas
The betas TypedDict property for the Batch API was removed because it was misleading; it was a type-level property only. Code that referenced it for typing may need updating. pypi.org
anthropic 0.36.1 breaking changes
- Behavior changed
beta
The betas parameter is merged with the default betas value instead of replacing it. Code relying on the old replacement behavior should check its betas values. github.com
anthropic 0.36.0 breaking changes
- Removed
anthropic.types.completion_create_params.Metadata.user_id
Metadata.user_id was removed in anthropic 0.36.0 pypi.org - Removed
anthropic.types.message_create_params.ToolChoiceToolChoiceAny.disable_parallel_tool_use
ToolChoiceToolChoiceAny.disable_parallel_tool_use was removed in anthropic 0.36.0 pypi.org
And 22 more in this version.
anthropic 0.35.0 breaking changes
- Signature changed
anthropic.lib.bedrock.AnthropicBedrock.__init__
Was def __init__(self, aws_secret_key: str | None = None, aws_access_key: str | None = None, aws_region: str | None = None, aws_session_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | httpx.Timeout |... pypi.org
anthropic 0.32.0 breaking changes
- Removed
anthropic.types.input_json_delta.InputJsonDelta.__str__
InputJsonDelta.__str__ was removed in anthropic 0.32.0 pypi.org - Removed
anthropic.types.input_json_delta.InputJsonDelta.Config
anthropic.types.input_json_delta.InputJsonDelta.Config was removed in anthropic 0.32.0 pypi.org
And 20 more in this version.
anthropic 0.31.0 breaking changes
- Signature changed
anthropic.lib.vertex.AnthropicVertex.__init__
Was def __init__(self, *, region: str | NotGiven = NOT_GIVEN, project_id: str | NotGiven = NOT_GIVEN, access_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN... pypi.org
anthropic 0.30.0 breaking changes
- Signature changed
anthropic.lib.vertex.AnthropicVertex.__init__
Was def __init__(self, *, region: str | NotGiven = NOT_GIVEN, project_id: str | NotGiven = NOT_GIVEN, access_token: str | None = None, base_url: str | httpx.URL | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN... pypi.org
anthropic 0.29.2 breaking changes
- Signature changed
anthropic.types.ToolResultBlockParam.content
Was content: Iterable[Content]; now content: Union[str, Iterable[Content]]. pypi.org
anthropic 0.29.0 breaking changes
- Signature changed
anthropic.resources.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Union[str, Literal['claude-3-opus-20240229', 'claude-3-sonnet-20240229', 'claude-3-haiku-20240307', 'claude-2.1', 'claude-2.0', 'claude-instant-1.2']]... pypi.org - Signature changed
anthropic.resources.Messages.stream
Was def stream(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Union[str, Literal['claude-3-opus-20240229', 'claude-3-sonnet-20240229', 'claude-3-haiku-20240307', 'claude-2.1', 'claude-2.0', 'claude-instant-1.2']]... pypi.org
And 2 more in this version.
anthropic 0.28.0 breaking changes
- Removed
anthropic.lib.streaming.AsyncMessageStream.on_final_text
AsyncMessageStream.on_final_text was removed in anthropic 0.28.0 pypi.org - Removed
anthropic.lib.streaming.AsyncMessageStreamT
anthropic.lib.streaming.AsyncMessageStreamT was removed in anthropic 0.28.0 pypi.org
And 16 more in this version.
anthropic 0.27.0 breaking changes
- Removed
anthropic.Anthropic.beta
client.beta was removed in anthropic 0.27.0 pypi.org - Removed
anthropic.lib.streaming.beta
anthropic.lib.streaming.beta was removed in anthropic 0.27.0 pypi.org
And 115 more in this version.
anthropic 0.26.0 breaking changes
- Signature changed
anthropic.resources.beta.tools.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[ToolsBetaMessageParam], model: str, metadata: message_create_params.Metadata | NotGiven = NOT_GIVEN, stop_sequences: List[str] | NotGiven = NOT_GIVEN, stream: Literal[False] |... pypi.org - Signature changed
anthropic.types.beta.tools.ToolResultBlockParam.content
Was content: Iterable[TextBlockParam]; now content: Iterable[Content]. pypi.org
anthropic 0.25.9 breaking changes
- Removed
anthropic.types.beta.tools.tool_param.InputSchema.properties
InputSchema.properties was removed in anthropic 0.25.9 pypi.org - Removed
anthropic.types.beta.tools.tool_param.InputSchema.type
InputSchema.type was removed in anthropic 0.25.9 pypi.org
And 3 more in this version.
anthropic 0.22.1 breaking changes
- Removed
anthropic.types.content_block.ContentBlock.Config
anthropic.types.content_block.ContentBlock.Config was removed in anthropic 0.22.1 pypi.org - Removed
anthropic.types.ContentBlock.__str__
ContentBlock.__str__ was removed in anthropic 0.22.1 pypi.org
And 15 more in this version.
anthropic 0.22.0 breaking changes
- Behavior changed
max_retries
The client now validates that max_retries is not None, so passing None will raise an error. Pass an integer instead. github.com - Default changed
The default HTTP max_connections is now 1000 and max_keepalive_connections is now 100. Code that depends on the previous connection limits should set them explicitly. github.com
anthropic 0.21.3 breaking changes
- Signature changed
anthropic.resources.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Union[str, Literal['claude-3-opus-20240229', 'claude-3-sonnet-20240229', 'claude-3-haiku-20240307', "claude-2.1'", 'claude-2.0', 'claude-instant-1.2']]... pypi.org - Signature changed
anthropic.resources.Messages.stream
Was def stream(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Union[str, Literal['claude-3-opus-20240229', 'claude-3-sonnet-20240229', 'claude-3-haiku-20240307', "claude-2.1'", 'claude-2.0', 'claude-instant-1.2']]... pypi.org
And 1 more in this version.
anthropic 0.20.0 breaking changes
- Signature changed
anthropic.resources.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Union[str, Literal['claude-3-opus-20240229', 'claude-3-sonnet-20240229', "claude-2.1'", 'claude-2.0', 'claude-instant-1.2']], metadata... pypi.org - Signature changed
anthropic.resources.Messages.stream
Was def stream(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Union[str, Literal['claude-3-opus-20240229', 'claude-3-sonnet-20240229', "claude-2.1'", 'claude-2.0', 'claude-instant-1.2']], metadata... pypi.org
And 1 more in this version.
anthropic 0.19.0 breaking changes
- Signature changed
anthropic.resources.Completions.create
Was def create(self, *, max_tokens_to_sample: int, model: Union[str, Literal['claude-3-opus-20240229', 'claude-2.1', 'claude-instant-1']], prompt: str, metadata: completion_create_params.Metadata | NotGiven = NOT_GIVEN, stop_sequences... pypi.org - Signature changed
anthropic.resources.Messages.create
Was def create(self, *, max_tokens: int, messages: Iterable[MessageParam], model: str, metadata: message_create_params.Metadata | NotGiven = NOT_GIVEN, stop_sequences: List[str] | NotGiven = NOT_GIVEN, stream: Literal[False] |... pypi.org
And 3 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.