Skip to content

chore(deps): update module github.com/anthropics/anthropic-sdk-go to v2 - #2509

Merged
rdimitrov merged 5 commits into
mainfrom
renovate/github.com-anthropics-anthropic-sdk-go-2.x
Oct 24, 2026
Merged

rdimitrov merged 5 commits into
mainfrom
renovate/github.com-anthropics-anthropic-sdk-go-2.x

Conversation

@renovate

@renovate renovate Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/anthropics/anthropic-sdk-go v1.73.0 → v2.3.0 age confidence

Release Notes

anthropics/anthropic-sdk-go (github.com/anthropics/anthropic-sdk-go)

v2.3.0

Compare Source

Features
  • api: add Claude Tag endpoints for Claude Enterprise organizations
  • google-cloud: add user profiles and send them to the organization endpoint
Bug Fixes
  • auth: don't overwrite a credentials file or spend its refresh token on a client's per-request base URL override
Chores
  • client: stop sending query params hardcoded in endpoint paths
  • docs: improve the descriptions of the code execution tool and its encrypted results
  • docs: reword work queue, skill and external key descriptions
  • docs: update descriptions of the per-user usage and cost reports
  • internal: carry endpoint path query params to the request layer
  • internal: check the repository by owner and public name in workflows
  • internal: read the beta route qualifier instead of the beta=true query
  • internal: remove preview build upload from CI
  • internal: stop expecting the beta query param in tests
Documentation
  • client: correct two doc comments on param.Opt
  • google-cloud: update the product name
  • update the README and the example request

v2.2.0

Compare Source

Features
  • api: add support for message threads
  • api: add usage and cost reports by dimension, mark older reports legacy
Bug Fixes
  • auth: don't share an in-flight token fetch across base URLs
  • tools: send a change made in place to an earlier message of a tool runner with the next request
Chores
  • docs: clarify plugin content scan and validation descriptions
  • docs: clarify plugin served_version_pinned and updated_at
  • docs: fix usage and cost report examples and ending_at docs
  • docs: rate limit model lists vary by organization and workspace

v2.1.0

Compare Source

Features
  • api: add enforcement status, actions and filter to user profiles

v2.0.0

Compare Source

⚠ BREAKING CHANGES
  • api: add support for new API version 2026-10-21
Features
  • api: add a workspace_id filter and the usage_tier scope type to list spend limits
  • api: add support for new API version 2026-10-21
Chores
  • require Go 1.25 or later
Documentation
  • api: remove outdated system role note from messages description

v1.84.0

Compare Source

Features
  • api: add org webhook endpoints and user profile enforcement events
Chores
  • ci: run the changelog check on a standard runner

v1.83.0

Compare Source

Features
  • api: add data_refreshed_at and has_more to analytics report pages
  • api: add workspace rate-limit updates to the Admin API
  • api: make User Profiles generally available
  • client: yield server-sent events with unrecognized event names
  • google-cloud: use the v1 endpoints and add the organization endpoint
Bug Fixes
  • client: close the response body of calls that discard the response
  • client: treat x-amz-security-token as a sensitive header
Chores
  • ci: fix Go cache restore when go.mod sets a newer toolchain
  • ci: skip the changelog check on draft pull requests
  • docs: add credential expiry descriptions to the Managed Agents API reference
  • docs: add Messages API request descriptions
  • docs: correct plugin manifest_version and reach descriptions
  • docs: improve Managed Agents memory store descriptions
  • docs: improve Managed Agents vault and credential descriptions

v1.82.0

Compare Source

Features
  • api: add between_tools to thinking types in model capabilities
  • api: add the speed parameter and usage.speed to Messages
  • api: return a Console organization's usage-tier spend cap as a read-only spend limit
Chores
  • ci: speed up breaking change detection
  • docs: describe headers on Managed Agents and telemetry endpoints
  • tests: add tests for custom HTTP clients and trace propagation
Documentation
  • api: note that some models need a beta header to use speed

v1.81.0

Compare Source

Features
  • api: add execution_identity to Managed Agents agents

  • api: add organization_type_not_supported error to spend limit lists

  • api: add telemetry destination test endpoint

  • api: add telemetry destinations to the Admin API

  • client: add native support for OpenTelemetry tracing

    If your app registers a global tracer provider, the SDK will create spans with it after upgrading, and they'll be exported with the rest of your traces. Requests will also get trace context headers from the global propagator. To disable, pass option.WithoutOpenTelemetry() to the client or set ANTHROPIC_OPEN_TELEMETRY=false. Learn more in the documentation.

Bug Fixes
  • api: rename telemetry destination test response model
  • client: return a constant's value from a param union's getter
  • client: skip comment-only blocks when decoding event streams
  • client: treat proxy-authorization as a sensitive header
  • set the required type field in union param constructor helpers
Chores
  • docs: correct prefill, thinking, fallback and model descriptions
  • docs: document the scope required to assign the managed role
  • docs: update model examples
  • internal: narrow the tripwire test rule in the contributor guides
  • tests: stop listing the stream event types in the accumulator test
Documentation
  • api: clarify when custom tool results can be sent
  • api: say is_enabled is always true for user spend limits

v1.80.0

Compare Source

Features
  • api: add types for the Chat and Cowork unified analytics metrics
  • api: add workflows, multiagent configuration and thread status filtering to Managed Agents

v1.79.1

Compare Source

Chores
  • ci: check that pull requests update the changelog
  • docs: note that listing Claude Console spend limits is in early access

v1.79.0

Compare Source

Full Changelog: v1.78.0...v1.79.0

Features
  • api: add claude-haiku-5-5 and typed computer and browser toolset tool calls (1930a5e)
  • api: add disabled to thinking types in model capabilities (3b88a46)
  • api: add display_name to RBAC roles and deprecate name (e568369)
  • api: add include_default parameter to list workspaces (a2acfc6)
  • api: add lifecycle stage fields and filter to /v1/models (2b3ea06)
  • api: add line to model objects (24b1d56)
  • api: add url_sources to the Managed Agents web_fetch tool config (3b88a46)
  • api: add web search and code execution support to model capabilities (3b88a46)
  • client: add All() iterators to SSE streams and auto-pagers (b0d7423)
