google-genai 1.15.0__py3-none-any.whl → 1.16.1__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/__init__.py +5 -3
- google/genai/_adapters.py +55 -0
- google/genai/_api_client.py +3 -3
- google/genai/_api_module.py +1 -1
- google/genai/_automatic_function_calling_util.py +1 -1
- google/genai/_common.py +1 -1
- google/genai/_extra_utils.py +114 -9
- google/genai/_live_converters.py +1295 -20
- google/genai/_mcp_utils.py +117 -0
- google/genai/_replay_api_client.py +1 -1
- google/genai/_test_api_client.py +1 -1
- google/genai/_tokens_converters.py +1701 -0
- google/genai/_transformers.py +66 -33
- google/genai/caches.py +223 -20
- google/genai/chats.py +1 -1
- google/genai/client.py +12 -1
- google/genai/errors.py +1 -1
- google/genai/live.py +218 -35
- google/genai/live_music.py +201 -0
- google/genai/models.py +505 -44
- google/genai/pagers.py +1 -1
- google/genai/tokens.py +357 -0
- google/genai/types.py +7887 -6765
- google/genai/version.py +2 -2
- {google_genai-1.15.0.dist-info → google_genai-1.16.1.dist-info}/METADATA +8 -4
- google_genai-1.16.1.dist-info/RECORD +35 -0
- {google_genai-1.15.0.dist-info → google_genai-1.16.1.dist-info}/WHEEL +1 -1
- google_genai-1.15.0.dist-info/RECORD +0 -30
- {google_genai-1.15.0.dist-info → google_genai-1.16.1.dist-info}/licenses/LICENSE +0 -0
- {google_genai-1.15.0.dist-info → google_genai-1.16.1.dist-info}/top_level.txt +0 -0
google/genai/version.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2025 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -13,4 +13,4 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
#
|
15
15
|
|
16
|
-
__version__ = '1.
|
16
|
+
__version__ = '1.16.1' # x-release-please-version
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: google-genai
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.16.1
|
4
4
|
Summary: GenAI Python SDK
|
5
5
|
Author-email: Google LLC <googleapis-packages@google.com>
|
6
6
|
License: Apache-2.0
|
@@ -40,7 +40,11 @@ Dynamic: license-file
|
|
40
40
|
|
41
41
|
-----
|
42
42
|
|
43
|
-
Google Gen AI Python SDK provides an interface for developers to integrate
|
43
|
+
Google Gen AI Python SDK provides an interface for developers to integrate
|
44
|
+
Google's generative models into their Python applications. It supports the
|
45
|
+
[Gemini Developer API](https://ai.google.dev/gemini-api/docs) and
|
46
|
+
[Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview)
|
47
|
+
APIs.
|
44
48
|
|
45
49
|
## Installation
|
46
50
|
|
@@ -88,8 +92,8 @@ Developer API or the Gemini API in Vertex AI.
|
|
88
92
|
export GOOGLE_API_KEY='your-api-key'
|
89
93
|
```
|
90
94
|
|
91
|
-
**Gemini API on Vertex AI:** Set `GOOGLE_GENAI_USE_VERTEXAI`,
|
92
|
-
and `GOOGLE_CLOUD_LOCATION`, as shown below:
|
95
|
+
**Gemini API on Vertex AI:** Set `GOOGLE_GENAI_USE_VERTEXAI`,
|
96
|
+
`GOOGLE_CLOUD_PROJECT` and `GOOGLE_CLOUD_LOCATION`, as shown below:
|
93
97
|
|
94
98
|
```bash
|
95
99
|
export GOOGLE_GENAI_USE_VERTEXAI=true
|
@@ -0,0 +1,35 @@
|
|
1
|
+
google/genai/__init__.py,sha256=Po1TtEyh1oa7fSqVI9Yzj2gywmo7OVDKEyqJ8rs9aAk,776
|
2
|
+
google/genai/_adapters.py,sha256=Kok38miNYJff2n--l0zEK_hbq0y2rWOH7k75J7SMYbQ,1744
|
3
|
+
google/genai/_api_client.py,sha256=N31CFoU5pj29l3RBVNDeEeFKj96TN8ZVoXRGPwJALrE,37922
|
4
|
+
google/genai/_api_module.py,sha256=lj8eUWx8_LBGBz-49qz6_ywWm3GYp3d8Bg5JoOHbtbI,902
|
5
|
+
google/genai/_automatic_function_calling_util.py,sha256=qKbPUmMZwUrIadUAnW3FxXTYw4sqUdb6-_Q6r-19ptw,10297
|
6
|
+
google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
|
7
|
+
google/genai/_common.py,sha256=JcRu5Qo5idx1caTEJDw4Li-aJz8UT4KNAqh4N0LTmDw,10573
|
8
|
+
google/genai/_extra_utils.py,sha256=_w8hB9Ag7giRR94nIOBJFTLiLEufulPXkCZpJG1XY5g,19241
|
9
|
+
google/genai/_live_converters.py,sha256=eIA72TceXewFWK7tbM-ZSDc6BmxePT47gNYlcCpusPE,112579
|
10
|
+
google/genai/_mcp_utils.py,sha256=pjtKoIseBWwV5-jSjF8ia4bFRUHHRowrrD1WrUSlwEo,3990
|
11
|
+
google/genai/_replay_api_client.py,sha256=DA79UVYNB_osoT27P-amI-U3f2rHM5GmBj0KS2QNE9I,20006
|
12
|
+
google/genai/_test_api_client.py,sha256=4ruFIy5_1qcbKqqIBu3HSQbpSOBrxiecBtDZaTGFR1s,4797
|
13
|
+
google/genai/_tokens_converters.py,sha256=xvXALVYKBP02qGm-pk73PeTJV5Z32QYq-Ckk_Evulzc,49649
|
14
|
+
google/genai/_transformers.py,sha256=oeZKc5LAyH-CDL0g6hpD1SqkajoDBlc7pW4-BuNAZT0,34957
|
15
|
+
google/genai/batches.py,sha256=gyNb--psM7cqXEP5RsJ908ismvsFFlDNRxt7mCwhYgM,34943
|
16
|
+
google/genai/caches.py,sha256=I_JUQ0h91jSvuHSzcYFRZufW_IbxayusqTVp1J2BbCo,65939
|
17
|
+
google/genai/chats.py,sha256=I4PlyEmyC43CdlDpHlxXpwDeYKT36AnUl7RgYUX-O5U,16978
|
18
|
+
google/genai/client.py,sha256=9AWoFL2g-OQFA4Zqpecg74b7h3i5Q9ZlXF4bFePV0zA,10759
|
19
|
+
google/genai/errors.py,sha256=nLAVglUGuPdLqLcnN_VCifoi7V17u9BQ9AfxUdRzZLg,4795
|
20
|
+
google/genai/files.py,sha256=PB5Rh5WiLOPHcqPR1inGyhqL9PiE0BFHSL4Dz9HKtl8,39516
|
21
|
+
google/genai/live.py,sha256=7LM7ltBsnoVCXcughel9ZhTTZAgfIkjo77f_qm6cGWw,40815
|
22
|
+
google/genai/live_music.py,sha256=lO-nDz2gEJ8bYesJC1Aru4IrsV7raEePf4sH3QQT6yI,7119
|
23
|
+
google/genai/models.py,sha256=o7XuvKHRmwauDtIsjx93DP1i6k8hTyEJZJEBTuivRxQ,228279
|
24
|
+
google/genai/operations.py,sha256=wWGngU4N3U2y_JteBkwqTmoNncehk2NcZgPyHaVulfI,20304
|
25
|
+
google/genai/pagers.py,sha256=nyVYxp92rS-UaewO_oBgP593knofeLU6yOn6RolNoGQ,6797
|
26
|
+
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
27
|
+
google/genai/tokens.py,sha256=g2gxefzN5-36B5qUkLL6MBSe31IgXgW7k_WEstRZypg,12187
|
28
|
+
google/genai/tunings.py,sha256=bmLGBN1EhsDvm-OpHwX3UgNPauG2FUJsq0Z327C6Tmk,49226
|
29
|
+
google/genai/types.py,sha256=KAEeRXsyuuj0VW6-WqI07wEt3z35O6OLCQv2dkoS-GM,426855
|
30
|
+
google/genai/version.py,sha256=sdcw-TeGGq2Qika-y_321x99ICw8rDScGv5bYteyKGE,627
|
31
|
+
google_genai-1.16.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
32
|
+
google_genai-1.16.1.dist-info/METADATA,sha256=pyVxs87raJ6qgXvrcpp4Q4NYbRw1dsoAmnn3khG8Epg,35580
|
33
|
+
google_genai-1.16.1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
34
|
+
google_genai-1.16.1.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
35
|
+
google_genai-1.16.1.dist-info/RECORD,,
|
@@ -1,30 +0,0 @@
|
|
1
|
-
google/genai/__init__.py,sha256=IYw-PcsdgjSpS1mU_ZcYkTfPocsJ4aVmrDxP7vX7c6Y,709
|
2
|
-
google/genai/_api_client.py,sha256=fFYeZ8TZnl4zm6XPCvjrnUbHPHgr_qZ3HxWhVnOHJ1U,37869
|
3
|
-
google/genai/_api_module.py,sha256=66FsFq9N8PdTegDyx3am3NHpI0Bw7HBmifUMCrZsx_Q,902
|
4
|
-
google/genai/_automatic_function_calling_util.py,sha256=wFFKTvlLpeqiP6zgH1LwWW3DYYWeLoJ_DkytVHJ89rI,10297
|
5
|
-
google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
|
6
|
-
google/genai/_common.py,sha256=mBI8hEiztd3M_kBRTja0cprdGEoH5xNFCUykWDTtl-A,10573
|
7
|
-
google/genai/_extra_utils.py,sha256=3wyzcRi29qgcxB2PvqzvY1sqPwYQHt5KCemI9RaKE9s,14824
|
8
|
-
google/genai/_live_converters.py,sha256=VANY82SZueOJX2ek03IUyvgyP-acbj1NKm-IjhpMMQw,74810
|
9
|
-
google/genai/_replay_api_client.py,sha256=pppcP0yAmXk8LS9uKXNBN1bJyoTDUDdt-WqfhdmgNZk,20006
|
10
|
-
google/genai/_test_api_client.py,sha256=XNOWq8AkYbqInv1aljNGlFXsv8slQIWTYy_hdcCetD0,4797
|
11
|
-
google/genai/_transformers.py,sha256=9Njw7X2nP3ySUy2282olQIxFYoE6dOOJ363HKr4pd5A,34514
|
12
|
-
google/genai/batches.py,sha256=gyNb--psM7cqXEP5RsJ908ismvsFFlDNRxt7mCwhYgM,34943
|
13
|
-
google/genai/caches.py,sha256=5Z-c84DuccMQCVITYLLTj0NRH2KKNXl4gzAkpEBiUnw,59761
|
14
|
-
google/genai/chats.py,sha256=6K9wuH3yDngdbZCYNA13G7GeMsya100QQdS0_jt6m1A,16978
|
15
|
-
google/genai/client.py,sha256=OkJxW-9_Mi7O1B_HxdBgHQgeM7mEIn1eQQIMkiaunTE,10477
|
16
|
-
google/genai/errors.py,sha256=d22FmoLj5kte9UZSCLwkGhJhqp2JXlJHyNB6wC_37w4,4795
|
17
|
-
google/genai/files.py,sha256=PB5Rh5WiLOPHcqPR1inGyhqL9PiE0BFHSL4Dz9HKtl8,39516
|
18
|
-
google/genai/live.py,sha256=PtosiGwQ4I72HMlAhiBDrMteWCH-_RBIIww6mVHDIuc,35105
|
19
|
-
google/genai/models.py,sha256=ldNpy0DwnK72_oVfvlK9x6-YK9u_ZQ65Dra0ddnvPek,214467
|
20
|
-
google/genai/operations.py,sha256=wWGngU4N3U2y_JteBkwqTmoNncehk2NcZgPyHaVulfI,20304
|
21
|
-
google/genai/pagers.py,sha256=dhdKUr4KiUGHOt8OPLo51I0qXJpBU2iH4emTKC4UINI,6797
|
22
|
-
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
23
|
-
google/genai/tunings.py,sha256=bmLGBN1EhsDvm-OpHwX3UgNPauG2FUJsq0Z327C6Tmk,49226
|
24
|
-
google/genai/types.py,sha256=jFDra81W6-DOCXthJzjhQpbUjH-01_ZaziEWwPJBGyg,386019
|
25
|
-
google/genai/version.py,sha256=YR-NrHLpLS5deIRlUcFzZEz8W284JQPHrAUOeUt0Q7A,627
|
26
|
-
google_genai-1.15.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
27
|
-
google_genai-1.15.0.dist-info/METADATA,sha256=xnydtMjKTfpQ50V0kny2Q7oRCuUULKvZoO30Gb8kEHw,35580
|
28
|
-
google_genai-1.15.0.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
29
|
-
google_genai-1.15.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
30
|
-
google_genai-1.15.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|