Package ai.picovoice.picollm
Class PicoLLMCompletion
java.lang.Object
ai.picovoice.picollm.PicoLLMCompletion
Represents a picoLLM completion result.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a generated token within completion and top alternative tokens.static enumRepresents reasons for ending the generation process.static classRepresents a generated token.static classRepresents usage information. -
Constructor Summary
ConstructorsConstructorDescriptionPicoLLMCompletion(PicoLLMCompletion.Usage usage, PicoLLMCompletion.Endpoint endpoint, PicoLLMCompletion.CompletionToken[] completionTokens, String completion) Constructor for the PicoLLMCompletion class. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the completion string.Getter for the generated tokens within completion and top alternative tokens.Getter for the reason for ending the generation process.getUsage()Getter for usage information.
-
Constructor Details
-
PicoLLMCompletion
public PicoLLMCompletion(PicoLLMCompletion.Usage usage, PicoLLMCompletion.Endpoint endpoint, PicoLLMCompletion.CompletionToken[] completionTokens, String completion) Constructor for the PicoLLMCompletion class.- Parameters:
usage- Usage information.endpoint- Reason for ending the generation process.completionTokens- Generated tokens within completion and top alternative tokens.completion- Completion string.
-
-
Method Details
-
getUsage
Getter for usage information.- Returns:
- The usage information.
-
getEndpoint
Getter for the reason for ending the generation process.- Returns:
- The reason for ending the generation process.
-
getCompletionTokens
Getter for the generated tokens within completion and top alternative tokens.- Returns:
- The generated tokens within completion and top alternative tokens.
-
getCompletion
Getter for the completion string.- Returns:
- The completion string.
-