CountTokensResponse

class CountTokensResponse


Represents a response measuring model input.

Summary

Public constructors

CountTokensResponse(totalTokens: Int, totalBillableCharacters: Int)

Public functions

operator Int
operator Int

Public properties

Int

A count of the characters that are billable in the input

Int

A count of the tokens in the input

Public constructors

CountTokensResponse

CountTokensResponse(totalTokens: Int, totalBillableCharacters: Int)

Public functions

component1

operator fun component1(): Int

component2

operator fun component2(): Int

Public properties

totalBillableCharacters

val totalBillableCharactersInt

A count of the characters that are billable in the input

totalTokens

val totalTokensInt

A count of the tokens in the input