Liking cljdoc? Tell your friends :D
Clojure only.

anthropic.beta

Clojure wrappers over the beta agents-platform APIs of the official Anthropic Java SDK: skills, memory stores, agents, sessions, deployments, deployment runs, environments, vaults, user profiles, and webhooks.

These wrap beta endpoints that Anthropic may change. 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, sessions, deployments,
deployment runs, environments, vaults, user profiles, and webhooks.

These wrap beta endpoints that Anthropic may change. Errors follow
`anthropic.core`'s contract: API/IO failures are ex-info keyed
`:anthropic/error` with the SDK exception as cause.
raw docstring

ack-environment-workclj

(ack-environment-work client environment-id work-id)
source

add-session-resourceclj

(add-session-resource client session-id req)

Add a file resource to a session. Resource responses include GitHub :checkout and memory-store :access, :description, :instructions, and :name when returned by the SDK.

Add a file resource to a session. Resource responses include GitHub
`:checkout` and memory-store `:access`, `:description`, `:instructions`,
and `:name` when returned by the SDK.
sourceraw docstring

archive-agentclj

(archive-agent client agent-id)

Archive an agent by id. Returns the archived agent map, including :multiagent when present.

Archive an agent by id. Returns the archived agent map, including
`:multiagent` when present.
sourceraw docstring

archive-deploymentclj

(archive-deployment client deployment-id)

Archive a deployment by id. Returns the deployment map.

Archive a deployment by id. Returns the deployment map.
sourceraw docstring

archive-dreamclj

(archive-dream client dream-id)
source

archive-environmentclj

(archive-environment client environment-id)

Archive an environment by id. Returns the environment map.

Archive an environment by id. Returns the environment 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 with complete resource and agent tool maps.

Archive a session by id. Returns the archived session map with complete
resource and agent tool maps.
sourceraw docstring

archive-session-threadclj

(archive-session-thread client session-id thread-id)

Archive a session thread by session id and thread id.

Archive a session thread by session id and thread id.
sourceraw docstring

archive-tunnelclj

(archive-tunnel client tunnel-id)
source

archive-tunnel-certificateclj

(archive-tunnel-certificate client tunnel-id certificate-id)
source

archive-vaultclj

(archive-vault client vault-id)

Archive a vault by id. Returns the vault map.

Archive a vault by id. Returns the vault map.
sourceraw docstring

archive-vault-credentialclj

(archive-vault-credential client vault-id credential-id)
source

cancel-dreamclj

(cancel-dream client dream-id)
source

create-agentclj

(create-agent client req)

Create a managed agent: :name and :model (required), :system, :description, :metadata, :skills, :mcp-servers, :tools, and :multiagent, :betas, :inference-geo, and :speed when using model config. Returns the agent as a map (:id, :name, :model, :version, :system, :description, :skills, :mcp-servers, :tools, :multiagent, :created-at, :updated-at). Tool maps include custom input-schema :properties, and tool config :permission-policy values.

Create a managed agent: `:name` and `:model` (required), `:system`,
`:description`, `:metadata`, `:skills`, `:mcp-servers`, `:tools`, and
`:multiagent`, `:betas`, `:inference-geo`, and `:speed` when using model config.
Returns the agent as a map (`:id`, `:name`, `:model`, `:version`,
`:system`, `:description`, `:skills`, `:mcp-servers`, `:tools`, `:multiagent`,
`:created-at`, `:updated-at`). Tool maps include custom input-schema
`:properties`, and tool config `:permission-policy` values.
sourceraw docstring

create-deploymentclj

(create-deployment client req)

Create a deployment. Required: :name, :agent, :environment-id, and :initial-events (event maps). Optional: :description, :metadata, :vault-ids, :resources (including GitHub :checkout and memory-store :access and :instructions), :schedule, :budget, and :betas. Budget uses the {:max-list-cost {:amount '...' :currency :usd} :type :limit} shape. Returns the deployment map.

