A count of tokens consumed by LLM API calls.
Summary
Functions
Input tokens served from the provider's prompt cache.
Input tokens written to the provider's prompt cache.
A unique identifier for this LLMTokenUsage.
Uncached input tokens sent to the model.
Tokens received from the model, including text and tool calls.
Total tokens consumed, as reported by the provider.
Types
Functions
Input tokens served from the provider's prompt cache.
Input tokens written to the provider's prompt cache.
A unique identifier for this LLMTokenUsage.
Uncached input tokens sent to the model.
Tokens received from the model, including text and tool calls.
Total tokens consumed, as reported by the provider.