TokenUsage¶
Structure Class¶
TokenUsage
dataclass
¶
The token consumption statistics for language model operations during evaluation. Provides detailed breakdown of input, output, and total tokens used for cost tracking and performance monitoring.
Attributes¶
input_tokens
class-attribute
instance-attribute
¶
input_tokens: int | None = None
The number of tokens consumed for input processing during the evaluation. Includes tokens from the evaluation prompt, agent traces, and any additional context provided to the evaluator model.