GroqToolParameter class

Represents a parameter for a Groq tool.

Each parameter has a name, description, type, and optional constraints.

Constructors

GroqToolParameter({required String parameterName, required String parameterDescription, required GroqToolParameterType parameterType, required bool isRequired, List<String> allowedValues = const []})
Creates a new parameter definition for a Groq tool.

Properties

allowedValues List<String>
A list of allowed values for this parameter.
final
hashCode int
The hash code for this object.
no setterinherited
isRequired bool
Whether this parameter must be provided when calling the function.
final
parameterDescription String
A description of what the parameter does.
final
parameterName String
The name of the parameter.
final
parameterType GroqToolParameterType
The data type of the parameter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited