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

Method toHandlers

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

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

(
    build: Handlers | Effect.Effect<Handlers, EX, RX>
  )

Source from the content-addressed store, hash-verified

88 * in the toolkit.
89 */
90 toHandlers<Handlers extends HandlersFrom<Tools>, EX = never, RX = never>(
91 build: Handlers | Effect.Effect<Handlers, EX, RX>
92 ): Effect.Effect<Context.Context<Tool.HandlersFor<Tools>>, EX, RX>
93

Callers 4

toLayerFunction · 0.65
Entity.tsFile · 0.65
entityManager.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected