Number of tokens in the completion
Number of tokens in the prompt
Optionalprompt_Optional breakdown of the prompt token count. Azure (OpenAI-compatible) reports cached
input tokens here when prompt caching is active. prompt_tokens INCLUDES these cached
tokens, so adapters must subtract cached_tokens to get the net-new (uncached) prompt count.
Optionalcached_tokens?: numberNumber of prompt tokens served from the provider's prompt cache (a cache read/hit).
Total number of tokens used
Azure Token Usage information