ToolCallHandler typedef

ToolCallHandler = Future<Map<String, dynamic>> Function(Map<String, dynamic> input)

A function that handles tool calls by processing input parameters and returning a result.

input - A map containing the parameters passed to the tool. Returns a Future that resolves to a map of result values, or null if no result.

Implementation

typedef ToolCallHandler =
    Future<Map<String, dynamic>> Function(Map<String, dynamic> input);