Liking cljdoc? Tell your friends :D

anthropic.beta

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.
raw docstring

archive-agentclj

(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.
sourceraw docstring

archive-memory-storeclj

(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.
sourceraw docstring

archive-sessionclj

(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.
sourceraw docstring

create-agentclj

(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`).
sourceraw docstring

create-memory-storeclj

(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`).
sourceraw docstring

create-sessionclj

(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`).
sourceraw docstring

create-skillclj

(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`).
sourceraw docstring

delete-memory-storeclj

(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}`.
sourceraw docstring

delete-sessionclj

(delete-session client session-id)

Delete a session by id. Returns {:id ... :deleted true}.

Delete a session by id. Returns `{:id ... :deleted true}`.
sourceraw docstring

delete-skillclj

(delete-skill client skill-id)

Delete a skill by id. Returns {:id ... :deleted true}.

Delete a skill by id. Returns `{:id ... :deleted true}`.
sourceraw docstring

get-agentclj

(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.
sourceraw docstring

get-memory-storeclj

(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.
sourceraw docstring

get-sessionclj

(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.
sourceraw docstring

get-skillclj

(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.
sourceraw docstring

list-agentsclj

(list-agents client)

List agents (pages followed) as a vector of maps.

List agents (pages followed) as a vector of maps.
sourceraw docstring

list-memory-storesclj

(list-memory-stores client)

List memory stores (pages followed) as a vector of maps.

List memory stores (pages followed) as a vector of maps.
sourceraw docstring

list-sessionsclj

(list-sessions client)

List sessions (pages followed) as a vector of maps.

List sessions (pages followed) as a vector of maps.
sourceraw docstring

list-skillsclj

(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`.
sourceraw docstring

update-agentclj

(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.
sourceraw docstring

update-memory-storeclj

(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.
sourceraw docstring

update-sessionclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close