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

Method toLayer

packages/ai/ai/src/Toolkit.ts:146–146  ·  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

144 * toolkit.
145 */
146 toLayer<Handlers extends HandlersFrom<Tools>, EX = never, RX = never>(
147 /**
148 * Handler functions or Effect that produces handlers.
149 */

Callers 8

rpc-schemas.tsFile · 0.65
rpc-schemas.tsFile · 0.65
cluster.tsFile · 0.65
Tool.test.tsFile · 0.65
layerHandlersFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected