MCPcopy
hub / github.com/anomalyco/opencode / executeTool

Function executeTool

packages/core/test/lib/tool.ts:19–20  ·  view source on GitHub ↗
(registry: ToolRegistry.Interface, input: ToolRegistry.ExecuteInput)

Source from the content-addressed store, hash-verified

17 registry.materialize().pipe(Effect.flatMap((materialized) => materialized.settle(input)))
18
19export const executeTool = (registry: ToolRegistry.Interface, input: ToolRegistry.ExecuteInput) =>
20 settleTool(registry, input).pipe(Effect.map((settlement) => settlement.result))

Calls 1

settleToolFunction · 0.85

Tested by

no test coverage detected