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