MCPcopy Index your code
hub / github.com/Effect-TS/effect / layer

Function layer

packages/ai/anthropic/src/AnthropicLanguageModel.ts:396–400  ·  view source on GitHub ↗
(options: {
  readonly model: (string & {}) | Model
  readonly config?: Omit<Config.Service, "model">
})

Source from the content-addressed store, hash-verified

394 * @category Layers
395 */
396export const layer = (options: {
397 readonly model: (string & {}) | Model
398 readonly config?: Omit<Config.Service, "model">
399}): Layer.Layer<LanguageModel.LanguageModel, never, AnthropicClient> =>
400 Layer.effect(LanguageModel.LanguageModel, make({ model: options.model, config: options.config }))
401
402/**
403 * @since 1.0.0

Callers 2

modelFunction · 0.70
layerWithTokenizerFunction · 0.70

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected