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

Function layer

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

Source from the content-addressed store, hash-verified

243 * @category Layers
244 */
245export const layer = (options: {
246 readonly model: (string & {}) | Model
247 readonly config?: Omit<Config.Service, "model">
248}): Layer.Layer<LanguageModel.LanguageModel, never, GoogleClient> =>
249 Layer.effect(LanguageModel.LanguageModel, make({ model: options.model, config: options.config }))
250
251// =============================================================================
252// Prompt Conversion

Callers 1

modelFunction · 0.70

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…