Class PicoLLMCompletion.Usage

  • Enclosing class:
    PicoLLMCompletion

    public static class PicoLLMCompletion.Usage
    extends java.lang.Object
    Represents 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
      int getCompletionTokens()
      Getter for the number of tokens in the completion.
      int getPromptTokens()
      Getter for the number of tokens in the prompt.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 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.