Class PicoLLMCompletion.Usage

java.lang.Object
ai.picovoice.picollm.PicoLLMCompletion.Usage
Enclosing class:
PicoLLMCompletion

public static class PicoLLMCompletion.Usage extends Object
Represents usage information.
  • 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.