Skip to main content

Module usage

Module usage 

Source
Expand description

Token usage and cost tracking types.

Normalizes usage across different API response formats (OpenAI, Anthropic, Codex) into a single structure.

Structs§

Cost
Usage

Functions§

normalize_usage
Normalize raw API usage JSON into our unified Usage struct.