google-genai 1.60.0__py3-none-any.whl → 1.61.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.
- google/genai/_interactions/resources/interactions.py +50 -28
- google/genai/_interactions/types/__init__.py +2 -1
- google/genai/_interactions/types/content_delta.py +1 -1
- google/genai/_interactions/types/function_result_content.py +2 -1
- google/genai/_interactions/types/function_result_content_param.py +4 -4
- google/genai/_interactions/types/{interaction_event.py → interaction_complete_event.py} +3 -3
- google/genai/_interactions/types/interaction_create_params.py +4 -4
- google/genai/_interactions/types/interaction_get_params.py +3 -0
- google/genai/_interactions/types/interaction_sse_event.py +11 -2
- google/genai/_interactions/types/interaction_start_event.py +36 -0
- google/genai/batches.py +3 -0
- google/genai/files.py +15 -15
- google/genai/tests/batches/test_create_with_inlined_requests.py +31 -15
- google/genai/tests/batches/test_get.py +1 -1
- google/genai/tests/client/test_client_close.py +0 -1
- google/genai/tests/files/test_register_table.py +1 -1
- google/genai/tests/transformers/test_schema.py +10 -1
- google/genai/tests/tunings/test_tune.py +87 -0
- google/genai/tunings.py +163 -4
- google/genai/types.py +178 -14
- google/genai/version.py +1 -1
- {google_genai-1.60.0.dist-info → google_genai-1.61.0.dist-info}/METADATA +1 -1
- {google_genai-1.60.0.dist-info → google_genai-1.61.0.dist-info}/RECORD +26 -25
- {google_genai-1.60.0.dist-info → google_genai-1.61.0.dist-info}/WHEEL +1 -1
- {google_genai-1.60.0.dist-info → google_genai-1.61.0.dist-info}/licenses/LICENSE +0 -0
- {google_genai-1.60.0.dist-info → google_genai-1.61.0.dist-info}/top_level.txt +0 -0
google/genai/types.py
CHANGED
|
@@ -813,6 +813,8 @@ class TuningMethod(_common.CaseInSensitiveEnum):
|
|
|
813
813
|
"""Supervised fine tuning."""
|
|
814
814
|
PREFERENCE_TUNING = 'PREFERENCE_TUNING'
|
|
815
815
|
"""Preference optimization tuning."""
|
|
816
|
+
DISTILLATION = 'DISTILLATION'
|
|
817
|
+
"""Distillation tuning."""
|
|
816
818
|
|
|
817
819
|
|
|
818
820
|
class DocumentState(_common.CaseInSensitiveEnum):
|
|
@@ -10546,6 +10548,114 @@ PreferenceOptimizationSpecOrDict = Union[
|
|
|
10546
10548
|
]
|
|
10547
10549
|
|
|
10548
10550
|
|
|
10551
|
+
class DistillationHyperParameters(_common.BaseModel):
|
|
10552
|
+
"""Hyperparameters for Distillation.
|
|
10553
|
+
|
|
10554
|
+
This data type is not supported in Gemini API.
|
|
10555
|
+
"""
|
|
10556
|
+
|
|
10557
|
+
adapter_size: Optional[AdapterSize] = Field(
|
|
10558
|
+
default=None, description="""Optional. Adapter size for distillation."""
|
|
10559
|
+
)
|
|
10560
|
+
epoch_count: Optional[int] = Field(
|
|
10561
|
+
default=None,
|
|
10562
|
+
description="""Optional. Number of complete passes the model makes over the entire training dataset during training.""",
|
|
10563
|
+
)
|
|
10564
|
+
learning_rate_multiplier: Optional[float] = Field(
|
|
10565
|
+
default=None,
|
|
10566
|
+
description="""Optional. Multiplier for adjusting the default learning rate.""",
|
|
10567
|
+
)
|
|
10568
|
+
|
|
10569
|
+
|
|
10570
|
+
class DistillationHyperParametersDict(TypedDict, total=False):
|
|
10571
|
+
"""Hyperparameters for Distillation.
|
|
10572
|
+
|
|
10573
|
+
This data type is not supported in Gemini API.
|
|
10574
|
+
"""
|
|
10575
|
+
|
|
10576
|
+
adapter_size: Optional[AdapterSize]
|
|
10577
|
+
"""Optional. Adapter size for distillation."""
|
|
10578
|
+
|
|
10579
|
+
epoch_count: Optional[int]
|
|
10580
|
+
"""Optional. Number of complete passes the model makes over the entire training dataset during training."""
|
|
10581
|
+
|
|
10582
|
+
learning_rate_multiplier: Optional[float]
|
|
10583
|
+
"""Optional. Multiplier for adjusting the default learning rate."""
|
|
10584
|
+
|
|
10585
|
+
|
|
10586
|
+
DistillationHyperParametersOrDict = Union[
|
|
10587
|
+
DistillationHyperParameters, DistillationHyperParametersDict
|
|
10588
|
+
]
|
|
10589
|
+
|
|
10590
|
+
|
|
10591
|
+
class DistillationSpec(_common.BaseModel):
|
|
10592
|
+
"""Distillation tuning spec for tuning."""
|
|
10593
|
+
|
|
10594
|
+
prompt_dataset_uri: Optional[str] = Field(
|
|
10595
|
+
default=None,
|
|
10596
|
+
description="""The GCS URI of the prompt dataset to use during distillation.""",
|
|
10597
|
+
)
|
|
10598
|
+
base_teacher_model: Optional[str] = Field(
|
|
10599
|
+
default=None,
|
|
10600
|
+
description="""The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).""",
|
|
10601
|
+
)
|
|
10602
|
+
hyper_parameters: Optional[DistillationHyperParameters] = Field(
|
|
10603
|
+
default=None,
|
|
10604
|
+
description="""Optional. Hyperparameters for Distillation.""",
|
|
10605
|
+
)
|
|
10606
|
+
pipeline_root_directory: Optional[str] = Field(
|
|
10607
|
+
default=None,
|
|
10608
|
+
description="""Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.""",
|
|
10609
|
+
)
|
|
10610
|
+
student_model: Optional[str] = Field(
|
|
10611
|
+
default=None,
|
|
10612
|
+
description="""The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use base_model instead.""",
|
|
10613
|
+
)
|
|
10614
|
+
training_dataset_uri: Optional[str] = Field(
|
|
10615
|
+
default=None,
|
|
10616
|
+
description="""Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.""",
|
|
10617
|
+
)
|
|
10618
|
+
tuned_teacher_model_source: Optional[str] = Field(
|
|
10619
|
+
default=None,
|
|
10620
|
+
description="""The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.""",
|
|
10621
|
+
)
|
|
10622
|
+
validation_dataset_uri: Optional[str] = Field(
|
|
10623
|
+
default=None,
|
|
10624
|
+
description="""Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.""",
|
|
10625
|
+
)
|
|
10626
|
+
|
|
10627
|
+
|
|
10628
|
+
class DistillationSpecDict(TypedDict, total=False):
|
|
10629
|
+
"""Distillation tuning spec for tuning."""
|
|
10630
|
+
|
|
10631
|
+
prompt_dataset_uri: Optional[str]
|
|
10632
|
+
"""The GCS URI of the prompt dataset to use during distillation."""
|
|
10633
|
+
|
|
10634
|
+
base_teacher_model: Optional[str]
|
|
10635
|
+
"""The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models)."""
|
|
10636
|
+
|
|
10637
|
+
hyper_parameters: Optional[DistillationHyperParametersDict]
|
|
10638
|
+
"""Optional. Hyperparameters for Distillation."""
|
|
10639
|
+
|
|
10640
|
+
pipeline_root_directory: Optional[str]
|
|
10641
|
+
"""Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts."""
|
|
10642
|
+
|
|
10643
|
+
student_model: Optional[str]
|
|
10644
|
+
"""The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use base_model instead."""
|
|
10645
|
+
|
|
10646
|
+
training_dataset_uri: Optional[str]
|
|
10647
|
+
"""Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file."""
|
|
10648
|
+
|
|
10649
|
+
tuned_teacher_model_source: Optional[str]
|
|
10650
|
+
"""The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`."""
|
|
10651
|
+
|
|
10652
|
+
validation_dataset_uri: Optional[str]
|
|
10653
|
+
"""Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file."""
|
|
10654
|
+
|
|
10655
|
+
|
|
10656
|
+
DistillationSpecOrDict = Union[DistillationSpec, DistillationSpecDict]
|
|
10657
|
+
|
|
10658
|
+
|
|
10549
10659
|
class GcsDestination(_common.BaseModel):
|
|
10550
10660
|
"""The Google Cloud Storage location where the output is to be written to."""
|
|
10551
10661
|
|
|
@@ -11742,6 +11852,9 @@ class TuningJob(_common.BaseModel):
|
|
|
11742
11852
|
preference_optimization_spec: Optional[PreferenceOptimizationSpec] = Field(
|
|
11743
11853
|
default=None, description="""Tuning Spec for Preference Optimization."""
|
|
11744
11854
|
)
|
|
11855
|
+
distillation_spec: Optional[DistillationSpec] = Field(
|
|
11856
|
+
default=None, description="""Tuning Spec for Distillation."""
|
|
11857
|
+
)
|
|
11745
11858
|
tuning_data_stats: Optional[TuningDataStats] = Field(
|
|
11746
11859
|
default=None,
|
|
11747
11860
|
description="""Output only. The tuning data statistics associated with this TuningJob.""",
|
|
@@ -11845,6 +11958,9 @@ class TuningJobDict(TypedDict, total=False):
|
|
|
11845
11958
|
preference_optimization_spec: Optional[PreferenceOptimizationSpecDict]
|
|
11846
11959
|
"""Tuning Spec for Preference Optimization."""
|
|
11847
11960
|
|
|
11961
|
+
distillation_spec: Optional[DistillationSpecDict]
|
|
11962
|
+
"""Tuning Spec for Distillation."""
|
|
11963
|
+
|
|
11848
11964
|
tuning_data_stats: Optional[TuningDataStatsDict]
|
|
11849
11965
|
"""Output only. The tuning data statistics associated with this TuningJob."""
|
|
11850
11966
|
|
|
@@ -12133,7 +12249,7 @@ class CreateTuningJobConfig(_common.BaseModel):
|
|
|
12133
12249
|
)
|
|
12134
12250
|
method: Optional[TuningMethod] = Field(
|
|
12135
12251
|
default=None,
|
|
12136
|
-
description="""The method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING). If not set, the default method (SFT) will be used.""",
|
|
12252
|
+
description="""The method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING or DISTILLATION). If not set, the default method (SFT) will be used.""",
|
|
12137
12253
|
)
|
|
12138
12254
|
validation_dataset: Optional[TuningValidationDataset] = Field(
|
|
12139
12255
|
default=None,
|
|
@@ -12152,7 +12268,7 @@ class CreateTuningJobConfig(_common.BaseModel):
|
|
|
12152
12268
|
)
|
|
12153
12269
|
learning_rate_multiplier: Optional[float] = Field(
|
|
12154
12270
|
default=None,
|
|
12155
|
-
description="""Multiplier for adjusting the default learning rate.""",
|
|
12271
|
+
description="""Multiplier for adjusting the default learning rate. 1P models only. Mutually exclusive with learning_rate.""",
|
|
12156
12272
|
)
|
|
12157
12273
|
export_last_checkpoint_only: Optional[bool] = Field(
|
|
12158
12274
|
default=None,
|
|
@@ -12165,13 +12281,20 @@ class CreateTuningJobConfig(_common.BaseModel):
|
|
|
12165
12281
|
adapter_size: Optional[AdapterSize] = Field(
|
|
12166
12282
|
default=None, description="""Adapter size for tuning."""
|
|
12167
12283
|
)
|
|
12284
|
+
tuning_mode: Optional[TuningMode] = Field(
|
|
12285
|
+
default=None, description="""Tuning mode for SFT tuning."""
|
|
12286
|
+
)
|
|
12287
|
+
custom_base_model: Optional[str] = Field(
|
|
12288
|
+
default=None,
|
|
12289
|
+
description="""Custom base model for tuning. This is only supported for OSS models in Vertex.""",
|
|
12290
|
+
)
|
|
12168
12291
|
batch_size: Optional[int] = Field(
|
|
12169
12292
|
default=None,
|
|
12170
|
-
description="""The batch size hyperparameter for tuning.
|
|
12293
|
+
description="""The batch size hyperparameter for tuning. This is only supported for OSS models in Vertex.""",
|
|
12171
12294
|
)
|
|
12172
12295
|
learning_rate: Optional[float] = Field(
|
|
12173
12296
|
default=None,
|
|
12174
|
-
description="""The learning rate
|
|
12297
|
+
description="""The learning rate for tuning. OSS models only. Mutually exclusive with learning_rate_multiplier.""",
|
|
12175
12298
|
)
|
|
12176
12299
|
evaluation_config: Optional[EvaluationConfig] = Field(
|
|
12177
12300
|
default=None, description="""Evaluation config for the tuning job."""
|
|
@@ -12184,6 +12307,22 @@ class CreateTuningJobConfig(_common.BaseModel):
|
|
|
12184
12307
|
default=None,
|
|
12185
12308
|
description="""Weight for KL Divergence regularization, Preference Optimization tuning only.""",
|
|
12186
12309
|
)
|
|
12310
|
+
base_teacher_model: Optional[str] = Field(
|
|
12311
|
+
default=None,
|
|
12312
|
+
description="""The base teacher model that is being distilled. Distillation only.""",
|
|
12313
|
+
)
|
|
12314
|
+
tuned_teacher_model_source: Optional[str] = Field(
|
|
12315
|
+
default=None,
|
|
12316
|
+
description="""The resource name of the Tuned teacher model. Distillation only.""",
|
|
12317
|
+
)
|
|
12318
|
+
sft_loss_weight_multiplier: Optional[float] = Field(
|
|
12319
|
+
default=None,
|
|
12320
|
+
description="""Multiplier for adjusting the weight of the SFT loss. Distillation only.""",
|
|
12321
|
+
)
|
|
12322
|
+
output_uri: Optional[str] = Field(
|
|
12323
|
+
default=None,
|
|
12324
|
+
description="""The Google Cloud Storage location where the tuning job outputs are written.""",
|
|
12325
|
+
)
|
|
12187
12326
|
|
|
12188
12327
|
|
|
12189
12328
|
class CreateTuningJobConfigDict(TypedDict, total=False):
|
|
@@ -12193,7 +12332,7 @@ class CreateTuningJobConfigDict(TypedDict, total=False):
|
|
|
12193
12332
|
"""Used to override HTTP request options."""
|
|
12194
12333
|
|
|
12195
12334
|
method: Optional[TuningMethod]
|
|
12196
|
-
"""The method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING). If not set, the default method (SFT) will be used."""
|
|
12335
|
+
"""The method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING or DISTILLATION). If not set, the default method (SFT) will be used."""
|
|
12197
12336
|
|
|
12198
12337
|
validation_dataset: Optional[TuningValidationDatasetDict]
|
|
12199
12338
|
"""Validation dataset for tuning. The dataset must be formatted as a JSONL file."""
|
|
@@ -12208,7 +12347,7 @@ class CreateTuningJobConfigDict(TypedDict, total=False):
|
|
|
12208
12347
|
"""Number of complete passes the model makes over the entire training dataset during training."""
|
|
12209
12348
|
|
|
12210
12349
|
learning_rate_multiplier: Optional[float]
|
|
12211
|
-
"""Multiplier for adjusting the default learning rate."""
|
|
12350
|
+
"""Multiplier for adjusting the default learning rate. 1P models only. Mutually exclusive with learning_rate."""
|
|
12212
12351
|
|
|
12213
12352
|
export_last_checkpoint_only: Optional[bool]
|
|
12214
12353
|
"""If set to true, disable intermediate checkpoints and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints."""
|
|
@@ -12219,11 +12358,17 @@ class CreateTuningJobConfigDict(TypedDict, total=False):
|
|
|
12219
12358
|
adapter_size: Optional[AdapterSize]
|
|
12220
12359
|
"""Adapter size for tuning."""
|
|
12221
12360
|
|
|
12361
|
+
tuning_mode: Optional[TuningMode]
|
|
12362
|
+
"""Tuning mode for SFT tuning."""
|
|
12363
|
+
|
|
12364
|
+
custom_base_model: Optional[str]
|
|
12365
|
+
"""Custom base model for tuning. This is only supported for OSS models in Vertex."""
|
|
12366
|
+
|
|
12222
12367
|
batch_size: Optional[int]
|
|
12223
|
-
"""The batch size hyperparameter for tuning.
|
|
12368
|
+
"""The batch size hyperparameter for tuning. This is only supported for OSS models in Vertex."""
|
|
12224
12369
|
|
|
12225
12370
|
learning_rate: Optional[float]
|
|
12226
|
-
"""The learning rate
|
|
12371
|
+
"""The learning rate for tuning. OSS models only. Mutually exclusive with learning_rate_multiplier."""
|
|
12227
12372
|
|
|
12228
12373
|
evaluation_config: Optional[EvaluationConfigDict]
|
|
12229
12374
|
"""Evaluation config for the tuning job."""
|
|
@@ -12234,6 +12379,18 @@ class CreateTuningJobConfigDict(TypedDict, total=False):
|
|
|
12234
12379
|
beta: Optional[float]
|
|
12235
12380
|
"""Weight for KL Divergence regularization, Preference Optimization tuning only."""
|
|
12236
12381
|
|
|
12382
|
+
base_teacher_model: Optional[str]
|
|
12383
|
+
"""The base teacher model that is being distilled. Distillation only."""
|
|
12384
|
+
|
|
12385
|
+
tuned_teacher_model_source: Optional[str]
|
|
12386
|
+
"""The resource name of the Tuned teacher model. Distillation only."""
|
|
12387
|
+
|
|
12388
|
+
sft_loss_weight_multiplier: Optional[float]
|
|
12389
|
+
"""Multiplier for adjusting the weight of the SFT loss. Distillation only."""
|
|
12390
|
+
|
|
12391
|
+
output_uri: Optional[str]
|
|
12392
|
+
"""The Google Cloud Storage location where the tuning job outputs are written."""
|
|
12393
|
+
|
|
12237
12394
|
|
|
12238
12395
|
CreateTuningJobConfigOrDict = Union[
|
|
12239
12396
|
CreateTuningJobConfig, CreateTuningJobConfigDict
|
|
@@ -14026,8 +14183,8 @@ class RegisterFilesConfigDict(TypedDict, total=False):
|
|
|
14026
14183
|
RegisterFilesConfigOrDict = Union[RegisterFilesConfig, RegisterFilesConfigDict]
|
|
14027
14184
|
|
|
14028
14185
|
|
|
14029
|
-
class
|
|
14030
|
-
"""
|
|
14186
|
+
class _InternalRegisterFilesParameters(_common.BaseModel):
|
|
14187
|
+
"""Parameters for the private _Register method."""
|
|
14031
14188
|
|
|
14032
14189
|
uris: Optional[list[str]] = Field(
|
|
14033
14190
|
default=None,
|
|
@@ -14039,8 +14196,8 @@ class _RegisterFilesParameters(_common.BaseModel):
|
|
|
14039
14196
|
)
|
|
14040
14197
|
|
|
14041
14198
|
|
|
14042
|
-
class
|
|
14043
|
-
"""
|
|
14199
|
+
class _InternalRegisterFilesParametersDict(TypedDict, total=False):
|
|
14200
|
+
"""Parameters for the private _Register method."""
|
|
14044
14201
|
|
|
14045
14202
|
uris: Optional[list[str]]
|
|
14046
14203
|
"""The Google Cloud Storage URIs to register. Example: `gs://bucket/object`."""
|
|
@@ -14049,8 +14206,8 @@ class _RegisterFilesParametersDict(TypedDict, total=False):
|
|
|
14049
14206
|
"""Used to override the default configuration."""
|
|
14050
14207
|
|
|
14051
14208
|
|
|
14052
|
-
|
|
14053
|
-
|
|
14209
|
+
_InternalRegisterFilesParametersOrDict = Union[
|
|
14210
|
+
_InternalRegisterFilesParameters, _InternalRegisterFilesParametersDict
|
|
14054
14211
|
]
|
|
14055
14212
|
|
|
14056
14213
|
|
|
@@ -14225,6 +14382,10 @@ class InlinedResponse(_common.BaseModel):
|
|
|
14225
14382
|
description="""The response to the request.
|
|
14226
14383
|
""",
|
|
14227
14384
|
)
|
|
14385
|
+
metadata: Optional[dict[str, str]] = Field(
|
|
14386
|
+
default=None,
|
|
14387
|
+
description="""The metadata to be associated with the request.""",
|
|
14388
|
+
)
|
|
14228
14389
|
error: Optional[JobError] = Field(
|
|
14229
14390
|
default=None,
|
|
14230
14391
|
description="""The error encountered while processing the request.
|
|
@@ -14239,6 +14400,9 @@ class InlinedResponseDict(TypedDict, total=False):
|
|
|
14239
14400
|
"""The response to the request.
|
|
14240
14401
|
"""
|
|
14241
14402
|
|
|
14403
|
+
metadata: Optional[dict[str, str]]
|
|
14404
|
+
"""The metadata to be associated with the request."""
|
|
14405
|
+
|
|
14242
14406
|
error: Optional[JobErrorDict]
|
|
14243
14407
|
"""The error encountered while processing the request.
|
|
14244
14408
|
"""
|
google/genai/version.py
CHANGED
|
@@ -15,14 +15,14 @@ google/genai/_replay_api_client.py,sha256=-sZY8pM8JulqTfuqIKaKHCy9MNXF7HJnX6fCzy
|
|
|
15
15
|
google/genai/_test_api_client.py,sha256=4ruFIy5_1qcbKqqIBu3HSQbpSOBrxiecBtDZaTGFR1s,4797
|
|
16
16
|
google/genai/_tokens_converters.py,sha256=ILPWqhCU1MP2xi0Zg_Zz3fmZ37Yr-hGyg6iey9c4u_E,15593
|
|
17
17
|
google/genai/_transformers.py,sha256=rVhKCz9Xi8PTMVOj4F5ITqQWMzUYeNLYacSIFlDjZwc,43191
|
|
18
|
-
google/genai/batches.py,sha256=
|
|
18
|
+
google/genai/batches.py,sha256=TE26gN_apLeCPe6QDu9LgjLXEGy821nZSwWSIEWELSo,79064
|
|
19
19
|
google/genai/caches.py,sha256=24GhR6Nj-1Bdaey6ff6NNmP5pIjvlO0S1Dv_-CrCtyI,48118
|
|
20
20
|
google/genai/chats.py,sha256=q3_iONHx8l-Y7EG29_f45yjFDdL2VFefUDLMdJtw0sE,16583
|
|
21
21
|
google/genai/client.py,sha256=odJ3erYMO1tkvn_9AOyfLawNX2tZf71fbVzqmmLEjOY,21327
|
|
22
22
|
google/genai/documents.py,sha256=GuYWVgRaYBzHv9aMgcZBrVkFlpBeaAeZsfhgvC_SLTA,16218
|
|
23
23
|
google/genai/errors.py,sha256=2Iux-5iGUJzEB6OWE3R18SckMEvNimOfpNCQIYL6cn8,8118
|
|
24
24
|
google/genai/file_search_stores.py,sha256=4EW_hRjkaGYu4gbQyNbiswTWk5nUgooxB5pqMi_WAME,41418
|
|
25
|
-
google/genai/files.py,sha256=
|
|
25
|
+
google/genai/files.py,sha256=iGYDbHkbnYsqZhkHuKMjrABsMhJivtdPM6Qgog5Q08M,39059
|
|
26
26
|
google/genai/interactions.py,sha256=GLpo-rTdxb1JfL3LXE0c52JWaEGloLnPeCI9hoO_M2g,642
|
|
27
27
|
google/genai/live.py,sha256=aBa_JndziEQjxhdpqChmGHaG4m9npOp9Z0HTXnoZdl8,41804
|
|
28
28
|
google/genai/live_music.py,sha256=Y7I7jh5SAKgyjBIMLboH0oTnZJ18uOT2SpRDKURvp94,6783
|
|
@@ -32,9 +32,9 @@ google/genai/operations.py,sha256=FXJOnYp2HA5Xqa5mHW67mSa9p1D_EaGGyUoKc09xFPQ,16
|
|
|
32
32
|
google/genai/pagers.py,sha256=1i8NXDuKuQznFin5H5-I0hmj6H5YMTYsEJP7S0ITSbY,7158
|
|
33
33
|
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
|
34
34
|
google/genai/tokens.py,sha256=4BPW0gGWFeFVk3INkuY2tfREnsrvzQDhouvRI6_F9Q8,12235
|
|
35
|
-
google/genai/tunings.py,sha256=
|
|
36
|
-
google/genai/types.py,sha256=
|
|
37
|
-
google/genai/version.py,sha256=
|
|
35
|
+
google/genai/tunings.py,sha256=XiFPNyNEOXuc1XHWfFzB58SyRr6xVHf8JdOPM8Ro_BQ,80739
|
|
36
|
+
google/genai/types.py,sha256=GmIqqe9PHbgUBvtOMvx5YRCzcFarMr_tErPCR3eL4G0,662323
|
|
37
|
+
google/genai/version.py,sha256=rFKjURomIPq57gTDPrrnIFspz7KSUhTGYmdYiRRgC0c,627
|
|
38
38
|
google/genai/_interactions/__init__.py,sha256=Zl5wlyZ1be3a1ENIERjj9ocpELL89RdZkHF3MnCkB3M,3571
|
|
39
39
|
google/genai/_interactions/_base_client.py,sha256=9U2GjsnrAEmFEIEWIDylGX9P-c038S9TqzcK2FKoKTw,74460
|
|
40
40
|
google/genai/_interactions/_client.py,sha256=VkBifJIA0IchcNRUUb4E8w02udzmJMedYPXYnqX1iKc,21234
|
|
@@ -63,8 +63,8 @@ google/genai/_interactions/_utils/_transform.py,sha256=TjAN4LumRdzvMD0rcrFQhrlC3
|
|
|
63
63
|
google/genai/_interactions/_utils/_typing.py,sha256=Z5S4PcLWBL5GEhqU6j_XKaoh9ANrTSDyMDDTlMB0KJ8,5385
|
|
64
64
|
google/genai/_interactions/_utils/_utils.py,sha256=qWdNSrAUkn_wYeK5YFSeHyZWtEYJQkbh_Sg2t7impKQ,12851
|
|
65
65
|
google/genai/_interactions/resources/__init__.py,sha256=TNMFv_-Zv9ayAgjkecVIBOnIK-goQIIvkvR3WiQl_DA,1207
|
|
66
|
-
google/genai/_interactions/resources/interactions.py,sha256=
|
|
67
|
-
google/genai/_interactions/types/__init__.py,sha256=
|
|
66
|
+
google/genai/_interactions/resources/interactions.py,sha256=ewSe9WwD9u-joitgS86_Cwrgba26Qy2ct839U7b4b0s,57707
|
|
67
|
+
google/genai/_interactions/types/__init__.py,sha256=A7GrXhhdpA7RlFSxp5uBePqsTP0RP5MctjvHH98iKLI,8079
|
|
68
68
|
google/genai/_interactions/types/allowed_tools.py,sha256=Hke2IEAT_lc51MCt0_tGZGx3yvE7HTSawIlm-prCCGg,1047
|
|
69
69
|
google/genai/_interactions/types/allowed_tools_param.py,sha256=PAAFKM2qX_Pj_pTxqcc0IQvii9soKLW_scMud2nUwMc,1092
|
|
70
70
|
google/genai/_interactions/types/annotation.py,sha256=MKyItDJXCQ6ofAPjjBjioy7jagQNlpKZ9yqyc4MJcSI,1266
|
|
@@ -80,7 +80,7 @@ google/genai/_interactions/types/code_execution_call_content_param.py,sha256=1gh
|
|
|
80
80
|
google/genai/_interactions/types/code_execution_result_content.py,sha256=-xGHcQyez_P46lQpQ9TF_yPIUe6HYQHRVeFd2GJiBuo,1299
|
|
81
81
|
google/genai/_interactions/types/code_execution_result_content_param.py,sha256=7YT4Cjyltgh2C9PWZe2gN1-BX4pW3-M_gn4pwpjpLiI,1260
|
|
82
82
|
google/genai/_interactions/types/content.py,sha256=_TiS-6imVNPtvbD43W0hhAXUvilfWS9W38YR7sGnqdA,2439
|
|
83
|
-
google/genai/_interactions/types/content_delta.py,sha256=
|
|
83
|
+
google/genai/_interactions/types/content_delta.py,sha256=5AVCJW-Xqe12JYcZKdFKuy3tE9ff6Warc_ab4Ess3Ek,9546
|
|
84
84
|
google/genai/_interactions/types/content_param.py,sha256=4SlajVkn5MFuFNo2OU5bpORPYJtWu4_Z3l1DBN96fHs,2594
|
|
85
85
|
google/genai/_interactions/types/content_start.py,sha256=T0ziq1Q2g-ooSLxelsVdHgQB5P_11yRDRL5F17VoN6w,1159
|
|
86
86
|
google/genai/_interactions/types/content_stop.py,sha256=RimYJx4pEMI2JOnOnx2sOhFR8HhrigGy6U5gooxdHSc,1049
|
|
@@ -101,8 +101,8 @@ google/genai/_interactions/types/function.py,sha256=0lh1qn73ZVJ7THAOq0pcfUV_37u9
|
|
|
101
101
|
google/genai/_interactions/types/function_call_content.py,sha256=QFjNqGfnc0OHPUds8cCFkDc4Uh45xeEvLkNMO3zKF20,1118
|
|
102
102
|
google/genai/_interactions/types/function_call_content_param.py,sha256=GNj_GRYddGqIy7X-IWsv3kZf1NtFoQvl1ycSLmIp9ZM,1205
|
|
103
103
|
google/genai/_interactions/types/function_param.py,sha256=GMSumys9sCsWix9f4db6Pbc3pg7mGYrQJgWuawiANAY,1119
|
|
104
|
-
google/genai/_interactions/types/function_result_content.py,sha256=
|
|
105
|
-
google/genai/_interactions/types/function_result_content_param.py,sha256=
|
|
104
|
+
google/genai/_interactions/types/function_result_content.py,sha256=d8q38RbA_wB_rKQzaqXUhP6t1XRykKSoHCYTWzHMTmU,1588
|
|
105
|
+
google/genai/_interactions/types/function_result_content_param.py,sha256=ItfrnWdIhbdEDiibivIWMyZcxPAqIY2ZiPF4CSkDOwY,1658
|
|
106
106
|
google/genai/_interactions/types/generation_config.py,sha256=V_p-dhIBk1jeIXJE8V6vkHzujvxkaZQeDZ8ZBVP4r3w,2124
|
|
107
107
|
google/genai/_interactions/types/generation_config_param.py,sha256=HPJTqdLSlWtrOglBi14Fnq4UAkr21MBs6frYImG90YQ,2084
|
|
108
108
|
google/genai/_interactions/types/google_search_call_arguments.py,sha256=KZbdLhr6kFCZruO-nIkZaq2qm_wMlQjH65xZHwlfOGU,971
|
|
@@ -120,10 +120,11 @@ google/genai/_interactions/types/image_content_param.py,sha256=Qof1jfT9Ey83hI-l6
|
|
|
120
120
|
google/genai/_interactions/types/image_mime_type.py,sha256=JSM0MElIy62mLFjKiuheHeV0px02I-Nrh8H2yZTDU3I,884
|
|
121
121
|
google/genai/_interactions/types/image_mime_type_param.py,sha256=syGoPn7nm3LoxqFbJhg3q9Bno68ywKU9hzoufbOm8xQ,930
|
|
122
122
|
google/genai/_interactions/types/interaction.py,sha256=awI9GIgg8SHNDq7E-UGi4dQgSJY_uD_hzOP46HzR8oU,4096
|
|
123
|
-
google/genai/_interactions/types/
|
|
124
|
-
google/genai/_interactions/types/
|
|
125
|
-
google/genai/_interactions/types/interaction_get_params.py,sha256=
|
|
126
|
-
google/genai/_interactions/types/interaction_sse_event.py,sha256=
|
|
123
|
+
google/genai/_interactions/types/interaction_complete_event.py,sha256=gVSa40ZCZHS5FEpgu9BxnO3k_qP-JeoMtBb5lByCe90,1170
|
|
124
|
+
google/genai/_interactions/types/interaction_create_params.py,sha256=11oGyknFJB3T96YgV40Vnoj9afr3xVXNj1uuCkiOFrU,6918
|
|
125
|
+
google/genai/_interactions/types/interaction_get_params.py,sha256=RpR9sIkk0RT-baHXoLhOTalRRo8G4yc2GFEaaPkAsgA,1715
|
|
126
|
+
google/genai/_interactions/types/interaction_sse_event.py,sha256=1Pmvb1skAgqrXyYpWdpRyc94L31lQAf_n5pXAYHJFPI,1445
|
|
127
|
+
google/genai/_interactions/types/interaction_start_event.py,sha256=aCzZipavC1M_0yWInKR2blah2cHR2AM2v-qqvBNOUBU,1161
|
|
127
128
|
google/genai/_interactions/types/interaction_status_update.py,sha256=QcS8BXpstQz24KxoUl7oCPz6Xo77alytxUsIVMYrt6E,1203
|
|
128
129
|
google/genai/_interactions/types/mcp_server_tool_call_content.py,sha256=J58FpA3gM4EeMSrsCbtzZzmkwhD5r1ChEMw_aT9X-aE,1210
|
|
129
130
|
google/genai/_interactions/types/mcp_server_tool_call_content_param.py,sha256=kCe6nCCQz0M7biVvpItnPdyarbIa_Z_8xxY1rpsuTSA,1307
|
|
@@ -183,10 +184,10 @@ google/genai/tests/batches/test_create.py,sha256=3YBAh1eN4jTQy1pRm8TRC9bzHkAYSsz
|
|
|
183
184
|
google/genai/tests/batches/test_create_with_bigquery.py,sha256=PuS1KdFPVgkKMbzm1T_euqXcGWuBuZo1ciiNlFTP9eE,3674
|
|
184
185
|
google/genai/tests/batches/test_create_with_file.py,sha256=6KGRTNV8cojhMN3PtzD8nzioRi0xYBLInmLpfv6eIrA,2416
|
|
185
186
|
google/genai/tests/batches/test_create_with_gcs.py,sha256=IlEaE56zOqrDQshtsvDnDloS1z1Sw7a9dP_bcZav0L0,4049
|
|
186
|
-
google/genai/tests/batches/test_create_with_inlined_requests.py,sha256=
|
|
187
|
+
google/genai/tests/batches/test_create_with_inlined_requests.py,sha256=8J-0166qLyv9OhGFunrk7sxb_PoLNkGCoiy5EAp-4l8,7856
|
|
187
188
|
google/genai/tests/batches/test_delete.py,sha256=RhyFKjt1qEFbPvPPzoBfeVvtb3GoLYCamsIz2QmlOzo,2718
|
|
188
189
|
google/genai/tests/batches/test_embedding.py,sha256=o7mKpzwDYArCgUBZ8Twl2hRiN6KS3gKTb_2-PemGUqI,4859
|
|
189
|
-
google/genai/tests/batches/test_get.py,sha256
|
|
190
|
+
google/genai/tests/batches/test_get.py,sha256=33saXNAIo7Z5mHABZTSJ-6FECApftSZgy-J8vYwVIlU,2269
|
|
190
191
|
google/genai/tests/batches/test_list.py,sha256=SVeUk4QcNsrEHe1S5EZuJB9UepEPK0eszq5uvLCPUv8,2343
|
|
191
192
|
google/genai/tests/caches/__init__.py,sha256=3ox8j_0aP_e-KYnSX9IefvLEE1qz4hnV6rtc0t5cuAg,632
|
|
192
193
|
google/genai/tests/caches/constants.py,sha256=XzAlcPTd8sfu4xhrYuHJecwOKDEThzzoyn4s9BPgPsU,1003
|
|
@@ -205,7 +206,7 @@ google/genai/tests/chats/test_send_message.py,sha256=cs8RFVRCyF0D8sfgMs658OF8TRV
|
|
|
205
206
|
google/genai/tests/chats/test_validate_response.py,sha256=07zq5pJ3rL2zu8o5RKJZKFyZQ9tMZyVXLBrLuADkGUQ,2420
|
|
206
207
|
google/genai/tests/client/__init__.py,sha256=RvGOeb5ZdxjMSh_frXTcrenwE_UsF3_vlDaI-_ml74Y,616
|
|
207
208
|
google/genai/tests/client/test_async_stream.py,sha256=wDrCIvxP9s_nwMI_GMs8hwB-I9bEYbrSLZPstNVWxRw,12755
|
|
208
|
-
google/genai/tests/client/test_client_close.py,sha256=
|
|
209
|
+
google/genai/tests/client/test_client_close.py,sha256=Pt0_xLaV7f6X0DD5xePUc7bD-ZA8AknK400DVBMhcKU,6006
|
|
209
210
|
google/genai/tests/client/test_client_initialization.py,sha256=RssmXtJDCw-0VL-s6W_3dsLvU3-Z0D-V2VaTxnvi9yY,55157
|
|
210
211
|
google/genai/tests/client/test_client_requests.py,sha256=ATTGdQPLpTWp25f5apIcWTRjV5aEHQoUDOHRRUpxLlU,7403
|
|
211
212
|
google/genai/tests/client/test_custom_client.py,sha256=1E8fAhPdKYYnKvDJuqPyptEfU9zh1WmOurxlnXg9huc,3239
|
|
@@ -234,7 +235,7 @@ google/genai/tests/files/test_download.py,sha256=j44qwIhVAcmGSV2EEDgftFfgGoCB0XS
|
|
|
234
235
|
google/genai/tests/files/test_get.py,sha256=IJTaDxh6MCPXDMwZgQJY6xnTQOKyIwJt67O2TRwQmoo,1404
|
|
235
236
|
google/genai/tests/files/test_list.py,sha256=BuidbWnOJKeQcl8g78v9HvLJJhgcHSV2Mpb_b-vvh_o,2224
|
|
236
237
|
google/genai/tests/files/test_register.py,sha256=rCFTY3U3_OrovGgTJsCJ2rQbqV4P1lobNObqegLZCME,8368
|
|
237
|
-
google/genai/tests/files/test_register_table.py,sha256=
|
|
238
|
+
google/genai/tests/files/test_register_table.py,sha256=TiJkutQ2IvPRuTjeSpDUc1kEyRVaTeFvQzvC2iCMjmE,2341
|
|
238
239
|
google/genai/tests/files/test_upload.py,sha256=uPioeL38l9lu2ebenllW3Co1tN5xeCMQuSvHudfRNmU,8372
|
|
239
240
|
google/genai/tests/imports/test_no_optional_imports.py,sha256=fhSdu9gHQYoGYsgbfb3qdoI5cipJJ67Dk5RwSk4vcFE,987
|
|
240
241
|
google/genai/tests/interactions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -328,7 +329,7 @@ google/genai/tests/transformers/test_blobs.py,sha256=B6kNKAc_PsC647dIP_d1jnel25W
|
|
|
328
329
|
google/genai/tests/transformers/test_bytes.py,sha256=F2yxf_s2cxqGzvqf6uhGuNW53MBmbxuBo2Ea--9jFa0,442
|
|
329
330
|
google/genai/tests/transformers/test_duck_type.py,sha256=B8KrsH6mqLZn1JeCq32PhimKm1sLepSZ3b4XvbtLGR4,2395
|
|
330
331
|
google/genai/tests/transformers/test_function_responses.py,sha256=J-KTJBskAxiwL2skRidQN2iumi1uS7nqr_2ACzOlCQc,2307
|
|
331
|
-
google/genai/tests/transformers/test_schema.py,sha256=
|
|
332
|
+
google/genai/tests/transformers/test_schema.py,sha256=kb4VoxMT-EJ0ZPH6El4GO0stNc6rpZmlTOSU9KTKEE0,19927
|
|
332
333
|
google/genai/tests/transformers/test_t_batch.py,sha256=LfTJ3ZSkbMISsNv6stUOXlYWTDejj7ZSpnsyzj5jQmo,9512
|
|
333
334
|
google/genai/tests/transformers/test_t_content.py,sha256=qs7yYq9GKeLegcch48XtDnUnKxMbyAGazyBZ2bUXerk,4005
|
|
334
335
|
google/genai/tests/transformers/test_t_contents.py,sha256=Evu3CerxHYc2w-7ZplYNU-JRysCrKsOWN_AsHGHQ7HI,10057
|
|
@@ -341,7 +342,7 @@ google/genai/tests/tunings/test_cancel.py,sha256=wFBQLIY0Ni1AAxFPjEXdEmewn_6Zg_8
|
|
|
341
342
|
google/genai/tests/tunings/test_end_to_end.py,sha256=ISDpbJGfHuRBV1TZKgAtOfy7WnXD0ilyCt-9HudcWIs,3124
|
|
342
343
|
google/genai/tests/tunings/test_get.py,sha256=Xaji6XYF33DYZ97j-sQZJ9xuUIJfHiP98vi6I2QDtf0,2060
|
|
343
344
|
google/genai/tests/tunings/test_list.py,sha256=VRCLzodimtyLTAL2k-epqTGZcaVRA7F9pSRPi6TeWYU,2263
|
|
344
|
-
google/genai/tests/tunings/test_tune.py,sha256=
|
|
345
|
+
google/genai/tests/tunings/test_tune.py,sha256=gh4yFNQF8g-c3m7BzmMMod_78AIxRhQsv7Oh0FmljN0,15541
|
|
345
346
|
google/genai/tests/types/__init__.py,sha256=KbDhwTfDYAhkNqkbDeqOxlfFwjij-deuilWGXN9cySc,578
|
|
346
347
|
google/genai/tests/types/test_bytes_internal.py,sha256=QNA1sez1FozvrJh7K6-HG2FNBGD2-9VG5ZEp_snPGR4,8632
|
|
347
348
|
google/genai/tests/types/test_bytes_type.py,sha256=cWb_-pBwhnJR2Tfk0PTnLiyvG5k1yKhyc_XgESg81rg,5906
|
|
@@ -351,8 +352,8 @@ google/genai/tests/types/test_part_type.py,sha256=a_0eE2CgE7Ju6ePmu3DrupsZZCFiyD
|
|
|
351
352
|
google/genai/tests/types/test_schema_from_json_schema.py,sha256=WiraJx5mRLW8lKHiWsyHTBYge4jVpeCYklbqGd4BkZQ,13894
|
|
352
353
|
google/genai/tests/types/test_schema_json_schema.py,sha256=zn1gjsXcHTztzmajr8YX3Yb6rWnchjgjw6Yj1NZnG-0,15536
|
|
353
354
|
google/genai/tests/types/test_types.py,sha256=Tqc_PpGo9-XH1xfkAjTCM9xngan_4w__hgpA0BkyA8g,84416
|
|
354
|
-
google_genai-1.
|
|
355
|
-
google_genai-1.
|
|
356
|
-
google_genai-1.
|
|
357
|
-
google_genai-1.
|
|
358
|
-
google_genai-1.
|
|
355
|
+
google_genai-1.61.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
356
|
+
google_genai-1.61.0.dist-info/METADATA,sha256=VvVzYRFsT_8gLRN1hgJmqu5U87Qplzn2ZNy4-7vikDY,53135
|
|
357
|
+
google_genai-1.61.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
358
|
+
google_genai-1.61.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
|
359
|
+
google_genai-1.61.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|