CountTokensResponse

public final class CountTokensResponse


Represents a response measuring model input.

Summary

Public fields

final int

A count of the characters that are billable in the input

final int

A count of the tokens in the input

Public constructors

CountTokensResponse(int totalTokens, int totalBillableCharacters)

Public methods

final int
final int

Public fields

totalBillableCharacters

public final int totalBillableCharacters

A count of the characters that are billable in the input

totalTokens

public final int totalTokens

A count of the tokens in the input

Public constructors

CountTokensResponse

public CountTokensResponse(int totalTokens, int totalBillableCharacters)

Public methods

component1

public final int component1()

component2

public final int component2()