effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicLanguageModel

AnthropicLanguageModel.make

Creates an Anthropic LanguageModel service from a model identifier and optional request defaults.

When to use

Use when you need to construct a LanguageModel.Service value backed by AnthropicClient inside an Effect.

Details

The returned effect requires AnthropicClient. Request defaults from the config option are merged with any Config service in the context, with context values taking precedence.

See

Signature

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

Source

Since v4.0.0