TokenUsage

The tokens used in a message API inference call.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The number of input tokens read from the cache for the request.

Link copied to clipboard

The number of input tokens written to the cache for the request.

Link copied to clipboard

The number of tokens sent in the request to the model.

Link copied to clipboard

The number of tokens that the model generated for the request.

Link copied to clipboard

The total of input tokens and tokens generated by the model.

Functions

Link copied to clipboard
inline fun copy(block: TokenUsage.Builder.() -> Unit = {}): TokenUsage
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String