Releases: anthropics/anthropic-sdk-java
Releases · anthropics/anthropic-sdk-java
v2.1.0
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
v2.0.0
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 sharedAutoPager
andAutoPagerAsync
types, under thecore
packageAutoPagerAsync
now has different usage. You can call.subscribe(...)
on the returned object instead to get called back each page item. You can also callonCompleteFuture()
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
orgetNextPageParams
:- Swap to
nextPage()
andnextPageParams()
- 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)
- Swap to
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
Refactors
- client: improve some class names (aa1f7b7)
v1.4.0
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
v1.3.1
v1.3.0
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
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
v1.2.0
1.2.0 (2025-04-15)
Full Changelog: v1.1.0...v1.2.0
Features
- api: manual updates (c787a06)
Bug Fixes
- client: handle empty tool arg JSON in accumulator #249 (#252) (dbb87e2)
- client: return
Optional<T>
instead ofOptional<? extends T>
(#237) (a73ed0c) - client: translate streaming
IOException
into custom exception (#233) (8b925b9)
Chores
- internal: codegen related update (#235) (3816ae3)
- internal: swap from
getNullable
togetOptional
(#236) (0b97285)
Documentation
v1.1.0
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
Performance Improvements
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
- fix examples (a4c0a53)
v1.0.0
v0.9.2
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
v0.9.1
0.9.1 (2025-03-25)
Full Changelog: v0.9.0...v0.9.1
Bug Fixes
Documentation
- add image example (1a33058)