AnthropicUsage

data class AnthropicUsage(val inputTokens: Int? = null, val outputTokens: Int? = null)(source)

Represents the usage statistics of the Anthropic LLM API.

Constructors

Link copied to clipboard
constructor(inputTokens: Int? = null, outputTokens: Int? = null)

Properties

Link copied to clipboard
val inputTokens: Int? = null

The number of tokens sent as input to the LLM. Optional in streaming responses.

Link copied to clipboard
val outputTokens: Int? = null

The number of tokens received as output from the LLM. Optional in streaming responses.