google-genai 1.37.0__tar.gz → 1.38.0__tar.gz
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.
- {google_genai-1.37.0/google_genai.egg-info → google_genai-1.38.0}/PKG-INFO +1 -1
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_live_converters.py +24 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/types.py +30 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/version.py +1 -1
- {google_genai-1.37.0 → google_genai-1.38.0/google_genai.egg-info}/PKG-INFO +1 -1
- {google_genai-1.37.0 → google_genai-1.38.0}/pyproject.toml +1 -1
- {google_genai-1.37.0 → google_genai-1.38.0}/LICENSE +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/MANIFEST.in +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/README.md +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/__init__.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_adapters.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_api_client.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_api_module.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_automatic_function_calling_util.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_base_transformers.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_base_url.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_common.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_extra_utils.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_local_tokenizer_loader.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_mcp_utils.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_operations_converters.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_replay_api_client.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_test_api_client.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_tokens_converters.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_transformers.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/batches.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/caches.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/chats.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/client.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/errors.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/files.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/live.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/live_music.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/local_tokenizer.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/models.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/operations.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/pagers.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/py.typed +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/tokens.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google/genai/tunings.py +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google_genai.egg-info/SOURCES.txt +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google_genai.egg-info/dependency_links.txt +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google_genai.egg-info/requires.txt +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/google_genai.egg-info/top_level.txt +0 -0
- {google_genai-1.37.0 → google_genai-1.38.0}/setup.cfg +0 -0
@@ -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
|
|
@@ -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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{google_genai-1.37.0 → google_genai-1.38.0}/google/genai/_automatic_function_calling_util.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|