Usage

@Serializable
data class Usage(val promptTokens: Int, val completionTokens: Int, val reasoningTokens: Int? = null, val cacheHitTokens: Int? = null)(source)

Constructors

Link copied to clipboard
constructor(promptTokens: Int, completionTokens: Int, reasoningTokens: Int? = null, cacheHitTokens: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "h")
val cacheHitTokens: Int?
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "c")
val completionTokens: Int
Link copied to clipboard
@SerialName(value = "p")
val promptTokens: Int
Link copied to clipboard
@SerialName(value = "r")
val reasoningTokens: Int?
Link copied to clipboard

Functions

Link copied to clipboard
operator fun plus(other: Usage): Usage