effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicLanguageModel

AnthropicLanguageModel.layer

Creates a layer for the Anthropic language model.

When to use

Use when composing application layers and you want Anthropic to satisfy LanguageModel.LanguageModel while supplying AnthropicClient from another layer.

See

Signature

declare const layer: (options: { readonly model: (string & {}) | Model; readonly config?: Omit<typeof Config.Service, "model"> | undefined; }) => Layer.Layer<LanguageModel.LanguageModel, never, AnthropicClient>

Source

Since v4.0.0