Class TokenUsage (0.13.5)

TokenUsage(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Overall token usage tracking for the response.

Attributes

Name Description
input_token_count int
The total number of input tokens used in this request.
output_token_count int
The total number of output tokens used in this request.