Package: @effect/ai-anthropic
Module: AnthropicLanguageModel
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
make for constructing the language model service effectfullymodel for creating a model service directlySignature
declare const layer: (options: { readonly model: (string & {}) | Model; readonly config?: Omit<typeof Config.Service, "model"> | undefined; }) => Layer.Layer<LanguageModel.LanguageModel, never, AnthropicClient>
Since v4.0.0