google-genai 1.37.0__py3-none-any.whl → 1.38.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2655,6 +2655,18 @@ def _LiveServerContent_from_mldev(
2655
2655
  ),
2656
2656
  )
2657
2657
 
2658
+ if getv(from_object, ['turnCompleteReason']) is not None:
2659
+ setv(
2660
+ to_object,
2661
+ ['turn_complete_reason'],
2662
+ getv(from_object, ['turnCompleteReason']),
2663
+ )
2664
+
2665
+ if getv(from_object, ['waitingForInput']) is not None:
2666
+ setv(
2667
+ to_object, ['waiting_for_input'], getv(from_object, ['waitingForInput'])
2668
+ )
2669
+
2658
2670
  return to_object
2659
2671
 
2660
2672
 
@@ -3333,6 +3345,18 @@ def _LiveServerContent_from_vertex(
3333
3345
  ),
3334
3346
  )
3335
3347
 
3348
+ if getv(from_object, ['turnCompleteReason']) is not None:
3349
+ setv(
3350
+ to_object,
3351
+ ['turn_complete_reason'],
3352
+ getv(from_object, ['turnCompleteReason']),
3353
+ )
3354
+
3355
+ if getv(from_object, ['waitingForInput']) is not None:
3356
+ setv(
3357
+ to_object, ['waiting_for_input'], getv(from_object, ['waitingForInput'])
3358
+ )
3359
+
3336
3360
  return to_object
3337
3361
 
3338
3362
 
google/genai/types.py CHANGED
@@ -657,6 +657,19 @@ class FileSource(_common.CaseInSensitiveEnum):
657
657
  GENERATED = 'GENERATED'
658
658
 
659
659
 
660
+ class TurnCompleteReason(_common.CaseInSensitiveEnum):
661
+ """The reason why the turn is complete."""
662
+
663
+ TURN_COMPLETE_REASON_UNSPECIFIED = 'TURN_COMPLETE_REASON_UNSPECIFIED'
664
+ """Default value. Reason is unspecified."""
665
+ MALFORMED_FUNCTION_CALL = 'MALFORMED_FUNCTION_CALL'
666
+ """The function call generated by the model is invalid."""
667
+ RESPONSE_REJECTED = 'RESPONSE_REJECTED'
668
+ """The response is rejected by the model."""
669
+ NEED_MORE_INPUT = 'NEED_MORE_INPUT'
670
+ """Needs more input from the user."""
671
+
672
+
660
673
  class MediaModality(_common.CaseInSensitiveEnum):
661
674
  """Server content modalities."""
662
675
 
@@ -13238,6 +13251,15 @@ class LiveServerContent(_common.BaseModel):
13238
13251
  default=None,
13239
13252
  description="""Metadata related to url context retrieval tool.""",
13240
13253
  )
13254
+ turn_complete_reason: Optional[TurnCompleteReason] = Field(
13255
+ default=None, description="""Reason for the turn is complete."""
13256
+ )
13257
+ waiting_for_input: Optional[bool] = Field(
13258
+ default=None,
13259
+ description="""If true, indicates that the model is not generating content because
13260
+ it is waiting for more input from the user, e.g. because it expects the
13261
+ user to continue talking.""",
13262
+ )
13241
13263
 
13242
13264
 
13243
13265
  class LiveServerContentDict(TypedDict, total=False):
@@ -13283,6 +13305,14 @@ class LiveServerContentDict(TypedDict, total=False):
13283
13305
  url_context_metadata: Optional[UrlContextMetadataDict]
13284
13306
  """Metadata related to url context retrieval tool."""
13285
13307
 
13308
+ turn_complete_reason: Optional[TurnCompleteReason]
13309
+ """Reason for the turn is complete."""
13310
+
13311
+ waiting_for_input: Optional[bool]
13312
+ """If true, indicates that the model is not generating content because
13313
+ it is waiting for more input from the user, e.g. because it expects the
13314
+ user to continue talking."""
13315
+
13286
13316
 
13287
13317
  LiveServerContentOrDict = Union[LiveServerContent, LiveServerContentDict]
13288
13318
 
google/genai/version.py CHANGED
@@ -13,4 +13,4 @@
13
13
  # limitations under the License.
14
14
  #
15
15
 
16
- __version__ = '1.37.0' # x-release-please-version
16
+ __version__ = '1.38.0' # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.37.0
3
+ Version: 1.38.0
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
@@ -7,7 +7,7 @@ google/genai/_base_transformers.py,sha256=wljA6m4tLl4XLGlBC2DNOls5N9-X9tffBq0M7i
7
7
  google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
8
8
  google/genai/_common.py,sha256=VziliVbesmNtke6Fh2wk-kQlCOxEpmkqYb0y4qfKIo4,20074
9
9
  google/genai/_extra_utils.py,sha256=myEPyU_-RXExXtMGitJUKEMWUPiDudScgTN9LqFC8h4,20468
10
- google/genai/_live_converters.py,sha256=MMyDkferhBJiR3-dI8k8Rqr9LVzONtf4ibGq9FNzoew,103278
10
+ google/genai/_live_converters.py,sha256=5yndouhtCw3WkEIWEcf1k8HywaGrnJpuuTuFKvXaA5M,103950
11
11
  google/genai/_local_tokenizer_loader.py,sha256=cGN1F0f7hNjRIGCGTLeox7IGAZf_YcvZjSp2rCyhUak,7465
12
12
  google/genai/_mcp_utils.py,sha256=HuWJ8FUjquv40Mf_QjcL5r5yXWrS-JjINsjlOSbbyAc,3870
13
13
  google/genai/_operations_converters.py,sha256=I1b46qhGCeB5uHNuyrMxpFqmzWuvSFQ5pS52csd1J4E,9080
@@ -30,10 +30,10 @@ google/genai/pagers.py,sha256=m0SfWWn1EJs2k1On3DZx371qb8g2BRm_188ExsicIRc,7098
30
30
  google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
31
31
  google/genai/tokens.py,sha256=8RbZ0kgvyKT3SwbgIUOHr6TTZL24v4fqYarhlA8r1ac,12503
32
32
  google/genai/tunings.py,sha256=TVohav5pT5jOj4RgnPdvLI6iDdOVGnPRB8XRBNuyP2E,63513
33
- google/genai/types.py,sha256=Fo_wnZfJpN8II_BakdMeZF_fdVr9LS1uN6adt5G3fOw,543397
34
- google/genai/version.py,sha256=nlusqdJdDN7Uqli6saNEL815P5TiJPD6kdJtRRoRHdA,627
35
- google_genai-1.37.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
36
- google_genai-1.37.0.dist-info/METADATA,sha256=4EpWee9gsOSGvyHGzMC2xqJ0fYOwvgbA2f8fGUh2YjY,43622
37
- google_genai-1.37.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- google_genai-1.37.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
39
- google_genai-1.37.0.dist-info/RECORD,,
33
+ google/genai/types.py,sha256=rfC7XHOj0gY623h6o2OYkgG5qwdx3XnIqNbflsKVhiU,544627
34
+ google/genai/version.py,sha256=KuRCODgoTTXMoEmnCuEy6FnYuAvHgdE5EVPAkRRmjYc,627
35
+ google_genai-1.38.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
36
+ google_genai-1.38.0.dist-info/METADATA,sha256=XPd0ingxVwk3XGZkgkU7szy0DonWV6ge4NYAfVKTO0g,43622
37
+ google_genai-1.38.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ google_genai-1.38.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
39
+ google_genai-1.38.0.dist-info/RECORD,,