ToolParametersSchema constructor

ToolParametersSchema({
  1. String type = 'object',
  2. required Map<String, ToolParameter> properties,
})

Implementation

ToolParametersSchema({
  this.type = 'object',
  required this.properties,
}) : required = properties.entries
          .where((entry) => entry.value.required)
          .map((entry) => entry.key)
          .toList();