UsageMetadata

class UsageMetadata


Usage metadata about response(s).

Summary

Public constructors

UsageMetadata(
    promptTokenCount: Int,
    candidatesTokenCount: Int?,
    totalTokenCount: Int
)

Public properties

Int?

Number of tokens in the response(s).

Int

Number of tokens in the request.

Int

Total number of tokens.

Public constructors

UsageMetadata

UsageMetadata(
    promptTokenCount: Int,
    candidatesTokenCount: Int?,
    totalTokenCount: Int
)
Parameters
promptTokenCount: Int

Number of tokens in the request.

candidatesTokenCount: Int?

Number of tokens in the response(s).

totalTokenCount: Int

Total number of tokens.

Public properties

candidatesTokenCount

val candidatesTokenCountInt?

Number of tokens in the response(s).

promptTokenCount

val promptTokenCountInt

Number of tokens in the request.

totalTokenCount

val totalTokenCountInt

Total number of tokens.