MCPcopy Create free account
hub / github.com/anomalyco/opencode / settle

Function settle

packages/core/src/tool/tool.ts:150–150  ·  view source on GitHub ↗
(tool: AnyTool, call: ToolCall, context: Context)

Source from the content-addressed store, hash-verified

148export const permission = (tool: AnyTool, name: string) => runtimeOf(tool).permission ?? name
149export const definition = (name: string, tool: AnyTool) => runtimeOf(tool).definition(name)
150export const settle = (tool: AnyTool, call: ToolCall, context: Context) => runtimeOf(tool).settle(call, context)
151
152function runtimeOf(tool: AnyTool) {
153 const runtime = runtimes.get(tool)

Callers 3

registry.tsFile · 0.90
background-job.tsFile · 0.50
integration.tsFile · 0.50

Calls 1

runtimeOfFunction · 0.85

Tested by

no test coverage detected