Skip to content

Commit 4385e16

Browse files
google-genai-botcopybara-github
authored andcommitted
feat: Add minimal and medium thinking levels.
PiperOrigin-RevId: 844978533
1 parent cec3646 commit 4385e16

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

google/genai/types.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,18 +267,14 @@ class PhishBlockThreshold(_common.CaseInSensitiveEnum):
267267

268268

269269
class ThinkingLevel(_common.CaseInSensitiveEnum):
270-
"""The number of thoughts tokens that the model should generate."""
270+
"""The level of thoughts tokens that the model should generate."""
271271

272272
THINKING_LEVEL_UNSPECIFIED = 'THINKING_LEVEL_UNSPECIFIED'
273-
"""Unspecified thinking level."""
273+
"""Default value."""
274274
LOW = 'LOW'
275275
"""Low thinking level."""
276-
MEDIUM = 'MEDIUM'
277-
"""Medium thinking level."""
278276
HIGH = 'HIGH'
279277
"""High thinking level."""
280-
MINIMAL = 'MINIMAL'
281-
"""MINIMAL thinking level."""
282278

283279

284280
class HarmCategory(_common.CaseInSensitiveEnum):
@@ -4613,7 +4609,7 @@ class ThinkingConfig(_common.BaseModel):
46134609
)
46144610
thinking_level: Optional[ThinkingLevel] = Field(
46154611
default=None,
4616-
description="""Optional. The number of thoughts tokens that the model should generate.""",
4612+
description="""Optional. The level of thoughts tokens that the model should generate.""",
46174613
)
46184614

46194615

@@ -4629,7 +4625,7 @@ class ThinkingConfigDict(TypedDict, total=False):
46294625
"""
46304626

46314627
thinking_level: Optional[ThinkingLevel]
4632-
"""Optional. The number of thoughts tokens that the model should generate."""
4628+
"""Optional. The level of thoughts tokens that the model should generate."""
46334629

46344630

46354631
ThinkingConfigOrDict = Union[ThinkingConfig, ThinkingConfigDict]

0 commit comments

Comments
 (0)