registerToolExecutor abstract method

void registerToolExecutor(
  1. String toolName,
  2. Future<ToolResult> executor(
    1. ToolCall toolCall
    )
)

Register a tool executor function

toolName - Name of the tool executor - Function that executes the tool

Implementation

void registerToolExecutor(
  String toolName,
  Future<ToolResult> Function(ToolCall toolCall) executor,
);