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

Function toJSON

packages/effect/src/unstable/ai/Toolkit.ts:421–426  ·  view source on GitHub ↗
(this: Toolkit<any>)

Source from the content-addressed store, hash-verified

419 return Layer.effectContext(this.toHandlers(build))
420 },
421 toJSON(this: Toolkit<any>): unknown {
422 return {
423 _id: "effect/ai/Toolkit",
424 tools: Array.from(Object.values(this.tools)).map((tool) => (tool as Tool.Any).name)
425 }
426 }
427}
428
429const makeProto = <Tools extends Record<string, Tool.Any>>(tools: Tools): Toolkit<Tools> =>

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected