register method

void register(
  1. ToolDefinition tool,
  2. ToolRunner executor
)

Register tool and the executor that runs it.

RunAnywhere.llm.tools.register(weatherTool, (args) async => {'c': 21});

Implementation

void register(ToolDefinition tool, ToolRunner executor) =>
    RunAnywhereTools.shared.registerTool(tool, executor);