GroqChoice class

Constructors

GroqChoice({required GroqMessage messageData, required String? finishReason})
Creates a GroqChoice with the given messageData and finishReason
The messageData is the message of the choice
The finishReason is the reason why the conversation ended \

Properties

finishReason String?
The reason why the conversation ended
It can be finished or aborted
Example:
final
hashCode int
The hash code for this object.
no setterinherited
message String
Returns the message of the choice
It is the content of the messageData
Example:
no setter
messageData GroqMessage
The message of the choice
It contains the message and metadata, like role
Example:
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