From f16142bc74a36c0fc7ef4a22abaf0d3250ef233f Mon Sep 17 00:00:00 2001 From: Annie Luc Date: Wed, 17 Dec 2025 18:07:57 -0800 Subject: [PATCH] chore: Rename total_reasoning_tokens to total_thought_tokens. PiperOrigin-RevId: 845992521 --- google/genai/_interactions/types/usage.py | 2 +- google/genai/_interactions/types/usage_param.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google/genai/_interactions/types/usage.py b/google/genai/_interactions/types/usage.py index 5bfeafd10..06b1ab9fb 100644 --- a/google/genai/_interactions/types/usage.py +++ b/google/genai/_interactions/types/usage.py @@ -93,7 +93,7 @@ class Usage(BaseModel): total_output_tokens: Optional[int] = None """Total number of tokens across all the generated responses.""" - total_reasoning_tokens: Optional[int] = None + total_thought_tokens: Optional[int] = None """Number of tokens of thoughts for thinking models.""" total_tokens: Optional[int] = None diff --git a/google/genai/_interactions/types/usage_param.py b/google/genai/_interactions/types/usage_param.py index 355c4d508..f18d07457 100644 --- a/google/genai/_interactions/types/usage_param.py +++ b/google/genai/_interactions/types/usage_param.py @@ -93,7 +93,7 @@ class UsageParam(TypedDict, total=False): total_output_tokens: int """Total number of tokens across all the generated responses.""" - total_reasoning_tokens: int + total_thought_tokens: int """Number of tokens of thoughts for thinking models.""" total_tokens: int