Package ai.picovoice.picollm
Class PicoLLMCompletion.Usage
- java.lang.Object
-
- ai.picovoice.picollm.PicoLLMCompletion.Usage
-
- Enclosing class:
- PicoLLMCompletion
public static class PicoLLMCompletion.Usage extends java.lang.ObjectRepresents usage information.
-
-
Constructor Summary
Constructors Constructor Description Usage(int promptTokens, int completionTokens)Constructor for the Usage class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCompletionTokens()Getter for the number of tokens in the completion.intgetPromptTokens()Getter for the number of tokens in the prompt.
-
-
-
Method Detail
-
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.
-
-