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

Method toLayer

packages/effect/src/ai/Toolkit.ts:104–104  ·  view source on GitHub ↗

* Converts a toolkit into a `Layer` containing handlers for each tool in the * toolkit.

(
    /**
     * Handler functions or Effect that produces handlers.
     */
    build: Handlers | Effect.Effect<Handlers, EX, RX>
  )

Source from the content-addressed store, hash-verified

102 * toolkit.
103 */
104 toLayer<Handlers extends HandlersFrom<Tools>, EX = never, RX = never>(
105 /**
106 * Handler functions or Effect that produces handlers.
107 */

Calls

no outgoing calls

Tested by 13

HoldLayerFunction · 0.52
makeClientFunction · 0.52
runFunction · 0.52
provideFunction · 0.52
makeFunction · 0.52
badgeFunction · 0.52
outletFunction · 0.52
callFunction · 0.52
layerFunction · 0.52
ReaperProbeShardingFunction · 0.52
FencedEntityLayerFunction · 0.52
ClosingTargetLayerFunction · 0.52