AxAIOpenAIUsage
type AxAIOpenAIUsage = object;Properties
completion_tokens
completion_tokens: number;completion_tokens_details?
optional completion_tokens_details: object;reasoning_tokens?
optional reasoning_tokens: number;prompt_tokens
prompt_tokens: number;prompt_tokens_details?
optional prompt_tokens_details: object;cache_write_tokens?
optional cache_write_tokens: number;Prompt tokens written to the cache on this request, billed at a premium
over uncached input. Sits alongside cached_tokens, and prompt_tokens
includes both — see usage.ts, which subtracts them back out.
cached_tokens?
optional cached_tokens: number;total_tokens
total_tokens: number;