Create a deployment. Required: `:name`, `:agent`, `:environment-id`, and
`:initial-events` (event maps). Optional: `:description`,
`:metadata`, `:vault-ids`, `:resources` (including GitHub `:checkout` and
memory-store `:access` and `:instructions`), `:schedule`, `:budget`, and `:betas`. Budget uses the
`{:max-list-cost {:amount '...' :currency :usd} :type :limit}` shape.
Returns the deployment map.
sourceraw docstring

create-dreamclj

(create-dream client req)
source

create-enrollment-urlclj

(create-enrollment-url client user-profile-id)

Create an enrollment URL for a user profile. Returns {:url ... :expires-at ...}.

Create an enrollment URL for a user profile. Returns `{:url ...
:expires-at ...}`.
sourceraw docstring

create-environmentclj

(create-environment client req)

Create an environment: :name (required), :description, :metadata, :config, :scope, and :betas. Returns the environment map.

Create an environment: `:name` (required), `:description`, `:metadata`,
`:config`, `:scope`, and `:betas`. Returns the environment map.
sourceraw docstring

create-memoryclj

(create-memory client memory-store-id req)

Create a memory in memory-store-id: :path (required), :content, and :view. Returns the memory map.

Create a memory in `memory-store-id`: `:path` (required), `:content`,
and `:view`. Returns the memory map.
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, :metadata, and :budget shaped as {:max-list-cost {:amount '...' :currency :usd} :type :limit}. Optional :resources, :vault-ids, :betas, and per-session agent overrides via :agent with :mcp-servers and :tools. Returns the session as a map (:id, :status, :title, :environment-id, :created-at, :updated-at, :budget, and :usage). Resource maps may include GitHub :checkout and memory-store :access, :description, :instructions, and :name. Session agent tool maps match agent tool maps, including custom input-schema :properties and config :permission-policy.

Create a session for `:agent` (an agent id, required), with optional
`:title`, `:environment-id`, `:metadata`, and `:budget` shaped as
`{:max-list-cost {:amount '...' :currency :usd} :type :limit}`. Optional
`:resources`, `:vault-ids`, `:betas`, and per-session agent overrides
via `:agent` with `:mcp-servers` and `:tools`. Returns the
session as a map (`:id`, `:status`, `:title`, `:environment-id`,
`:created-at`, `:updated-at`, `:budget`, and `:usage`). Resource maps may
include GitHub `:checkout` and memory-store `:access`, `:description`,
`:instructions`, and `:name`. Session agent tool maps match agent tool maps,
including custom input-schema `:properties` and config `:permission-policy`.
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

create-skill-versionclj

(create-skill-version client skill-id req)

Create a new skill version for skill-id from :files (paths or java.io.Files). Returns the version as a map.

Create a new skill version for `skill-id` from `:files` (paths or
`java.io.File`s). Returns the version as a map.
sourceraw docstring

create-tunnelclj

(create-tunnel client req)
source

create-tunnel-certificateclj

(create-tunnel-certificate client tunnel-id req)
source

create-user-profileclj

(create-user-profile client req)

Create a user profile with optional :name, :external-id, :metadata, and :relationship (:external, :resold, or :internal). Returns the profile map, including :relationship and :trust-grants.

Create a user profile with optional `:name`, `:external-id`, `:metadata`,
and `:relationship` (`:external`, `:resold`, or `:internal`). Returns the
profile map, including `:relationship` and `:trust-grants`.
sourceraw docstring

create-vaultclj

(create-vault client req)

Create a vault: :display-name (required), :metadata, and :betas. Credentials are not wrapped yet. Returns the vault map.

Create a vault: `:display-name` (required), `:metadata`, and `:betas`. Credentials are
not wrapped yet. Returns the vault map.
sourceraw docstring

create-vault-credentialclj

(create-vault-credential client vault-id req)
source

delete-environmentclj

(delete-environment client environment-id)

Delete an environment by id. Returns {:id ... :deleted true}.

Delete an environment by id. Returns `{:id ... :deleted true}`.
sourceraw docstring

delete-memoryclj

(delete-memory client memory-store-id memory-id)
(delete-memory client memory-store-id memory-id opts)

Delete a memory. opts may include :expected-content-sha256.

Delete a memory. `opts` may include `:expected-content-sha256`.
sourceraw docstring

