Skip to content
Merged
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ the conventions of [keepachangelog.com](http://keepachangelog.com/).

## [Unreleased]

## [0.34.0] - 2026-09-04

### Changed

- Bump `anthropic-java` and the Bedrock/Vertex artifacts to **2.61.0**.
- Adapt compliance settings to the SDK's renamed request-side
`BetaComplianceSettingsStateParam` and response-side
`BetaComplianceSettingsState` classes. The wrapper public API is unchanged.

## [0.33.0] - 2026-09-01

### Changed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jar. It does not assert parity.
tools.deps (`deps.edn`):

```clojure
net.clojars.savya/anthropic-clj {:mvn/version "0.33.0"}
net.clojars.savya/anthropic-clj {:mvn/version "0.34.0"}
```

Leiningen (`project.clj`):

```clojure
[net.clojars.savya/anthropic-clj "0.33.0"]
[net.clojars.savya/anthropic-clj "0.34.0"]
```

Supported Clojure versions: 1.10, 1.11, and 1.12.
Expand All @@ -55,7 +55,7 @@ Set `ANTHROPIC_API_KEY` in your environment, or pass client options:
- `:configure` - receives the raw SDK builder last, for anything not wrapped
here (interceptors, a custom `jsonMapper`, or a Bedrock/Vertex `backend`)

Tracks [`com.anthropic/anthropic-java` 2.60.0](https://github.com/anthropics/anthropic-sdk-java/releases/tag/v2.60.0) - see `CHANGELOG.md` for the bump history.
Tracks [`com.anthropic/anthropic-java` 2.61.0](https://github.com/anthropics/anthropic-sdk-java/releases/tag/v2.61.0) - see `CHANGELOG.md` for the bump history.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[deps-deploy.deps-deploy :as dd]))

(def lib 'net.clojars.savya/anthropic-clj)
(def version "0.33.0")
(def version "0.34.0")
(def class-dir "target/classes")
(def basis (delay (b/create-basis {:project "deps.edn"})))
(def jar-file (format "target/%s-%s.jar" (name lib) version))
Expand Down
10 changes: 5 additions & 5 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{:paths ["src"]

:deps {org.clojure/clojure {:mvn/version "1.12.5"}
com.anthropic/anthropic-java {:mvn/version "2.60.0"}
com.anthropic/anthropic-java {:mvn/version "2.61.0"}
metosin/jsonista {:mvn/version "1.0.1"}}

:aliases
{:test
{:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.91.1392"}
org.slf4j/slf4j-nop {:mvn/version "2.0.18"}
com.anthropic/anthropic-java-bedrock {:mvn/version "2.60.0"}
com.anthropic/anthropic-java-vertex {:mvn/version "2.60.0"}}
com.anthropic/anthropic-java-bedrock {:mvn/version "2.61.0"}
com.anthropic/anthropic-java-vertex {:mvn/version "2.61.0"}}
:main-opts ["-m" "kaocha.runner"]}

:bedrock
{:extra-deps {com.anthropic/anthropic-java-bedrock {:mvn/version "2.60.0"}}}
{:extra-deps {com.anthropic/anthropic-java-bedrock {:mvn/version "2.61.0"}}}

:vertex
{:extra-deps {com.anthropic/anthropic-java-vertex {:mvn/version "2.60.0"}}}
{:extra-deps {com.anthropic/anthropic-java-vertex {:mvn/version "2.61.0"}}}

:malli
{:extra-deps {metosin/malli {:mvn/version "0.20.1"}}}
Expand Down
4 changes: 2 additions & 2 deletions doc/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ an explicit integration suite.
Leiningen:

```clojure
[net.clojars.savya/anthropic-clj "0.33.0"]
[net.clojars.savya/anthropic-clj "0.34.0"]
```

tools.deps:

```clojure
net.clojars.savya/anthropic-clj {:mvn/version "0.33.0"}
net.clojars.savya/anthropic-clj {:mvn/version "0.34.0"}
```

Version `0.11.1` pins `com.anthropic/anthropic-java` `2.48.0`.
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject net.clojars.savya/anthropic-clj "0.33.0"
(defproject net.clojars.savya/anthropic-clj "0.34.0"
:plugins [[lein-tools-deps "0.4.5"]]
:middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
:lein-tools-deps/config {:config-files [:install :user :project]}
Expand Down
6 changes: 3 additions & 3 deletions src/anthropic/organization.clj
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@

(defn- ->compliance-state [state]
(case (check-enum! state #{:enabled :disabled} :state)
:enabled (com.anthropic.models.beta.organization.compliancesettings.ComplianceSettingUpdateParams$State/ofEnabled
:enabled (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateParam/ofEnabled
(.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateEnabledParam/builder)))
:disabled (com.anthropic.models.beta.organization.compliancesettings.ComplianceSettingUpdateParams$State/ofDisabled
:disabled (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateParam/ofDisabled
(.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateDisabledParam/builder)))))

(defn- ->compliance-update-params ^ComplianceSettingUpdateParams [{:keys [state]}]
(when-not state (missing-key! :state))
(let [b (ComplianceSettingUpdateParams/builder)
^com.anthropic.models.beta.organization.compliancesettings.ComplianceSettingUpdateParams$State state-value
^com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateParam state-value
(->compliance-state state)]
(.state b state-value)
(.build b)))
Expand Down
4 changes: 2 additions & 2 deletions test/anthropic/organization_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
(->params {:state :enabled})
enabled (.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateEnabled/builder))
response (-> (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings/builder)
(.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings$State/ofEnabled enabled))
(.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsState/ofEnabled enabled))
(.build))]
(is (.isEnabled (.state p)))
(is (= {:state :enabled} (convert response)))
(is (= {:state :disabled}
(convert
(-> (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings/builder)
(.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings$State/ofDisabled
(.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsState/ofDisabled
(.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateDisabled/builder))))
(.build)))))))

Expand Down
Loading