Tool constructor

const Tool({
  1. String type = 'function',
  2. required FunctionDefinition function,
})

Implementation

const Tool({
  this.type = 'function',
  required this.function,
});