Releases: anthropics/anthropic-sdk-java
Releases · anthropics/anthropic-sdk-java
v2.18.0
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
v2.17.0
2.17.0 (2026-03-16)
Full Changelog: v2.16.1...v2.17.0
Features
- api: GA thinking-display-setting (422b461)
v2.16.1
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
v2.16.0
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
Propertiesmore resilient tonull(5c7ad57) - rename method to avoid conflict (b9b400d)
- tests: unskip tests that are now supported in steady (8cad6ac)
Documentation
v2.15.0
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
- api: fix spec errors (5f7a7e6)
- resolve build issues (#829) (f72bfa9)
- resolve changed ref (#833) (29ecece)
Chores
v2.14.0
2.14.0 (2026-02-07)
Full Changelog: v2.13.0...v2.14.0
Features
- api: add support for speed mode (82451ae)
Chores
v2.13.0
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
v2.12.0
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-Versionheader (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/checkoutversion (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
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
2.11.0 (2025-11-14)
Full Changelog: v2.10.1...v2.11.0
Features
- api: add support for structured outputs beta (4459de9)