MCPcopy
hub / github.com/Effect-TS/effect / toJSON

Function toJSON

packages/ai/ai/src/Toolkit.ts:370–375  ·  view source on GitHub ↗
(this: Toolkit<any>)

Source from the content-addressed store, hash-verified

368 })
369 },
370 toJSON(this: Toolkit<any>): unknown {
371 return {
372 _id: "@effect/ai/Toolkit",
373 tools: Array.from(Object.values(this.tools)).map((tool) => (tool as Tool.Any).name)
374 }
375 },
376 pipe() {
377 return pipeArguments(this, arguments)
378 }

Callers

nothing calls this directly

Calls 2

mapMethod · 0.65
valuesMethod · 0.45

Tested by

no test coverage detected