Package ai.picovoice.picollm
Class PicoLLMCompletion.CompletionToken
java.lang.Object
ai.picovoice.picollm.PicoLLMCompletion.CompletionToken
- Enclosing class:
- PicoLLMCompletion
Represents a generated token within completion and top alternative tokens.
-
Constructor Summary
ConstructorsConstructorDescriptionCompletionToken(PicoLLMCompletion.Token token, PicoLLMCompletion.Token[] topChoices) Constructor for the CompletionToken class. -
Method Summary
Modifier and TypeMethodDescriptiongetToken()Getter for the token.Getter for the top alternative tokens.
-
Constructor Details
-
CompletionToken
Constructor for the CompletionToken class.- Parameters:
token- The token.topChoices- Top alternative tokens.
-
-
Method Details
-
getToken
Getter for the token.- Returns:
- The token.
-
getTopChoices
Getter for the top alternative tokens.- Returns:
- The top alternative tokens.
-