effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicClient

AnthropicClient.layer

Creates a layer for the Anthropic client with the given options.

When to use

Use when you already have explicit Options values, such as an API key or custom API URL, and want to provide AnthropicClient as a Layer.

See

Signature

declare const layer: (options: Options) => Layer.Layer<AnthropicClient, never, HttpClient.HttpClient>

Source

Since v4.0.0