Clojure wrappers over the beta agents-platform APIs of the official Anthropic Java SDK: skills, memory stores, agents, and sessions.
These wrap beta endpoints that Anthropic may change; the deeper platform
surfaces (deployments, environments, vaults, user profiles, webhooks) and
the nested sub-resources (skill versions, memories, session events/threads)
are not wrapped yet. Errors follow anthropic.core's contract: API/IO
failures are ex-info keyed :anthropic/error with the SDK exception as
cause.
Clojure wrappers over the beta agents-platform APIs of the official Anthropic Java SDK: skills, memory stores, agents, and sessions. These wrap beta endpoints that Anthropic may change; the deeper platform surfaces (deployments, environments, vaults, user profiles, webhooks) and the nested sub-resources (skill versions, memories, session events/threads) are not wrapped yet. Errors follow `anthropic.core`'s contract: API/IO failures are ex-info keyed `:anthropic/error` with the SDK exception as cause.
(archive-agent client agent-id)Archive an agent by id. Returns the archived agent map.
Archive an agent by id. Returns the archived agent map.
(archive-memory-store client memory-store-id)Archive a memory store by id. Returns the archived store map.
Archive a memory store by id. Returns the archived store map.
(archive-session client session-id)Archive a session by id. Returns the archived session map.
Archive a session by id. Returns the archived session map.
(create-agent client req)Create a managed agent: :name and :model (required), :system,
:description, :metadata. Skill/tool/MCP configuration is not wrapped
yet. Returns the agent as a map (:id, :name, :model, :version,
:system, :description, :created-at, :updated-at).
Create a managed agent: `:name` and `:model` (required), `:system`, `:description`, `:metadata`. Skill/tool/MCP configuration is not wrapped yet. Returns the agent as a map (`:id`, `:name`, `:model`, `:version`, `:system`, `:description`, `:created-at`, `:updated-at`).
(create-memory-store client req)Create a memory store: :name (required), :description, :metadata.
Returns the store as a map (:id, :name, :description, :created-at,
:updated-at).
Create a memory store: `:name` (required), `:description`, `:metadata`. Returns the store as a map (`:id`, `:name`, `:description`, `:created-at`, `:updated-at`).
(create-session client req)Create a session for :agent (an agent id, required), with optional
:title, :environment-id, and :metadata. Session resources, vault
ids, and per-session agent overrides are not wrapped yet. Returns the
session as a map (:id, :status, :title, :environment-id,
:created-at, :updated-at).
Create a session for `:agent` (an agent id, required), with optional `:title`, `:environment-id`, and `:metadata`. Session resources, vault ids, and per-session agent overrides are not wrapped yet. Returns the session as a map (`:id`, `:status`, `:title`, `:environment-id`, `:created-at`, `:updated-at`).
(create-skill client req)Create a skill from :files (paths or java.io.Files; typically a
SKILL.md plus resources) with an optional :display-title. Returns the
skill as a map (:id, :display-title, :latest-version, :source,
:created-at, :updated-at).
Create a skill from `:files` (paths or `java.io.File`s; typically a SKILL.md plus resources) with an optional `:display-title`. Returns the skill as a map (`:id`, `:display-title`, `:latest-version`, `:source`, `:created-at`, `:updated-at`).
(delete-memory-store client memory-store-id)Delete a memory store by id. Returns {:id ... :deleted true}.
Delete a memory store by id. Returns `{:id ... :deleted true}`.
(delete-session client session-id)Delete a session by id. Returns {:id ... :deleted true}.
Delete a session by id. Returns `{:id ... :deleted true}`.
(delete-skill client skill-id)Delete a skill by id. Returns {:id ... :deleted true}.
Delete a skill by id. Returns `{:id ... :deleted true}`.
(get-agent client agent-id)Retrieve an agent by id, as a map like create-agent's return.
Retrieve an agent by id, as a map like `create-agent`'s return.
(get-memory-store client memory-store-id)Retrieve a memory store by id, as a map like create-memory-store's return.
Retrieve a memory store by id, as a map like `create-memory-store`'s return.
(get-session client session-id)Retrieve a session by id, as a map like create-session's return.
Retrieve a session by id, as a map like `create-session`'s return.
(get-skill client skill-id)Retrieve one skill by id, as a map shaped like create-skill's return.
Retrieve one skill by id, as a map shaped like `create-skill`'s return.
(list-agents client)List agents (pages followed) as a vector of maps.
List agents (pages followed) as a vector of maps.
(list-memory-stores client)List memory stores (pages followed) as a vector of maps.
List memory stores (pages followed) as a vector of maps.
(list-sessions client)List sessions (pages followed) as a vector of maps.
List sessions (pages followed) as a vector of maps.
(list-skills client)List skills (pages followed) as a vector of maps like get-skill.
List skills (pages followed) as a vector of maps like `get-skill`.
(update-agent client agent-id changes)Update an agent. changes requires :version (the current agent version,
for optimistic concurrency - see :version in get-agent's return) plus
any of :name, :model, :system, :description, :metadata. Returns
the updated agent map.
Update an agent. `changes` requires `:version` (the current agent version, for optimistic concurrency - see `:version` in `get-agent`'s return) plus any of `:name`, `:model`, `:system`, `:description`, `:metadata`. Returns the updated agent map.
(update-memory-store client memory-store-id changes)Update a memory store's :name, :description, or :metadata. Returns
the updated store map.
Update a memory store's `:name`, `:description`, or `:metadata`. Returns the updated store map.
(update-session client session-id changes)Update a session's :title or :metadata. Returns the updated session map.
Update a session's `:title` or `:metadata`. Returns the updated session map.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |