Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
".": "2.29.0",
".": "2.30.0",
"anthropic-java-aws": "0.2.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 91
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-ad9228826393d94e86ecf4c22853ae51b1d4094960c836238b3ab79a1044be32.yml
openapi_spec_hash: dc43ed54947d427a084a891b7c4a783a
config_hash: bbf09e23cb2e12b5bb8cbcee3044ceec
configured_endpoints: 97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-0df2c793ea4c3ad955e8e488be39d7041a0a95e2fe144dd69ae4d9fb72835190.yml
openapi_spec_hash: b169b786bdf1f07d7f77f18f7b94abfa
config_hash: ed43b84afda7441f472a59dda6badb05
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 2.30.0 (2026-05-06)

Full Changelog: [v2.29.0...v2.30.0](https://github.com/anthropics/anthropic-sdk-java/compare/v2.29.0...v2.30.0)

### Features

* **api:** add support for Managed Agents multiagents and outcomes, webhooks, vault validation ([e641d5f](https://github.com/anthropics/anthropic-sdk-java/commit/e641d5fef03fb832064d933326be8b0294e4ab0c))
* **api:** add support for Managed Agents multiagents and outcomes, webhooks, vault validation ([6067599](https://github.com/anthropics/anthropic-sdk-java/commit/60675993a7c520e7fb74d02dc797d64e854d58e8))
* **client:** support proxy authentication ([d91fea2](https://github.com/anthropics/anthropic-sdk-java/commit/d91fea2762368d5b52296dddd36e1b9b67ff1bf5))


### Bug Fixes

* **api:** Adjust webhook configuration ([34ea5b4](https://github.com/anthropics/anthropic-sdk-java/commit/34ea5b41cb152df7abdc9d5e43949817c74d4375))


### Chores

* fix merge errors ([c390c20](https://github.com/anthropics/anthropic-sdk-java/commit/c390c200d0fb228caaebb7c14ae22fa72bec22b9))

## 2.29.0 (2026-05-05)

Full Changelog: [v2.28.0...v2.29.0](https://github.com/anthropics/anthropic-sdk-java/compare/v2.28.0...v2.29.0)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Full documentation is available at **[platform.claude.com/docs/en/api/sdks/java]
### Gradle

```kotlin
implementation("com.anthropic:anthropic-java:2.29.0")
implementation("com.anthropic:anthropic-java:2.30.0")
```

### Maven
Expand All @@ -24,7 +24,7 @@ implementation("com.anthropic:anthropic-java:2.29.0")
<dependency>
<groupId>com.anthropic</groupId>
<artifactId>anthropic-java</artifactId>
<version>2.29.0</version>
<version>2.30.0</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.anthropic.core.Timeout
import com.anthropic.core.http.AsyncStreamResponse
import com.anthropic.core.http.Headers
import com.anthropic.core.http.HttpClient
import com.anthropic.core.http.ProxyAuthenticator
import com.anthropic.core.http.QueryParams
import com.fasterxml.jackson.databind.json.JsonMapper
import java.net.Proxy
Expand Down Expand Up @@ -51,6 +52,7 @@ class AnthropicOkHttpClient private constructor() {
private var clientOptions: ClientOptions.Builder = ClientOptions.builder()
private var dispatcherExecutorService: ExecutorService? = null
private var proxy: Proxy? = null
private var proxyAuthenticator: ProxyAuthenticator? = null
private var maxIdleConnections: Int? = null
private var keepAliveDuration: Duration? = null
private var sslSocketFactory: SSLSocketFactory? = null
Expand Down Expand Up @@ -83,6 +85,20 @@ class AnthropicOkHttpClient private constructor() {
/** Alias for calling [Builder.proxy] with `proxy.orElse(null)`. */
fun proxy(proxy: Optional<Proxy>) = proxy(proxy.getOrNull())

/**
* Provides credentials when an HTTP proxy responds with `407 Proxy Authentication
* Required`.
*/
fun proxyAuthenticator(proxyAuthenticator: ProxyAuthenticator?) = apply {
this.proxyAuthenticator = proxyAuthenticator
}

/**
* Alias for calling [Builder.proxyAuthenticator] with `proxyAuthenticator.orElse(null)`.
*/
fun proxyAuthenticator(proxyAuthenticator: Optional<ProxyAuthenticator>) =
proxyAuthenticator(proxyAuthenticator.getOrNull())

/**
* The maximum number of idle connections kept by the underlying OkHttp connection pool.
*
Expand Down Expand Up @@ -292,6 +308,11 @@ class AnthropicOkHttpClient private constructor() {
/** Alias for calling [Builder.authToken] with `authToken.orElse(null)`. */
fun authToken(authToken: Optional<String>) = authToken(authToken.getOrNull())

fun webhookKey(webhookKey: String?) = apply { clientOptions.webhookKey(webhookKey) }

/** Alias for calling [Builder.webhookKey] with `webhookKey.orElse(null)`. */
fun webhookKey(webhookKey: Optional<String>) = webhookKey(webhookKey.getOrNull())

fun headers(headers: Headers) = apply { clientOptions.headers(headers) }

fun headers(headers: Map<String, Iterable<String>>) = apply {
Expand Down Expand Up @@ -445,6 +466,7 @@ class AnthropicOkHttpClient private constructor() {
OkHttpClient.builder()
.timeout(clientOptions.timeout())
.proxy(proxy)
.proxyAuthenticator(proxyAuthenticator)
.maxIdleConnections(maxIdleConnections)
.keepAliveDuration(keepAliveDuration)
.dispatcherExecutorService(dispatcherExecutorService)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.anthropic.core.Timeout
import com.anthropic.core.http.AsyncStreamResponse
import com.anthropic.core.http.Headers
import com.anthropic.core.http.HttpClient
import com.anthropic.core.http.ProxyAuthenticator
import com.anthropic.core.http.QueryParams
import com.fasterxml.jackson.databind.json.JsonMapper
import java.net.Proxy
Expand Down Expand Up @@ -51,6 +52,7 @@ class AnthropicOkHttpClientAsync private constructor() {
private var clientOptions: ClientOptions.Builder = ClientOptions.builder()
private var dispatcherExecutorService: ExecutorService? = null
private var proxy: Proxy? = null
private var proxyAuthenticator: ProxyAuthenticator? = null
private var maxIdleConnections: Int? = null
private var keepAliveDuration: Duration? = null
private var sslSocketFactory: SSLSocketFactory? = null
Expand Down Expand Up @@ -83,6 +85,20 @@ class AnthropicOkHttpClientAsync private constructor() {
/** Alias for calling [Builder.proxy] with `proxy.orElse(null)`. */
fun proxy(proxy: Optional<Proxy>) = proxy(proxy.getOrNull())

/**
* Provides credentials when an HTTP proxy responds with `407 Proxy Authentication
* Required`.
*/
fun proxyAuthenticator(proxyAuthenticator: ProxyAuthenticator?) = apply {
this.proxyAuthenticator = proxyAuthenticator
}

/**
* Alias for calling [Builder.proxyAuthenticator] with `proxyAuthenticator.orElse(null)`.
*/
fun proxyAuthenticator(proxyAuthenticator: Optional<ProxyAuthenticator>) =
proxyAuthenticator(proxyAuthenticator.getOrNull())

/**
* The maximum number of idle connections kept by the underlying OkHttp connection pool.
*
Expand Down Expand Up @@ -292,6 +308,11 @@ class AnthropicOkHttpClientAsync private constructor() {
/** Alias for calling [Builder.authToken] with `authToken.orElse(null)`. */
fun authToken(authToken: Optional<String>) = authToken(authToken.getOrNull())

fun webhookKey(webhookKey: String?) = apply { clientOptions.webhookKey(webhookKey) }

/** Alias for calling [Builder.webhookKey] with `webhookKey.orElse(null)`. */
fun webhookKey(webhookKey: Optional<String>) = webhookKey(webhookKey.getOrNull())

fun headers(headers: Headers) = apply { clientOptions.headers(headers) }

fun headers(headers: Map<String, Iterable<String>>) = apply {
Expand Down Expand Up @@ -445,6 +466,7 @@ class AnthropicOkHttpClientAsync private constructor() {
OkHttpClient.builder()
.timeout(clientOptions.timeout())
.proxy(proxy)
.proxyAuthenticator(proxyAuthenticator)
.maxIdleConnections(maxIdleConnections)
.keepAliveDuration(keepAliveDuration)
.dispatcherExecutorService(dispatcherExecutorService)
Expand Down
Loading
Loading