Tool constructor

const Tool({
  1. required String name,
  2. required String description,
  3. required Map<String, Object?> schema,
  4. required Future<String> run(
    1. Map<String, Object?> input
    ),
})

Creates a tool.

Implementation

const Tool({
  required this.name,
  required this.description,
  required this.schema,
  required this.run,
});