delete-memory-storeclj

(delete-memory-store client memory-store-id)

Delete a memory store by id. Returns {:id ... :deleted true :type ...}.

Delete a memory store by id. Returns `{:id ... :deleted true :type ...}`.
sourceraw docstring

delete-sessionclj

(delete-session client session-id)

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

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

delete-session-resourceclj

(delete-session-resource client session-id resource-id)
source

delete-skillclj

(delete-skill client skill-id)

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

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

delete-skill-versionclj

(delete-skill-version client skill-id version)

Delete a skill version. Returns {:id ... :deleted true :type ...}.

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

delete-vaultclj

(delete-vault client vault-id)

Delete a vault by id. Returns {:id ... :deleted true :type ...}.

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

delete-vault-credentialclj

(delete-vault-credential client vault-id credential-id)
source

download-skill-versionclj

(download-skill-version client skill-id version)

Download a skill version archive. Returns the response body as a byte array.

Download a skill version archive. Returns the response body as a byte array.
sourceraw docstring

environment-work-statsclj

(environment-work-stats client environment-id)
source

get-agentclj

(get-agent client agent-id)

Retrieve an agent by id, as a map like create-agent's return, including :multiagent when present. Tool maps include custom input-schema :properties and tool config :permission-policy values.

Retrieve an agent by id, as a map like `create-agent`'s return, including
`:multiagent` when present. Tool maps include custom input-schema
`:properties` and tool config `:permission-policy` values.
sourceraw docstring

get-beta-modelclj

(get-beta-model client model-id)
(get-beta-model client model-id opts)

Retrieve one beta model's info by id as a map shaped like list-beta-models' entries.

Retrieve one beta model's info by id as a map shaped like `list-beta-models`' entries.
sourceraw docstring

get-deploymentclj

(get-deployment client deployment-id)

Retrieve a deployment by id.

Retrieve a deployment by id.
sourceraw docstring

get-deployment-runclj

(get-deployment-run client deployment-run-id)

Retrieve a deployment run by id. Returns a deployment run map, with nested :error and :trigger-context plain-data maps when present.

Retrieve a deployment run by id. Returns a deployment run map, with nested
`:error` and `:trigger-context` plain-data maps when present.
sourceraw docstring

get-dreamclj

(get-dream client dream-id)
source

get-environmentclj

(get-environment client environment-id)

Retrieve an environment by id.

Retrieve an environment by id.
sourceraw docstring

get-environment-workclj

(get-environment-work client environment-id work-id)
source

get-memoryclj

(get-memory client memory-store-id memory-id)

Retrieve a memory by id.

Retrieve a memory by id.
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-memory-versionclj

(get-memory-version client memory-store-id memory-version-id)
(get-memory-version client memory-store-id memory-version-id opts)

Retrieve one memory version. opts may include :view.

Retrieve one memory version. `opts` may include `:view`.
sourceraw docstring

get-sessionclj

(get-session client session-id)

Retrieve a session by id, as a map like create-session's return, including resource GitHub :checkout, memory-store fields, and complete agent tool maps.

Retrieve a session by id, as a map like `create-session`'s return, including
resource GitHub `:checkout`, memory-store fields, and complete agent tool maps.
sourceraw docstring

get-session-resourceclj

(get-session-resource client session-id resource-id)

Retrieve a session resource, including GitHub :checkout and all returned memory-store fields.

Retrieve a session resource, including GitHub `:checkout` and all returned
memory-store fields.
sourceraw docstring

get-session-threadclj

(get-session-thread client session-id thread-id)

Retrieve a session thread by session id and thread id.

Retrieve a session thread by session id and thread id.
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

get-skill-versionclj

(get-skill-version client skill-id version)

Retrieve one skill version.

Retrieve one skill version.
sourceraw docstring

get-tunnelclj

(get-tunnel client tunnel-id)
source

get-tunnel-certificateclj

(get-tunnel-certificate client tunnel-id certificate-id)
source

get-user-profileclj

(get-user-profile client user-profile-id)

Retrieve a user profile by id.

Retrieve a user profile by id.
sourceraw docstring

get-vaultclj

(get-vault client vault-id)

Retrieve a vault by id.

Retrieve a vault by id.
sourceraw docstring

get-vault-credentialclj

(get-vault-credential client vault-id credential-id)
source

heartbeat-environment-workclj

(heartbeat-environment-work client environment-id work-id)
(heartbeat-environment-work client environment-id work-id opts)
source

list-agent-versionsclj

(list-agent-versions client agent-id opts)

List an agent's versions (pages followed) as agent maps.

List an agent's versions (pages followed) as agent maps.
sourceraw docstring

list-agentsclj

(list-agents client)
(list-agents client opts)

List agents with optional :created-at-gte, :created-at-lte, :include-archived, :limit, :page, and :betas.

List agents with optional `:created-at-gte`, `:created-at-lte`,
`:include-archived`, `:limit`, `:page`, and `:betas`.
sourceraw docstring

list-beta-modelsclj

(list-beta-models client)
(list-beta-models client opts)

List beta models as maps, newest first. Optional opts accepts :limit, :before-id, :after-id, and free-form string or keyword :betas. Each map includes the stable model keys plus :allowed-fallback-models and :type when the API reports them. Pages are followed automatically.

List beta models as maps, newest first. Optional `opts` accepts `:limit`,
`:before-id`, `:after-id`, and free-form string or keyword `:betas`. Each map
includes the stable model keys plus `:allowed-fallback-models` and `:type`
when the API reports them. Pages are followed automatically.
sourceraw docstring

list-deployment-runsclj

(list-deployment-runs client)
(list-deployment-runs client opts)

List deployment runs with optional timestamps, :deployment-id, :has-error, :limit, :page, :trigger-type, and :betas. Returns deployment run maps, with nested :error and :trigger-context plain-data maps when present.

List deployment runs with optional timestamps, `:deployment-id`,
`:has-error`, `:limit`, `:page`, `:trigger-type`, and `:betas`. Returns
deployment run maps, with nested `:error` and `:trigger-context` plain-data
maps when present.
sourceraw docstring

list-deploymentsclj

(list-deployments client)
(list-deployments client opts)

List deployments with optional :agent-id, timestamps, :include-archived, :limit, :page, :status, and :betas.

List deployments with optional `:agent-id`, timestamps, `:include-archived`,
`:limit`, `:page`, `:status`, and `:betas`.
sourceraw docstring

list-dreamsclj

(list-dreams client)
(list-dreams client opts)

List dreams with optional timestamp filters, :include-archived, :limit, :page, :statuses, and :betas.

List dreams with optional timestamp filters, `:include-archived`, `:limit`,
`:page`, `:statuses`, and `:betas`.
sourceraw docstring

list-environment-workclj

(list-environment-work client environment-id opts)
source

list-environmentsclj

(list-environments client)
(list-environments client opts)

List environments with optional :include-archived, :limit, :page, and :betas.

List environments with optional `:include-archived`, `:limit`, `:page`,
and `:betas`.
sourceraw docstring

list-memoriesclj

(list-memories client memory-store-id)
(list-memories client memory-store-id opts)

List memories (pages followed) for a memory store.

List memories (pages followed) for a memory store.
sourceraw docstring

list-memory-storesclj

(list-memory-stores client)
(list-memory-stores client opts)

List memory stores with optional :created-at-gte, :created-at-lte, :include-archived, :limit, :page, and :betas.

List memory stores with optional `:created-at-gte`, `:created-at-lte`,
`:include-archived`, `:limit`, `:page`, and `:betas`.
sourceraw docstring

list-memory-versionsclj

(list-memory-versions client memory-store-id)
(list-memory-versions client memory-store-id opts)

List memory versions for a memory store. Optional filters include :memory-id, :operation, :view, :limit, and :page.

List memory versions for a memory store. Optional filters include `:memory-id`,
`:operation`, `:view`, `:limit`, and `:page`.
sourceraw docstring

list-session-eventsclj

(list-session-events client session-id)
(list-session-events client session-id opts)

