GroqResponse class

Available extensions

Constructors

GroqResponse({required String id, required List<GroqChoice> choices, required DateTime createdAt})
Creates a GroqResponse with the given id, choices and createdAt
The id is the identifier of the response
The choices are the possible responses to the prompt
The createdAt is the date and time when the response was created \

Properties

choices List<GroqChoice>
The possible responses to the prompt
Each choice contains a message and a finish reason
The choices are set in the GroqChatSettings of your current groqChat \
final
createdAt DateTime
final
hashCode int
The hash code for this object.
no setterinherited
id String
The identifier of the response
It is given by the Groq API \
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
toJson() Map<String, dynamic>

Available on GroqResponse, provided by the GroqResponseExtension extension

toString() String
A string representation of this object.
inherited

Operators

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