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

Method toLayer

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

96 * toolkit.
97 */
98 toLayer<Handlers extends HandlersFrom<Tools>, EX = never, RX = never>(
99 /**
100 * Handler functions or Effect that produces handlers.
101 */

Calls

no outgoing calls

Tested by

no test coverage detected