List session events (pages followed) as normalized event maps. Options include :created-at-gt, :created-at-gte, :created-at-lt, :created-at-lte, :limit, :order, :page, :types, and :betas.

List session events (pages followed) as normalized event maps. Options include
`:created-at-gt`, `:created-at-gte`, `:created-at-lt`, `:created-at-lte`, `:limit`,
`:order`, `:page`, `:types`, and `:betas`.
sourceraw docstring

list-session-resourcesclj

(list-session-resources client session-id opts)

List session resources, including GitHub :checkout and all returned memory-store fields.

List session resources, including GitHub `:checkout` and all returned
memory-store fields.
sourceraw docstring

list-session-threadsclj

(list-session-threads client session-id)

List session threads (pages followed) for a session.

List session threads (pages followed) for a session.
sourceraw docstring

list-sessionsclj

(list-sessions client)
(list-sessions client opts)

List sessions with optional :agent-id, :agent-version, timestamp filters, :deployment-id, :include-archived, :limit, :memory-store-id, :order, :page, :statuses, and :betas. Returned resource maps include GitHub :checkout, memory-store fields, and complete agent tool maps.

List sessions with optional `:agent-id`, `:agent-version`, timestamp
filters, `:deployment-id`, `:include-archived`, `:limit`, `:memory-store-id`,
`:order`, `:page`, `:statuses`, and `:betas`. Returned resource maps include
GitHub `:checkout`, memory-store fields, and complete agent tool maps.
sourceraw docstring

list-skill-versionsclj

(list-skill-versions client skill-id)
(list-skill-versions client skill-id opts)

List skill versions with optional :limit, :page, and :betas.

List skill versions with optional `:limit`, `:page`, and `:betas`.
sourceraw docstring

list-skillsclj

(list-skills client)
(list-skills client opts)

List skills with optional :limit, :page, :source, and :betas.

List skills with optional `:limit`, `:page`, `:source`, and `:betas`.
sourceraw docstring

list-thread-eventsclj

(list-thread-events client session-id thread-id opts)

List thread events (pages followed) as normalized event maps.

List thread events (pages followed) as normalized event maps.
sourceraw docstring

list-tunnel-certificatesclj

(list-tunnel-certificates client tunnel-id)
(list-tunnel-certificates client tunnel-id opts)

List tunnel certificates with optional :include-archived, :limit, :page, and :betas.

List tunnel certificates with optional `:include-archived`, `:limit`,
`:page`, and `:betas`.
sourceraw docstring

list-tunnelsclj

(list-tunnels client)
(list-tunnels client opts)

List tunnels with optional :include-archived, :limit, :page, and :betas.

List tunnels with optional `:include-archived`, `:limit`, `:page`, and
`:betas`.
sourceraw docstring

list-user-profilesclj

(list-user-profiles client)
(list-user-profiles client opts)

List user profiles with optional :limit, :order, :page, and :betas.

List user profiles with optional `:limit`, `:order`, `:page`, and `:betas`.
sourceraw docstring

list-vault-credentialsclj

(list-vault-credentials client vault-id)
(list-vault-credentials client vault-id opts)

List vault credentials with optional :include-archived, :limit, :page, and :betas.

List vault credentials with optional `:include-archived`, `:limit`, `:page`,
and `:betas`.
sourceraw docstring

list-vaultsclj

(list-vaults client)
(list-vaults client opts)

List vaults with optional :include-archived, :limit, :page, and :betas.

List vaults with optional `:include-archived`, `:limit`, `:page`, and
`:betas`.
sourceraw docstring

mcp-oauth-validate-vault-credentialclj

(mcp-oauth-validate-vault-credential client vault-id credential-id)
source

pause-deploymentclj

(pause-deployment client deployment-id)

Pause a deployment by id. Returns the deployment map.

Pause a deployment by id. Returns the deployment map.
sourceraw docstring

poll-environment-workclj

(poll-environment-work client environment-id)
(poll-environment-work client environment-id opts)
source

redact-memory-versionclj

(redact-memory-version client memory-store-id memory-version-id)
source

resource-as-fileclj

(resource-as-file r)
source

resource-as-githubclj

(resource-as-github r)
source

