Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

java changedcli-sdks-libraries/sdks/java

Nearest release: v2.1.307, published 4 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+4added
Lines−4removed
From line 15 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits23to this page, all time

The whole hunk

from line 15, old and new numbered
/
lines
from line 15
1515<Tabs>
1616 <Tab title="Gradle">
1717 ```kotlin
18 implementation("com.anthropic:anthropic-java:2.75.0")
18 implementation("com.anthropic:anthropic-java:3.0.0")
1919 ```
2020 </Tab>
2121 
from line 24
2424 <dependency>
2525 <groupId>com.anthropic</groupId>
2626 <artifactId>anthropic-java</artifactId>
27 <version>2.75.0</version>
27 <version>3.0.0</version>
2828 </dependency>
2929 ```
3030 </Tab>
from line 403
403403 .flatMap(contentBlock -> contentBlock.toolUse().stream())
404404 .forEach(toolUseBlock -> createParamsBuilder
405405 // Add a message indicating that the tool use was requested.
406 .addAssistantMessageOfBetaContentBlockParams(
406 .addAssistantMessageOfContentBlockParams(
407407 List.of(BetaContentBlockParam.ofToolUse(BetaToolUseBlockParam.builder()
408408 .name(toolUseBlock.name())
409409 .id(toolUseBlock.id())
from line 410
410410 .input(toolUseBlock._input())
411411 .build())))
412412 // Add a message with the result of the requested tool use.
413 .addUserMessageOfBetaContentBlockParams(
413 .addUserMessageOfContentBlockParams(
414414 List.of(BetaContentBlockParam.ofToolResult(BetaToolResultBlockParam.builder()
415415 .toolUseId(toolUseBlock.id())
416416 .contentAsJson(callTool(toolUseBlock))
Feedback