execute method

Future execute(
  1. String name,
  2. Map<String, dynamic> args
)

Implementation

Future<dynamic> execute(String name, Map<String, dynamic> args) async {
  final tool = _tools[name];
  if (tool == null) throw ArgumentError('Tool $name not found');
  return await tool.func.execute(args);
}