Skip to content

Commit f16142b

Browse files
Annhiluccopybara-github
authored andcommitted
chore: Rename total_reasoning_tokens to total_thought_tokens.
PiperOrigin-RevId: 845992521
1 parent 0de263e commit f16142b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/genai/_interactions/types/usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Usage(BaseModel):
9393
total_output_tokens: Optional[int] = None
9494
"""Total number of tokens across all the generated responses."""
9595

96-
total_reasoning_tokens: Optional[int] = None
96+
total_thought_tokens: Optional[int] = None
9797
"""Number of tokens of thoughts for thinking models."""
9898

9999
total_tokens: Optional[int] = None

google/genai/_interactions/types/usage_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class UsageParam(TypedDict, total=False):
9393
total_output_tokens: int
9494
"""Total number of tokens across all the generated responses."""
9595

96-
total_reasoning_tokens: int
96+
total_thought_tokens: int
9797
"""Number of tokens of thoughts for thinking models."""
9898

9999
total_tokens: int

0 commit comments

Comments
 (0)