GroqToolParameter constructor

GroqToolParameter({
  1. required String parameterName,
  2. required String parameterDescription,
  3. required GroqToolParameterType parameterType,
  4. required bool isRequired,
  5. List<String> allowedValues = const [],
})

Creates a new parameter definition for a Groq tool.

parameterName: The name of the parameter. parameterDescription: A description of what the parameter does. parameterType: The type of data this parameter accepts. isRequired: Whether this parameter must be provided. allowedValues: If provided, restricts the parameter to these values.

Implementation

GroqToolParameter({
  required this.parameterName,
  required this.parameterDescription,
  required this.parameterType,
  required this.isRequired,
  this.allowedValues = const [],
});