Class Choice
java.lang.Object
nl.dannyj.mistral.models.completion.Choice
Represents a choice in a chat completion. A choice contains the message that was generated and the reason for the completion to finish.
-
Constructor Details
-
Choice
-
Choice
public Choice()
-
-
Method Details
-
getIndex
public int getIndex()The index of the choice. Starts at 0.- Returns:
- the index of the choice
-
getMessage
The message that was generated.- Returns:
- the message that was generated
-
getFinishReason
Reason for the completion to finish.- Returns:
- the reason for the completion to finish
-
getLogProbs
-
toString
-