Skip to content

Releases: anthropics/anthropic-sdk-java

v2.1.0

11 Jun 16:32
764ee55
Compare
Choose a tag to compare

2.1.0 (2025-06-11)

Full Changelog: v2.0.0...v2.1.0

Features

  • api: api update (823032b)
  • api: manual updates (6156bcb)
  • client: add support for fine-grained-tool-streaming-2025-05-14 (37aa2a1)
  • client: add support for new text_editor_20250429 tool (f85d1a2)
  • client: more toParam() methods (151e181)

Bug Fixes

  • client: toParam methods (2632693)
  • client: deprecate BetaBase64PDFBlock in favor of BetaRequestDocumentBlock (e83424b)
  • client: handle server tool use delta and extract to better type (3d2f428)
  • client: remove @MustBeClosed for future returning methods (b9b63ca)

Chores

  • docs: adjust MCP example to show use of beta header (7d1758a)
  • internal: fix release workflows (a5287dc)
  • tests: add test for fine-grained-tool-streaming-2025-05-14 logic (2b39131)

v2.0.0

22 May 16:42
b102a41
Compare
Choose a tag to compare

2.0.0 (2025-05-22)

Full Changelog: v1.4.0...v2.0.0

⚠ BREAKING CHANGES

  • client: improve some class names
  • client: extract auto pagination to shared classes
  • client: Migration: - If you were referencing the AutoPager class on a specific *Page or *PageAsync type, then you should instead reference the shared AutoPager and AutoPagerAsync types, under the core package
    • AutoPagerAsync now has different usage. You can call .subscribe(...) on the returned object instead to get called back each page item. You can also call onCompleteFuture() to get a future that completes when all items have been processed. Finally, you can call .close() on the returned object to stop auto-paginating early
    • If you were referencing getNextPage or getNextPageParams:
      • Swap to nextPage() and nextPageParams()
      • Note that these both now return non-optional types (use hasNextPage() before calling these, since they will throw if it's impossible to get another page)

Features

  • api: add claude 4 models, files API, code execution tool, MCP connector and more (6deae45)
  • client: allow providing some params positionally (f05e741)
  • client: extract auto pagination to shared classes (b7d354b)

Bug Fixes

  • internal: fix message usage accumulation (7427fdb)
  • tests: update MessageAccumulator tests to match implementation (ed8ff39)

Chores

  • internal: codegen related update (8d45948)
  • internal: fix custom code (88c1572)
  • internal: fix custom code (b0985c6)

Documentation

  • add security warning for overriding parameters (#504) (0100532)

Refactors

  • client: improve some class names (aa1f7b7)

v1.4.0

07 May 15:39
64d4019
Compare
Choose a tag to compare

1.4.0 (2025-05-07)

Full Changelog: v1.3.1...v1.4.0

Features

  • api: adds web search capabilities to the Claude API (6a873d4)

Chores

  • disable configuration cache for releases (c12dfb7)
  • internal: remove flaky -Xbackend-threads=0 option (af5fd05)

v1.3.1

02 May 14:02
Compare
Choose a tag to compare

1.3.1 (2025-05-02)

Full Changelog: v1.3.0...v1.3.1

Chores

  • internal: update java toolchain (dda0371)

v1.3.0

30 Apr 10:50
Compare
Choose a tag to compare

1.3.0 (2025-04-30)

Full Changelog: v1.2.0...v1.3.0

Features

  • api: manual updates (12bfce7)
  • client: make pagination robust to missing data (fafa963)
  • client: support setting base URL via env var (#244) (b0a125a)

Bug Fixes

  • client: bump to better jackson version (#246) (6d17012)

Performance Improvements

  • internal: improve compilation+test speed (6c86a79)

Chores

  • ci: only use depot for staging repos (199e191)
  • ci: run on more branches and use depot runners (316271f)
  • internal: codegen related update (ed9783e)
  • internal: codegen related update (13676d4)
  • internal: delete flaky/unnecessary tests (5e3d901)
  • internal: expand CI branch coverage (#245) (be51e0c)
  • internal: isolate backend tests that use env (189eebd)
  • internal: java 17 -> 21 on ci (adbb816)
  • internal: reduce CI branch coverage (90e1fe1)

Documentation

  • add comments for page methods (fafa963)
  • client: update jackson compat error message (9c4f68f)
  • explain http client customization (c97180b)
  • explain jackson compat in readme (21448fa)
  • update documentation links to be more uniform (0022d67)

Refactors

  • client: deduplicate page response classes (#247) (fafa963)
  • client: migrate pages to builder pattern (#248) (162fe98)

v1.2.0

15 Apr 18:41
Compare
Choose a tag to compare

1.2.0 (2025-04-15)

Full Changelog: v1.1.0...v1.2.0

Features

Bug Fixes

  • client: handle empty tool arg JSON in accumulator #249 (#252) (dbb87e2)
  • client: return Optional&lt;T&gt; instead of Optional<? extends T> (#237) (a73ed0c)
  • client: translate streaming IOException into custom exception (#233) (8b925b9)

Chores

  • internal: codegen related update (#235) (3816ae3)
  • internal: swap from getNullable to getOptional (#236) (0b97285)

Documentation

  • add comments to JsonField classes (a73ed0c)
  • document how to forcibly omit required field (6da7748)
  • swap examples used in readme (#238) (6da7748)

v1.1.0

03 Apr 20:33
Compare
Choose a tag to compare

1.1.0 (2025-04-03)

Full Changelog: v1.0.0...v1.1.0

Features

  • api: extract ContentBlockDelta events into their own schemas (#226) (49a83cf)
  • api: manual updates (d5afb44)
  • api: manual updates (93d6364)
  • client: add enum validation method (1ce5a58)
  • client: expose request body setter and getter (#229) (fb26c1f)
  • client: make datetime deserialization more lenient (#228) (52b871d)
  • client: make union deserialization more robust (#227) (1ce5a58)

Bug Fixes

  • client: compilation errors (c8e47fd)
  • client: limit json deserialization coercion (#223) (a5987f6)

Performance Improvements

  • client: cached parsed type in HttpResponseFor (#230) (377c532)

Chores

  • client: remove unnecessary json state from some query param classes (1ce5a58)
  • internal: add invalid json deserialization tests (1ce5a58)
  • internal: add json roundtripping tests (1ce5a58)

Documentation

v1.0.0

31 Mar 18:03
Compare
Choose a tag to compare

1.0.0 (2025-03-31)

Full Changelog: v0.9.2...v1.0.0

Bug Fixes

  • client: don't call validate() during deserialization if we don't have to (#219) (061bd9b)

Chores

Documentation

v0.9.2

27 Mar 16:37
Compare
Choose a tag to compare

0.9.2 (2025-03-27)

Full Changelog: v0.9.1...v0.9.2

Bug Fixes

  • client: deduplicate stop reason type (d0c9ef4)
  • client: deduplicate stop reason type (#212) (19ed57d)
  • client: map deserialization bug (658fd88)

Chores

  • add hash of OpenAPI spec/config inputs to .stats.yml (#210) (8d3cbd4)
  • internal: delete unused methods and annotations (#213) (658fd88)

v0.9.1

25 Mar 22:34
Compare
Choose a tag to compare

0.9.1 (2025-03-25)

Full Changelog: v0.9.0...v0.9.1

Bug Fixes

  • client: incorrect property value in helper method (#209) (f670f18)

Documentation