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

Function resolveInput

packages/effect/src/unstable/ai/Toolkit.ts:432–440  ·  view source on GitHub ↗
(
  ...tools: Tools
)

Source from the content-addressed store, hash-verified

430 Object.assign(function() {}, Proto, { tools }) as any
431
432const resolveInput = <Tools extends ReadonlyArray<Tool.Any>>(
433 ...tools: Tools
434): Record<string, Tools[number]> => {
435 const output = {} as Record<string, Tools[number]>
436 for (const tool of tools) {
437 InternalRecord.assignProperty(output, tool.name, tool)
438 }
439 return output
440}
441
442/**
443 * An empty toolkit with no tools.

Callers 1

makeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected