Skip to content

Releases: anthropics/anthropic-sdk-java

v2.18.0

18 Mar 18:42

Choose a tag to compare

2.18.0 (2026-03-18)

Full Changelog: v2.17.0...v2.18.0

Features

Bug Fixes

  • client: allow updating header/query affecting fields in toBuilder() (81c22ee)

Chores

  • internal: tweak CI branches (34b9875)
  • internal: update retry delay tests (704bc83)

v2.17.0

16 Mar 17:26

Choose a tag to compare

2.17.0 (2026-03-16)

Full Changelog: v2.16.1...v2.17.0

Features

  • api: GA thinking-display-setting (422b461)

v2.16.1

11 Mar 17:22

Choose a tag to compare

2.16.1 (2026-03-11)

Full Changelog: v2.16.0...v2.16.1

Bug Fixes

  • client: correct "exactly one" check in JSON schema validator (#309) (6e58ba9)
  • tests: declare baseUrl field in RetryingHttpClientTest (#1003) (4546f83)

Chores

  • internal: codegen related update (7a3a942)
  • internal: codegen related update (a293049)

v2.16.0

06 Mar 23:47

Choose a tag to compare

2.16.0 (2026-03-06)

Full Changelog: v2.15.0...v2.16.0

Features

  • api: change array_format to brackets (f9eef6e)
  • api: chore(config): clean up model enum list (#31) (b19aa51)
  • api: remove publishing section from cli target (f802cb0)
  • client: support memory tools (#853) (f824954)
  • tests: update mock server (1ec509c)

Bug Fixes

  • clear last tool response when user sets next params (#895) (5b082a0)
  • client: update model references from claude-4-sonnet-20250514 to claude-sonnet-4-5 (746d5da)
  • set Accept header in more places (bc159c8)

Chores

  • drop apache dependency (ee7f3d4)
  • internal: codegen related update (159c037)
  • internal: expand imports (6a3adca)
  • make Properties more resilient to null (5c7ad57)
  • rename method to avoid conflict (b9b400d)
  • tests: unskip tests that are now supported in steady (8cad6ac)

Documentation

  • additional structured outputs documentation (#302) (3b1f131)
  • streamline README and rebrand to Claude SDK (#815) (6b550bf)

v2.15.0

19 Feb 19:39

Choose a tag to compare

2.15.0 (2026-02-19)

Full Changelog: v2.14.0...v2.15.0

Features

  • api: Add top-level cache control (automatic caching) (836d140)
  • api: Deprecate haiku-3 (a04dca8)
  • api: fix shared UserLocation and error code types (8b2a797)
  • api: manual updates (148cd98)
  • api: Releasing claude-sonnet-4-6 (b32f5d2)
  • client: add connection pooling option (5064a08)

Bug Fixes

Chores

  • internal: make OkHttp constructor internal (eadeb1b)
  • internal: update TestServerExtension comment (01ee3fb)
  • update mock server docs (034370b)

v2.14.0

07 Feb 19:14

Choose a tag to compare

2.14.0 (2026-02-07)

Full Changelog: v2.13.0...v2.14.0

Features

  • api: add support for speed mode (82451ae)

Chores

  • internal: make BedrockBackendTest resilient to ambient AWS config (1d32ff0)
  • internal: upgrade AssertJ (497621a)

v2.13.0

05 Feb 19:29

Choose a tag to compare

2.13.0 (2026-02-05)

Full Changelog: v2.12.0...v2.13.0

Features

  • add warning for thinking enabled usage on new model (#801) (ad68dfc)
  • api: Release Claude Opus 4.6, adaptive thinking, and other features (9014e16)

Chores

  • ci: remove claude-code-review workflow (c623793)
  • internal: allow passing args to ./scripts/test (509badc)
  • remove claude-code-review workflow (c623793)
  • remove claude-code-review workflow (d578437)

v2.12.0

29 Jan 18:32

Choose a tag to compare

2.12.0 (2026-01-29)

Full Changelog: v2.11.1...v2.12.0

Features

  • add output_config to message create params (4c4bb5d)
  • api: Add new methods to tests (#748) (2c2ebdc)
  • api: add support for Structured Outputs in the Messages API (50fb232)
  • api: adds support for Claude Opus 4.5, Effort, Advance Tool Use Features, Autocompaction, and Computer Use v5 (4689271)
  • api: migrate sending message format in output_config rather than output_format (c0103c6)
  • api: migrate sending message format in output_config rather than output_format (a6ea665)
  • client: add HttpRequest#url() method (49afe52)
  • client: allow configuring dispatcher executor service (60554ea)
  • client: send X-Stainless-Kotlin-Version header (d7bffd2)
  • client: support Anthropic models on Microsoft Foundry (#698) (8077051)

Bug Fixes

  • client: BetaMessageAccumulator crash on empty tool input (e0fe678)
  • client: cancel okhttp call when future cancelled (b52f783)
  • client: disallow coercion from float to int (492286b)
  • client: fully respect max retries (e593174)
  • client: implement visitToolSearchToolResult for Beta Accumulator (41191ed)
  • client: preserve time zone in lenient date-time parsing (8e7204c)
  • client: remove duplicate outputConfig parameters (b1c37b8)
  • client: run linter (73e141d)
  • client: send retry count header for max retries 0 (e593174)
  • date time deserialization leniency (f6f7ad1)
  • remove duplicate code (937b34f)
  • resolve lint error (db08d1c)
  • update failing test (4a7c7a9)

Chores

  • ci: add Claude Code GitHub Workflow (4eec6e8)
  • ci: upgrade actions/github-script (18fbb1d)
  • ci: upgrade actions/setup-java (de57407)
  • client: improve example values (d579c45)
  • client: mark claude-3-5-haiku as deprecated (46bf679)
  • fix merge conflict (e307fa0)
  • fix test (b612010)
  • format code (3765903)
  • internal: clean up maven repo artifact script and add html documentation to repo root (d319dd7)
  • internal: correct cache invalidation for SKIP_MOCK_TESTS (7d40d45)
  • internal: depend on packages directly in example (e593174)
  • internal: improve maven repo docs (852f6dc)
  • internal: support uploading Maven repo artifacts to stainless package server (17e663a)
  • internal: update actions/checkout version (7fd4f0a)
  • internal: update maven repo doc to include authentication (23d5c76)
  • internal: use different example values for some enums (5d45a2f)
  • test on Jackson 2.14.0 to avoid encountering FasterXML/jackson-databind#3240 in tests (f6f7ad1)

Documentation

  • remove $ for better copy-pasteabality (b2315f9)

v2.11.1

19 Nov 23:24

Choose a tag to compare

2.11.1 (2025-11-19)

Full Changelog: v2.11.0...v2.11.1

Bug Fixes

  • structured outputs: use correct beta header (ec6d404)

v2.11.0

14 Nov 18:28

Choose a tag to compare

2.11.0 (2025-11-14)

Full Changelog: v2.10.1...v2.11.0

Features

  • api: add support for structured outputs beta (4459de9)