resource-as-memory-storeclj

(resource-as-memory-store r)
source

resource-created-atclj

(resource-created-at r)
source

resource-idclj

(resource-id r)
source

resource-is-fileclj

(resource-is-file r)
source

resource-is-githubclj

(resource-is-github r)
source

resource-is-memory-storeclj

(resource-is-memory-store r)
source

resource-mount-pathclj

(resource-mount-path r)
source

resource-updated-atclj

(resource-updated-at r)
source

reveal-tunnel-tokenclj

(reveal-tunnel-token client tunnel-id)
source

rotate-tunnel-tokenclj

(rotate-tunnel-token client tunnel-id)
(rotate-tunnel-token client tunnel-id opts)
source

run-deploymentclj

(run-deployment client deployment-id)

Run a deployment manually by id. Returns the deployment run map, with nested :error and :trigger-context plain-data maps when present.

Run a deployment manually by id. Returns the deployment run map, with nested
`:error` and `:trigger-context` plain-data maps when present.
sourceraw docstring

send-session-eventsclj

(send-session-events client session-id events)

Send a vector of session event maps to session-id. Event maps support {:type :user-message :content ...}, {:type :system-message :content ...}, and {:type :user-define-outcome :description ... :rubric ...}. Returns {:data [...]} maps with common fields and each event variant's typed payload, including user message content, outcome rubric, tool confirmation result, and tool result content.

Send a vector of session event maps to `session-id`. Event maps support
`{:type :user-message :content ...}`, `{:type :system-message :content ...}`,
and `{:type :user-define-outcome :description ... :rubric ...}`. Returns
`{:data [...]}` maps with common fields and each event variant's typed payload,
including user message content, outcome rubric, tool confirmation result, and
tool result content.
sourceraw docstring

stop-environment-workclj

(stop-environment-work client environment-id work-id opts)
source

stream-event-jsonclj

(stream-event-json event)
source

stream-session-eventsclj

(stream-session-events client session-id)
(stream-session-events client session-id opts)
(stream-session-events client session-id opts on-event)

Open an SSE stream of beta session events. Calls on-event with a normalized event map for each event, returns a vector of all event maps, and closes the HTTP stream automatically. Event maps retain raw event fields and use :type keywords such as :agent-message, :agent-thinking, :session-status-running, and :event-delta. :event-deltas may contain :agent-message and :agent-thinking to narrow the delta stream.

Open an SSE stream of beta session events. Calls `on-event` with a normalized
event map for each event, returns a vector of all event maps, and closes the
HTTP stream automatically. Event maps retain raw event fields and use `:type`
keywords such as `:agent-message`, `:agent-thinking`, `:session-status-running`,
and `:event-delta`. `:event-deltas` may contain `:agent-message` and
`:agent-thinking` to narrow the delta stream.
sourceraw docstring

stream-thread-eventsclj

(stream-thread-events client session-id thread-id)
(stream-thread-events client session-id thread-id opts)
(stream-thread-events client session-id thread-id opts on-event)

Open an SSE stream of beta session-thread events. Calls on-event with a normalized event map for each event, returns a vector of all event maps, and closes the HTTP stream automatically. Event maps retain raw event fields and use :type keywords such as :agent-message, :agent-thinking, :session-status-running, and :event-delta. :event-deltas may contain :agent-message and :agent-thinking to narrow the delta stream.

Open an SSE stream of beta session-thread events. Calls `on-event` with a
normalized event map for each event, returns a vector of all event maps, and
closes the HTTP stream automatically. Event maps retain raw event fields and
use `:type` keywords such as `:agent-message`, `:agent-thinking`,
`:session-status-running`, and `:event-delta`. `:event-deltas` may contain
`:agent-message` and `:agent-thinking` to narrow the delta stream.
sourceraw docstring

unpause-deploymentclj

(unpause-deployment client deployment-id)

Unpause a deployment by id. Returns the deployment map.

Unpause a deployment by id. Returns the deployment map.
sourceraw docstring

unwrap-webhookclj

(unwrap-webhook client payload)
(unwrap-webhook client payload opts)

Parse a raw webhook payload into a normalized map. With a second arity, verifies signatures when :headers and :secret are supplied.

Parse a raw webhook payload into a normalized map. With a second arity,
verifies signatures when `:headers` and `:secret` are supplied.
sourceraw docstring

update-agentclj

(update-agent client agent-id changes)

Update an agent. changes may include :version (the current agent version, for optimistic concurrency - see :version in get-agent's return) plus :name, :model, :inference-geo, :system, :description, :metadata, or :multiagent and :betas. Returns the updated agent map, including :multiagent when present. Tool maps include custom input-schema :properties and tool config :permission-policy values.

Update an agent. `changes` may include `:version` (the current agent version,
for optimistic concurrency - see `:version` in `get-agent`'s return) plus
`:name`, `:model`, `:inference-geo`, `:system`, `:description`, `:metadata`, or
`:multiagent` and `:betas`. Returns the updated agent map, including
`:multiagent` when present. Tool maps include custom input-schema
`:properties` and tool config `:permission-policy` values.
sourceraw docstring

update-deploymentclj

(update-deployment client deployment-id changes)

Update a deployment. changes may include :name, :agent, :environment-id, :initial-events, :description, :metadata, :vault-ids, :resources (including GitHub :checkout and memory-store :access and :instructions), :schedule, :budget, or :betas. Returns the updated deployment map.

Update a deployment. `changes` may include `:name`, `:agent`,
`:environment-id`, `:initial-events`, `:description`, `:metadata`,
`:vault-ids`, `:resources` (including GitHub `:checkout` and memory-store
`:access` and `:instructions`), `:schedule`, `:budget`, or `:betas`. Returns the updated deployment map.
sourceraw docstring

update-environmentclj

(update-environment client environment-id changes)

Update an environment's :name, :description, :metadata, :config, or :scope, or :betas.

Update an environment's `:name`, `:description`, `:metadata`, `:config`, or
`:scope`, or `:betas`.
sourceraw docstring

update-environment-workclj

(update-environment-work client environment-id work-id changes)
source

update-memoryclj

(update-memory client memory-store-id memory-id changes)

Update a memory's :path, :content, or :view.

Update a memory's `:path`, `:content`, or `:view`.
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, :metadata, :budget, :agent, :vault-ids, or :betas. Budget uses the {:max-list-cost {:amount '...' :currency :usd} :type :limit} shape. Returns the updated session map with complete resource and agent tool maps.

Update a session's `:title`, `:metadata`, `:budget`, `:agent`, `:vault-ids`,
or `:betas`. Budget uses the `{:max-list-cost {:amount '...' :currency :usd}
:type :limit}` shape. Returns the updated session map with complete resource
and agent tool maps.
sourceraw docstring

update-session-resourceclj

(update-session-resource client session-id resource-id changes)

Update a session resource and return its complete mapped representation, including GitHub :checkout and all returned memory-store fields.

Update a session resource and return its complete mapped representation,
including GitHub `:checkout` and all returned memory-store fields.
sourceraw docstring

update-user-profileclj

(update-user-profile client user-profile-id changes)

Update a user profile's :name, :external-id, :metadata, or :relationship (:external, :resold, or :internal).

Update a user profile's `:name`, `:external-id`, `:metadata`, or
`:relationship` (`:external`, `:resold`, or `:internal`).
sourceraw docstring

update-vaultclj

(update-vault client vault-id changes)

Update a vault's :display-name, :metadata, or :betas.

Update a vault's `:display-name`, `:metadata`, or `:betas`.
sourceraw docstring

update-vault-credentialclj

(update-vault-credential client vault-id credential-id changes)
source

usage-active-secondsclj

(usage-active-seconds u)
source

usage-cache-creationclj

(usage-cache-creation u)
source

usage-cache-read-input-tokensclj

(usage-cache-read-input-tokens u)
source

usage-input-tokensclj

(usage-input-tokens u)
source

usage-list-costclj

(usage-list-cost u)
source

usage-output-tokensclj

(usage-output-tokens u)
source

usage-server-tool-useclj

(usage-server-tool-use u)
source

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