Interface BillableTokenUsage.Builder

  • Method Details

    • prefillTokenCount

      BillableTokenUsage.Builder prefillTokenCount(Long prefillTokenCount)

      The number of prefill tokens consumed.

      Parameters:
      prefillTokenCount - The number of prefill tokens consumed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleTokenCount

      BillableTokenUsage.Builder sampleTokenCount(Long sampleTokenCount)

      The number of sample tokens consumed.

      Parameters:
      sampleTokenCount - The number of sample tokens consumed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trainingTokenCount

      BillableTokenUsage.Builder trainingTokenCount(Long trainingTokenCount)

      The number of training tokens consumed.

      Parameters:
      trainingTokenCount - The number of training tokens consumed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.