MCPcopy Create free account
hub / github.com/Effect-TS/effect / toLayer

Function toLayer

packages/effect/src/unstable/ai/Toolkit.ts:415–420  ·  view source on GitHub ↗
(
    this: Toolkit<Record<string, Tool.Any>>,
    build: Record<string, (params: any) => any> | Effect.Effect<Record<string, (params: any) => any>>
  )

Source from the content-addressed store, hash-verified

413 })
414 },
415 toLayer(
416 this: Toolkit<Record<string, Tool.Any>>,
417 build: Record<string, (params: any) => any> | Effect.Effect<Record<string, (params: any) => any>>
418 ) {
419 return Layer.effectContext(this.toHandlers(build))
420 },
421 toJSON(this: Toolkit<any>): unknown {
422 return {
423 _id: "effect/ai/Toolkit",

Callers

nothing calls this directly

Calls 1

toHandlersMethod · 0.65

Tested by

no test coverage detected