All notable changes to this project are documented here. This change log follows the conventions of keepachangelog.com.
:citations parsing (char / page / content-block / web-search /
search-result locations), each with :cited-text.beta.messages, MCP connectors, file_id content, webhooks, the Managed
Agents platform) is a separate parallel surface and is intentionally out of
scope - use the official Java SDK for those.:type (latest version of each): :web-search,
:web-fetch, :code-execution, :bash, :text-editor, :memory, with
config (domains, max-uses, user-location, allowed-callers, max-characters,
max-content-tokens). ->tool now returns a ToolUnion.:server-tool-use and the server-tool result blocks
(web-search/web-fetch/code-execution/bash/text-editor/tool-search/
container-upload) plus :redacted-thinking.:image (base64/url) and :document (base64/url/plain-text
PDF, with :title/:context) for vision and document input.:cache-control on any content block (ephemeral, optional :ttl) for
prompt-cache breakpoints.upload-file, get-file, list-files, download-file,
delete-file.create-message accepts :response-format (a JSON Schema
map) and :effort (:low…:max); responses with a format carry :parsed.list-models (paged) and get-model.create-batch, get-batch, list-batches, cancel-batch,
delete-batch, and batch-results (succeeded results carry the parsed
:message). Batch requests reuse the create-message request shape.metosin/jsonista for decoding structured-output JSON.count-tokens - count a request's input tokens without sending it.stream - surfaces every normalized stream event (message and content-block
lifecycle, plus text/thinking/input-json/signature deltas), returning the full
text. stream-text is now a thin convenience over it.create-message request controls: :temperature, :top-p, :top-k,
:stop-sequences, :tool-choice, :thinking, :metadata, :service-tier.:usage now includes :cache-creation-input-tokens /
:cache-read-input-tokens when the response reports prompt caching.Initial release: an idiomatic Clojure wrapper over the official Anthropic Java
SDK (com.anthropic/anthropic-java 2.40.1).
anthropic.core/client - construct a client (env ANTHROPIC_API_KEY or
explicit :api-key).anthropic.core/create-message - Clojure request map to response map, with
:model/:max-tokens/:system/:messages/:tools, parsed content blocks
(text, thinking, tool_use), stop-reason, and usage.anthropic.core/stream-text - stream a request, invoking a callback per text
delta and returning the full text.tool_use blocks (input keywordized),
and :tool-result / assistant-echo block content to complete the agentic loop.Can you improve this documentation?Edit on GitHub
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 |