Reference API reference
API reference
Every page documents one part of the public API: its signature, copied from the source, what each parameter means, what it returns, its caveats and an example. To learn the library step by step, start with the docs.
Client#
Messages#
Requests and replies#
Agents#
Errors#
Structured data#
Integrations#
Other APIs#
Everything else
The pages above cover the API you use day to day. Every type, content blocks and stream events included, is in the Scaladoc of each module:
anthropic4s: the Ember client:Anthropic4s,FutureAnthropicanthropic4s-core: the client API, tools, the agent loop, errorsanthropic4s-model: requests, replies, content blocks, stream eventsanthropic4s-schema:Schemaand its derivationanthropic4s-play-json:PlaySchemaanthropic4s-otel4s:OtelTelemetryanthropic4s-testkit:ScriptedModel
Every signature and example on this page is copied, character for character, from the public source of anthropic4s and its Scaladoc. The complete API, every type included, is in the Scaladoc of each module.