Package ai.picovoice.picollm
Class PicoLLMCompletion.Usage
java.lang.Object
ai.picovoice.picollm.PicoLLMCompletion.Usage
- Enclosing class:
- PicoLLMCompletion
Represents usage information.
-
Constructor Summary
ConstructorsConstructorDescriptionUsage(int promptTokens, int completionTokens) Constructor for the Usage class. -
Method Summary
Modifier and TypeMethodDescriptionintGetter for the number of tokens in the completion.intGetter for the number of tokens in the prompt.
-
Constructor Details
-
Usage
public Usage(int promptTokens, int completionTokens) Constructor for the Usage class.- Parameters:
promptTokens- Number of tokens in the prompt.completionTokens- Number of tokens in the completion.
-
-
Method Details
-
getPromptTokens
public int getPromptTokens()Getter for the number of tokens in the prompt.- Returns:
- The number of tokens in the prompt.
-
getCompletionTokens
public int getCompletionTokens()Getter for the number of tokens in the completion.- Returns:
- The number of tokens in the completion.
-