Usage
TokenUsage
dataclass
Provider counts. Cached and reasoning tokens are subsets of input and output.
Source code in src/openai_agents/codex/usage.py
Usage
dataclass
Source code in src/openai_agents/codex/usage.py
responses
instance-attribute
One entry per completed model response in this turn, in arrival order.
thread
class-attribute
instance-attribute
thread: TokenUsage | None = None
All reported tokens in the conversation through the completed turn.