Bug Fixes
  • api: send the beta header by default when listing spend limits (b8bcfc7)
  • auth: require https or loopback at every token endpoint (#​431) (3b88a46)
  • client: percent-encode path params and reject dot-segment values (3b88a46)
  • client: return the field error when a param union variant fails to decode (a59fef2)
  • client: send array header params as a single comma-separated header (dace66e)
  • client: send default and caller-provided array header values in a single header (1ca109c)
  • environments: keep a local edit made after a memory upload whose response was lost (#​441) (3b88a46)
  • return unmodeled content blocks and citations from ToParam instead of panicking (#​436) (3b88a46)
Chores
  • api: keep the MessageParam name and drop generated constructors (3b88a46)
  • api: mark the Text Completions API as deprecated (3b88a46)
  • docs: correct example groups in rate limit list description (a489eb3)
  • docs: correct when usage and cost report data becomes final (3b88a46)
  • docs: describe a federation rule's target by its type (3b88a46)
  • docs: fix example IDs in sessions, agents and vault credentials (3b88a46)
  • docs: update Managed Agents multiagent and thread descriptions (3b88a46)
  • docs: update the activity summaries endpoint description (86f2da1)
  • docs: update the description of the Model line field (ad2ed3e)
  • internal: add REVIEW.md with review instructions (3b88a46)
  • internal: make mock server spec updates smaller in git history (3b88a46)
  • internal: move the custom unmarshaler test into the param decode tests (#​444) (3b88a46)
  • tests: run tests skipped for a query param bug that is now fixed (3a8025b)
  • tests: run tests that an older mock server could not serve (4735a5a)
Documentation
  • api: list streaming-only methods in api.md under their real names (3b88a46)
  • api: state the agent tools limit as 256 (cfd31a5)
  • beta: point structured-output helper docs at output_config.format (#​429) (3b88a46)
  • client: remove outdated param.Field note from Execute (fce1d47)

v1.78.0

Compare Source

Full Changelog: v1.78.0...v1.79.0

Features
  • api: add claude-haiku-5-5 and typed computer and browser toolset tool calls (1930a5e)
  • api: add disabled to thinking types in model capabilities (3b88a46)
  • api: add display_name to RBAC roles and deprecate name (e568369)
  • api: add include_default parameter to list workspaces (a2acfc6)
  • api: add lifecycle stage fields and filter to /v1/models (2b3ea06)
  • api: add line to model objects (24b1d56)
  • api: add url_sources to the Managed Agents web_fetch tool config (3b88a46)
  • api: add web search and code execution support to model capabilities (3b88a46)
  • client: add All() iterators to SSE streams and auto-pagers (b0d7423)
Bug Fixes
  • api: send the beta header by default when listing spend limits (b8bcfc7)
  • auth: require https or loopback at every token endpoint (#​431) (3b88a46)
  • client: percent-encode path params and reject dot-segment values (3b88a46)
  • client: return the field error when a param union variant fails to decode (a59fef2)
  • client: send array header params as a single comma-separated header (dace66e)
  • client: send default and caller-provided array header values in a single header (1ca109c)
  • environments: keep a local edit made after a memory upload whose response was lost (#​441) (3b88a46)
  • return unmodeled content blocks and citations from ToParam instead of panicking (#​436) (3b88a46)
Chores
  • api: keep the MessageParam name and drop generated constructors (3b88a46)
  • api: mark the Text Completions API as deprecated (3b88a46)
  • docs: correct example groups in rate limit list description (a489eb3)
  • docs: correct when usage and cost report data becomes final (3b88a46)
  • docs: describe a federation rule's target by its type (3b88a46)
  • docs: fix example IDs in sessions, agents and vault credentials (3b88a46)
  • docs: update Managed Agents multiagent and thread descriptions (3b88a46)
  • docs: update the activity summaries endpoint description (86f2da1)
  • docs: update the description of the Model line field (ad2ed3e)
  • internal: add REVIEW.md with review instructions (3b88a46)
  • internal: make mock server spec updates smaller in git history (3b88a46)
  • internal: move the custom unmarshaler test into the param decode tests (#​444) (3b88a46)
  • tests: run tests skipped for a query param bug that is now fixed (3a8025b)
  • tests: run tests that an older mock server could not serve (4735a5a)
Documentation
  • api: list streaming-only methods in api.md under their real names (3b88a46)
  • api: state the agent tools limit as 256 (cfd31a5)
  • beta: point structured-output helper docs at output_config.format (#​429) (3b88a46)
  • client: remove outdated param.Field note from Execute (fce1d47)

v1.77.0

Compare Source

Full Changelog: v1.77.0...v1.78.0

Features
  • api: add list spend limits endpoint (597ed95)
Chores
  • api: mark Claude Sonnet 4.5 as deprecated (end-of-life November 30, 2026) (5464a3e)

v1.76.0

Compare Source

Full Changelog: v1.76.0...v1.77.0

Features
  • analytics: keep the per-user report actor a union (#​416) (03b3feb)
  • api: add a refusal stop reason and stop_details to Managed Agents session idle events (2225664)
  • api: add Claude Enterprise analytics, spend limits, and RBAC groups and roles to the Admin API (9039d31)
  • api: add per-user usage and cost reports to the Admin API analytics (14fa777)
  • api: add Plugins and Plugin Marketplaces to the Admin API (785997a)
  • api: add repository error types to Managed Agents session errors (9dfb79b)
  • api: allow removing a plugin's org-wide installation setting (ef365f2)
  • api: MCP tunnels beta: add read-only transport object to Tunnel and return the one-time relay token in the create response (f6572a5)
  • api: Organization API endpoints are now GA (4fc56d2)
Bug Fixes
  • api: make memory store description, metadata, archived_at required (b8bf04b)
  • api: type admin plugin preference and marketplace fields as enums (9e2de19)
  • client: redact sensitive headers in DumpRequest and DumpResponse (f57d275)
  • pagination: auto-paging continues past an empty page while next_page is set (2c8cdd7)
  • tools: stop the session tool runner after any idle that ends the turn (#​413) (bb2421f)
Chores
  • api: update MCP Tunnels types and descriptions (1b0aac7)
  • docs: remove placeholder enum descriptions (d156e86)
  • tests: platform clients do not mirror the Organization service (#​414) (108cfae)

v1.75.0

Compare Source

Full Changelog: v1.75.0...v1.76.0

Features
  • api: add between_tools thinking type (bc5be8f)
  • api: add claude-sonnet-5-5 (48993ca)
  • api: add include_inherited and source to workspace rate limits (bd6bb6d)
  • api: add typed event type values to the Managed Agents events list filter (019b05b)
  • api: cache diagnostics GA — diagnostics on Message / MessageCreateParams (4ea973c)
Bug Fixes
  • client: pass HTTP client when cloning request config (cd8f34f)
  • client: retry when the connection drops part-way through a response (4f7f317)
  • client: send no placeholder filename for unnamed file uploads (968849c)
  • helpers: degrade between_tools thinking to disabled on fallback hops (#​410) (aa15d36)
Performance Improvements
  • client: decode SSE streams without per-event allocations (0f84503)
Chores
  • ci: choose the CI runner by repository (acb082a)
  • docs: clarify that stream: true returns the raw event stream (5fafdf0)
  • docs: make Managed Agents actor descriptions resource-neutral (ae3cc2f)
  • docs: restore the research-preview notice on the Dream type (d95f40a)
  • internal: simplify request execution (4a68721)
Documentation
  • api: prefer each field's own description over its shared type's (d05f55e)

v1.74.0

Compare Source

Full Changelog: v1.74.0...v1.75.0

Features
  • api: add support for claude-opus-5-5, inline tool definitions and MCP tool-list pinning (beta) (0a2186a)
Bug Fixes
  • api: share one evaluated_permission enum across Managed Agents events (30e2056)
  • client: preserve extra fields when unmarshalling open-object params (c29d53b)
  • tools: AddTools takes effect straight away (#​406) (21e68b2)
  • tools: leave reply-only params off the tool runner's compaction request (#​404) (79ed488)
Chores
  • docs: add descriptions to the Dreams API reference (f7b86c8)
  • docs: add descriptions to the User Profiles API reference (f7b86c8)
  • docs: add memory store descriptions to the Managed Agents API reference (f7b86c8)
  • docs: improve descriptions in the Dreams API reference (39392dc)
  • docs: update diagnostics field descriptions on beta messages (eb18011)
Documentation
  • add path and header parameter descriptions (09da68f)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

rdimitrov and others added 3 commits October 24, 2026 23:15
v2 makes MessageParam a union of per-role types, so the conversation
cache anchor now reads a built message's blocks through the user or
assistant variant, and the tests read them the same way.

v2 also changes three request defaults. The provider and the model
Lister now hold the previous wire explicitly:

- anthropic-version stays 2023-06-01 instead of the SDK's 2026-10-21.
- The key rides x-api-key instead of Authorization: Bearer, which
  gateways and composition's transports expect for this protocol.
- The SDK's OpenTelemetry spans and trace-context injection are off,
  so a process-global tracer or propagator no longer adds traceparent.

A new test pins all three and fails against the SDK defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@renovate

renovate Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Root resolves provider/anthropic through a local replace, so it only
picks up the v2 SDK's new indirect requirements on a second tidy pass.
Commit the settled state that task tidy produces in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rdimitrov
rdimitrov merged commit 5a6ba8e into main Oct 24, 2026
44 checks passed
@rdimitrov
rdimitrov deleted the renovate/github.com-anthropics-anthropic-sdk-go-2.x branch October 24, 2026 21:13
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 26, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant