Package: @effect/ai-anthropic
Module: AnthropicClient
Creates an Anthropic client service with the given options.
When to use
Use when you have explicit configuration values and need an Effect that
constructs the Anthropic client service, rather than providing it as a Layer.
Details
The client handles API key authentication via the x-api-key header, API versioning via the anthropic-version
header, error mapping to the unified AiError type, and request/response transformations via AnthropicConfig. It
requires an HttpClient in the context.
See
layer for providing the client as a Layer from explicit optionslayerConfig for providing the client as a Layer with Config-based settingsSignature
declare const make: (options: Options) => Effect.Effect<Service, never, HttpClient.HttpClient>
Since v4.0.0