google-genai 1.13.0__py3-none-any.whl → 1.14.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/_api_client.py +59 -17
- google/genai/_live_converters.py +228 -2
- google/genai/caches.py +250 -0
- google/genai/models.py +250 -0
- google/genai/types.py +340 -0
- google/genai/version.py +1 -1
- {google_genai-1.13.0.dist-info → google_genai-1.14.0.dist-info}/METADATA +3 -1
- {google_genai-1.13.0.dist-info → google_genai-1.14.0.dist-info}/RECORD +11 -11
- {google_genai-1.13.0.dist-info → google_genai-1.14.0.dist-info}/WHEEL +1 -1
- {google_genai-1.13.0.dist-info → google_genai-1.14.0.dist-info}/licenses/LICENSE +0 -0
- {google_genai-1.13.0.dist-info → google_genai-1.14.0.dist-info}/top_level.txt +0 -0
google/genai/types.py
CHANGED
@@ -117,6 +117,18 @@ class Mode(_common.CaseInSensitiveEnum):
|
|
117
117
|
MODE_DYNAMIC = 'MODE_DYNAMIC'
|
118
118
|
|
119
119
|
|
120
|
+
class AuthType(_common.CaseInSensitiveEnum):
|
121
|
+
"""Type of auth scheme."""
|
122
|
+
|
123
|
+
AUTH_TYPE_UNSPECIFIED = 'AUTH_TYPE_UNSPECIFIED'
|
124
|
+
NO_AUTH = 'NO_AUTH'
|
125
|
+
API_KEY_AUTH = 'API_KEY_AUTH'
|
126
|
+
HTTP_BASIC_AUTH = 'HTTP_BASIC_AUTH'
|
127
|
+
GOOGLE_SERVICE_ACCOUNT_AUTH = 'GOOGLE_SERVICE_ACCOUNT_AUTH'
|
128
|
+
OAUTH = 'OAUTH'
|
129
|
+
OIDC_AUTH = 'OIDC_AUTH'
|
130
|
+
|
131
|
+
|
120
132
|
class Type(_common.CaseInSensitiveEnum):
|
121
133
|
"""Optional. The type of the data."""
|
122
134
|
|
@@ -998,6 +1010,210 @@ GoogleSearchRetrievalOrDict = Union[
|
|
998
1010
|
]
|
999
1011
|
|
1000
1012
|
|
1013
|
+
class EnterpriseWebSearch(_common.BaseModel):
|
1014
|
+
"""Tool to search public web data, powered by Vertex AI Search and Sec4 compliance."""
|
1015
|
+
|
1016
|
+
pass
|
1017
|
+
|
1018
|
+
|
1019
|
+
class EnterpriseWebSearchDict(TypedDict, total=False):
|
1020
|
+
"""Tool to search public web data, powered by Vertex AI Search and Sec4 compliance."""
|
1021
|
+
|
1022
|
+
pass
|
1023
|
+
|
1024
|
+
|
1025
|
+
EnterpriseWebSearchOrDict = Union[EnterpriseWebSearch, EnterpriseWebSearchDict]
|
1026
|
+
|
1027
|
+
|
1028
|
+
class ApiKeyConfig(_common.BaseModel):
|
1029
|
+
"""Config for authentication with API key."""
|
1030
|
+
|
1031
|
+
api_key_string: Optional[str] = Field(
|
1032
|
+
default=None,
|
1033
|
+
description="""The API key to be used in the request directly.""",
|
1034
|
+
)
|
1035
|
+
|
1036
|
+
|
1037
|
+
class ApiKeyConfigDict(TypedDict, total=False):
|
1038
|
+
"""Config for authentication with API key."""
|
1039
|
+
|
1040
|
+
api_key_string: Optional[str]
|
1041
|
+
"""The API key to be used in the request directly."""
|
1042
|
+
|
1043
|
+
|
1044
|
+
ApiKeyConfigOrDict = Union[ApiKeyConfig, ApiKeyConfigDict]
|
1045
|
+
|
1046
|
+
|
1047
|
+
class AuthConfigGoogleServiceAccountConfig(_common.BaseModel):
|
1048
|
+
"""Config for Google Service Account Authentication."""
|
1049
|
+
|
1050
|
+
service_account: Optional[str] = Field(
|
1051
|
+
default=None,
|
1052
|
+
description="""Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.""",
|
1053
|
+
)
|
1054
|
+
|
1055
|
+
|
1056
|
+
class AuthConfigGoogleServiceAccountConfigDict(TypedDict, total=False):
|
1057
|
+
"""Config for Google Service Account Authentication."""
|
1058
|
+
|
1059
|
+
service_account: Optional[str]
|
1060
|
+
"""Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension."""
|
1061
|
+
|
1062
|
+
|
1063
|
+
AuthConfigGoogleServiceAccountConfigOrDict = Union[
|
1064
|
+
AuthConfigGoogleServiceAccountConfig,
|
1065
|
+
AuthConfigGoogleServiceAccountConfigDict,
|
1066
|
+
]
|
1067
|
+
|
1068
|
+
|
1069
|
+
class AuthConfigHttpBasicAuthConfig(_common.BaseModel):
|
1070
|
+
"""Config for HTTP Basic Authentication."""
|
1071
|
+
|
1072
|
+
credential_secret: Optional[str] = Field(
|
1073
|
+
default=None,
|
1074
|
+
description="""Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.""",
|
1075
|
+
)
|
1076
|
+
|
1077
|
+
|
1078
|
+
class AuthConfigHttpBasicAuthConfigDict(TypedDict, total=False):
|
1079
|
+
"""Config for HTTP Basic Authentication."""
|
1080
|
+
|
1081
|
+
credential_secret: Optional[str]
|
1082
|
+
"""Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource."""
|
1083
|
+
|
1084
|
+
|
1085
|
+
AuthConfigHttpBasicAuthConfigOrDict = Union[
|
1086
|
+
AuthConfigHttpBasicAuthConfig, AuthConfigHttpBasicAuthConfigDict
|
1087
|
+
]
|
1088
|
+
|
1089
|
+
|
1090
|
+
class AuthConfigOauthConfig(_common.BaseModel):
|
1091
|
+
"""Config for user oauth."""
|
1092
|
+
|
1093
|
+
access_token: Optional[str] = Field(
|
1094
|
+
default=None,
|
1095
|
+
description="""Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.""",
|
1096
|
+
)
|
1097
|
+
service_account: Optional[str] = Field(
|
1098
|
+
default=None,
|
1099
|
+
description="""The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.""",
|
1100
|
+
)
|
1101
|
+
|
1102
|
+
|
1103
|
+
class AuthConfigOauthConfigDict(TypedDict, total=False):
|
1104
|
+
"""Config for user oauth."""
|
1105
|
+
|
1106
|
+
access_token: Optional[str]
|
1107
|
+
"""Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time."""
|
1108
|
+
|
1109
|
+
service_account: Optional[str]
|
1110
|
+
"""The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account."""
|
1111
|
+
|
1112
|
+
|
1113
|
+
AuthConfigOauthConfigOrDict = Union[
|
1114
|
+
AuthConfigOauthConfig, AuthConfigOauthConfigDict
|
1115
|
+
]
|
1116
|
+
|
1117
|
+
|
1118
|
+
class AuthConfigOidcConfig(_common.BaseModel):
|
1119
|
+
"""Config for user OIDC auth."""
|
1120
|
+
|
1121
|
+
id_token: Optional[str] = Field(
|
1122
|
+
default=None,
|
1123
|
+
description="""OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.""",
|
1124
|
+
)
|
1125
|
+
service_account: Optional[str] = Field(
|
1126
|
+
default=None,
|
1127
|
+
description="""The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).""",
|
1128
|
+
)
|
1129
|
+
|
1130
|
+
|
1131
|
+
class AuthConfigOidcConfigDict(TypedDict, total=False):
|
1132
|
+
"""Config for user OIDC auth."""
|
1133
|
+
|
1134
|
+
id_token: Optional[str]
|
1135
|
+
"""OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time."""
|
1136
|
+
|
1137
|
+
service_account: Optional[str]
|
1138
|
+
"""The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)."""
|
1139
|
+
|
1140
|
+
|
1141
|
+
AuthConfigOidcConfigOrDict = Union[
|
1142
|
+
AuthConfigOidcConfig, AuthConfigOidcConfigDict
|
1143
|
+
]
|
1144
|
+
|
1145
|
+
|
1146
|
+
class AuthConfig(_common.BaseModel):
|
1147
|
+
"""Auth configuration to run the extension."""
|
1148
|
+
|
1149
|
+
api_key_config: Optional[ApiKeyConfig] = Field(
|
1150
|
+
default=None, description="""Config for API key auth."""
|
1151
|
+
)
|
1152
|
+
auth_type: Optional[AuthType] = Field(
|
1153
|
+
default=None, description="""Type of auth scheme."""
|
1154
|
+
)
|
1155
|
+
google_service_account_config: Optional[
|
1156
|
+
AuthConfigGoogleServiceAccountConfig
|
1157
|
+
] = Field(
|
1158
|
+
default=None, description="""Config for Google Service Account auth."""
|
1159
|
+
)
|
1160
|
+
http_basic_auth_config: Optional[AuthConfigHttpBasicAuthConfig] = Field(
|
1161
|
+
default=None, description="""Config for HTTP Basic auth."""
|
1162
|
+
)
|
1163
|
+
oauth_config: Optional[AuthConfigOauthConfig] = Field(
|
1164
|
+
default=None, description="""Config for user oauth."""
|
1165
|
+
)
|
1166
|
+
oidc_config: Optional[AuthConfigOidcConfig] = Field(
|
1167
|
+
default=None, description="""Config for user OIDC auth."""
|
1168
|
+
)
|
1169
|
+
|
1170
|
+
|
1171
|
+
class AuthConfigDict(TypedDict, total=False):
|
1172
|
+
"""Auth configuration to run the extension."""
|
1173
|
+
|
1174
|
+
api_key_config: Optional[ApiKeyConfigDict]
|
1175
|
+
"""Config for API key auth."""
|
1176
|
+
|
1177
|
+
auth_type: Optional[AuthType]
|
1178
|
+
"""Type of auth scheme."""
|
1179
|
+
|
1180
|
+
google_service_account_config: Optional[
|
1181
|
+
AuthConfigGoogleServiceAccountConfigDict
|
1182
|
+
]
|
1183
|
+
"""Config for Google Service Account auth."""
|
1184
|
+
|
1185
|
+
http_basic_auth_config: Optional[AuthConfigHttpBasicAuthConfigDict]
|
1186
|
+
"""Config for HTTP Basic auth."""
|
1187
|
+
|
1188
|
+
oauth_config: Optional[AuthConfigOauthConfigDict]
|
1189
|
+
"""Config for user oauth."""
|
1190
|
+
|
1191
|
+
oidc_config: Optional[AuthConfigOidcConfigDict]
|
1192
|
+
"""Config for user OIDC auth."""
|
1193
|
+
|
1194
|
+
|
1195
|
+
AuthConfigOrDict = Union[AuthConfig, AuthConfigDict]
|
1196
|
+
|
1197
|
+
|
1198
|
+
class GoogleMaps(_common.BaseModel):
|
1199
|
+
"""Tool to support Google Maps in Model."""
|
1200
|
+
|
1201
|
+
auth_config: Optional[AuthConfig] = Field(
|
1202
|
+
default=None,
|
1203
|
+
description="""Optional. Auth config for the Google Maps tool.""",
|
1204
|
+
)
|
1205
|
+
|
1206
|
+
|
1207
|
+
class GoogleMapsDict(TypedDict, total=False):
|
1208
|
+
"""Tool to support Google Maps in Model."""
|
1209
|
+
|
1210
|
+
auth_config: Optional[AuthConfigDict]
|
1211
|
+
"""Optional. Auth config for the Google Maps tool."""
|
1212
|
+
|
1213
|
+
|
1214
|
+
GoogleMapsOrDict = Union[GoogleMaps, GoogleMapsDict]
|
1215
|
+
|
1216
|
+
|
1001
1217
|
class VertexAISearch(_common.BaseModel):
|
1002
1218
|
"""Retrieve from Vertex AI Search datastore or engine for grounding.
|
1003
1219
|
|
@@ -2120,6 +2336,16 @@ class Tool(_common.BaseModel):
|
|
2120
2336
|
default=None,
|
2121
2337
|
description="""Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.""",
|
2122
2338
|
)
|
2339
|
+
enterprise_web_search: Optional[EnterpriseWebSearch] = Field(
|
2340
|
+
default=None,
|
2341
|
+
description="""Optional. Enterprise web search tool type. Specialized retrieval
|
2342
|
+
tool that is powered by Vertex AI Search and Sec4 compliance.""",
|
2343
|
+
)
|
2344
|
+
google_maps: Optional[GoogleMaps] = Field(
|
2345
|
+
default=None,
|
2346
|
+
description="""Optional. Google Maps tool type. Specialized retrieval tool
|
2347
|
+
that is powered by Google Maps.""",
|
2348
|
+
)
|
2123
2349
|
code_execution: Optional[ToolCodeExecution] = Field(
|
2124
2350
|
default=None,
|
2125
2351
|
description="""Optional. CodeExecution tool type. Enables the model to execute code as part of generation. This field is only used by the Gemini Developer API services.""",
|
@@ -2143,6 +2369,14 @@ class ToolDict(TypedDict, total=False):
|
|
2143
2369
|
google_search_retrieval: Optional[GoogleSearchRetrievalDict]
|
2144
2370
|
"""Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search."""
|
2145
2371
|
|
2372
|
+
enterprise_web_search: Optional[EnterpriseWebSearchDict]
|
2373
|
+
"""Optional. Enterprise web search tool type. Specialized retrieval
|
2374
|
+
tool that is powered by Vertex AI Search and Sec4 compliance."""
|
2375
|
+
|
2376
|
+
google_maps: Optional[GoogleMapsDict]
|
2377
|
+
"""Optional. Google Maps tool type. Specialized retrieval tool
|
2378
|
+
that is powered by Google Maps."""
|
2379
|
+
|
2146
2380
|
code_execution: Optional[ToolCodeExecutionDict]
|
2147
2381
|
"""Optional. CodeExecution tool type. Enables the model to execute code as part of generation. This field is only used by the Gemini Developer API services."""
|
2148
2382
|
|
@@ -2187,6 +2421,62 @@ FunctionCallingConfigOrDict = Union[
|
|
2187
2421
|
]
|
2188
2422
|
|
2189
2423
|
|
2424
|
+
class LatLng(_common.BaseModel):
|
2425
|
+
"""An object that represents a latitude/longitude pair.
|
2426
|
+
|
2427
|
+
This is expressed as a pair of doubles to represent degrees latitude and
|
2428
|
+
degrees longitude. Unless specified otherwise, this object must conform to the
|
2429
|
+
<a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
|
2430
|
+
WGS84 standard</a>. Values must be within normalized ranges.
|
2431
|
+
"""
|
2432
|
+
|
2433
|
+
latitude: Optional[float] = Field(
|
2434
|
+
default=None,
|
2435
|
+
description="""The latitude in degrees. It must be in the range [-90.0, +90.0].""",
|
2436
|
+
)
|
2437
|
+
longitude: Optional[float] = Field(
|
2438
|
+
default=None,
|
2439
|
+
description="""The longitude in degrees. It must be in the range [-180.0, +180.0]""",
|
2440
|
+
)
|
2441
|
+
|
2442
|
+
|
2443
|
+
class LatLngDict(TypedDict, total=False):
|
2444
|
+
"""An object that represents a latitude/longitude pair.
|
2445
|
+
|
2446
|
+
This is expressed as a pair of doubles to represent degrees latitude and
|
2447
|
+
degrees longitude. Unless specified otherwise, this object must conform to the
|
2448
|
+
<a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
|
2449
|
+
WGS84 standard</a>. Values must be within normalized ranges.
|
2450
|
+
"""
|
2451
|
+
|
2452
|
+
latitude: Optional[float]
|
2453
|
+
"""The latitude in degrees. It must be in the range [-90.0, +90.0]."""
|
2454
|
+
|
2455
|
+
longitude: Optional[float]
|
2456
|
+
"""The longitude in degrees. It must be in the range [-180.0, +180.0]"""
|
2457
|
+
|
2458
|
+
|
2459
|
+
LatLngOrDict = Union[LatLng, LatLngDict]
|
2460
|
+
|
2461
|
+
|
2462
|
+
class RetrievalConfig(_common.BaseModel):
|
2463
|
+
"""Retrieval config."""
|
2464
|
+
|
2465
|
+
lat_lng: Optional[LatLng] = Field(
|
2466
|
+
default=None, description="""Optional. The location of the user."""
|
2467
|
+
)
|
2468
|
+
|
2469
|
+
|
2470
|
+
class RetrievalConfigDict(TypedDict, total=False):
|
2471
|
+
"""Retrieval config."""
|
2472
|
+
|
2473
|
+
lat_lng: Optional[LatLngDict]
|
2474
|
+
"""Optional. The location of the user."""
|
2475
|
+
|
2476
|
+
|
2477
|
+
RetrievalConfigOrDict = Union[RetrievalConfig, RetrievalConfigDict]
|
2478
|
+
|
2479
|
+
|
2190
2480
|
class ToolConfig(_common.BaseModel):
|
2191
2481
|
"""Tool config.
|
2192
2482
|
|
@@ -2196,6 +2486,9 @@ class ToolConfig(_common.BaseModel):
|
|
2196
2486
|
function_calling_config: Optional[FunctionCallingConfig] = Field(
|
2197
2487
|
default=None, description="""Optional. Function calling config."""
|
2198
2488
|
)
|
2489
|
+
retrieval_config: Optional[RetrievalConfig] = Field(
|
2490
|
+
default=None, description="""Optional. Retrieval config."""
|
2491
|
+
)
|
2199
2492
|
|
2200
2493
|
|
2201
2494
|
class ToolConfigDict(TypedDict, total=False):
|
@@ -2207,6 +2500,9 @@ class ToolConfigDict(TypedDict, total=False):
|
|
2207
2500
|
function_calling_config: Optional[FunctionCallingConfigDict]
|
2208
2501
|
"""Optional. Function calling config."""
|
2209
2502
|
|
2503
|
+
retrieval_config: Optional[RetrievalConfigDict]
|
2504
|
+
"""Optional. Retrieval config."""
|
2505
|
+
|
2210
2506
|
|
2211
2507
|
ToolConfigOrDict = Union[ToolConfig, ToolConfigDict]
|
2212
2508
|
|
@@ -9914,11 +10210,23 @@ class LiveServerMessage(_common.BaseModel):
|
|
9914
10210
|
):
|
9915
10211
|
return None
|
9916
10212
|
text = ''
|
10213
|
+
non_text_parts = []
|
9917
10214
|
for part in self.server_content.model_turn.parts:
|
10215
|
+
for field_name, field_value in part.model_dump(
|
10216
|
+
exclude={'text', 'thought'}
|
10217
|
+
).items():
|
10218
|
+
if field_value is not None:
|
10219
|
+
non_text_parts.append(field_name)
|
9918
10220
|
if isinstance(part.text, str):
|
9919
10221
|
if isinstance(part.thought, bool) and part.thought:
|
9920
10222
|
continue
|
9921
10223
|
text += part.text
|
10224
|
+
if non_text_parts:
|
10225
|
+
logger.warning(
|
10226
|
+
'Warning: there are non-text parts in the response:'
|
10227
|
+
f' {non_text_parts}, returning concatenated text result from text'
|
10228
|
+
' parts, check out the non text parts for full response from model.'
|
10229
|
+
)
|
9922
10230
|
return text if text else None
|
9923
10231
|
|
9924
10232
|
@property
|
@@ -9932,9 +10240,21 @@ class LiveServerMessage(_common.BaseModel):
|
|
9932
10240
|
):
|
9933
10241
|
return None
|
9934
10242
|
concatenated_data = b''
|
10243
|
+
non_data_parts = []
|
9935
10244
|
for part in self.server_content.model_turn.parts:
|
10245
|
+
for field_name, field_value in part.model_dump(
|
10246
|
+
exclude={'inline_data'}
|
10247
|
+
).items():
|
10248
|
+
if field_value is not None:
|
10249
|
+
non_data_parts.append(field_name)
|
9936
10250
|
if part.inline_data and isinstance(part.inline_data.data, bytes):
|
9937
10251
|
concatenated_data += part.inline_data.data
|
10252
|
+
if non_data_parts:
|
10253
|
+
logger.warning(
|
10254
|
+
'Warning: there are non-data parts in the response:'
|
10255
|
+
f' {non_data_parts}, returning concatenated data result from data'
|
10256
|
+
' parts, check out the non data parts for full response from model.'
|
10257
|
+
)
|
9938
10258
|
return concatenated_data if len(concatenated_data) > 0 else None
|
9939
10259
|
|
9940
10260
|
|
@@ -10212,6 +10532,17 @@ class LiveClientSetup(_common.BaseModel):
|
|
10212
10532
|
|
10213
10533
|
If included, server will compress context window to fit into given length.""",
|
10214
10534
|
)
|
10535
|
+
input_audio_transcription: Optional[AudioTranscriptionConfig] = Field(
|
10536
|
+
default=None,
|
10537
|
+
description="""The transcription of the input aligns with the input audio language.
|
10538
|
+
""",
|
10539
|
+
)
|
10540
|
+
output_audio_transcription: Optional[AudioTranscriptionConfig] = Field(
|
10541
|
+
default=None,
|
10542
|
+
description="""The transcription of the output aligns with the language code
|
10543
|
+
specified for the output audio.
|
10544
|
+
""",
|
10545
|
+
)
|
10215
10546
|
|
10216
10547
|
|
10217
10548
|
class LiveClientSetupDict(TypedDict, total=False):
|
@@ -10250,6 +10581,15 @@ class LiveClientSetupDict(TypedDict, total=False):
|
|
10250
10581
|
|
10251
10582
|
If included, server will compress context window to fit into given length."""
|
10252
10583
|
|
10584
|
+
input_audio_transcription: Optional[AudioTranscriptionConfigDict]
|
10585
|
+
"""The transcription of the input aligns with the input audio language.
|
10586
|
+
"""
|
10587
|
+
|
10588
|
+
output_audio_transcription: Optional[AudioTranscriptionConfigDict]
|
10589
|
+
"""The transcription of the output aligns with the language code
|
10590
|
+
specified for the output audio.
|
10591
|
+
"""
|
10592
|
+
|
10253
10593
|
|
10254
10594
|
LiveClientSetupOrDict = Union[LiveClientSetup, LiveClientSetupDict]
|
10255
10595
|
|
google/genai/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: google-genai
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.14.0
|
4
4
|
Summary: GenAI Python SDK
|
5
5
|
Author-email: Google LLC <googleapis-packages@google.com>
|
6
6
|
License: Apache-2.0
|
@@ -32,6 +32,8 @@ Dynamic: license-file
|
|
32
32
|
# Google Gen AI SDK
|
33
33
|
|
34
34
|
[](https://pypi.org/project/google-genai/)
|
35
|
+

|
36
|
+
[](https://pypistats.org/packages/google-genai)
|
35
37
|
|
36
38
|
--------
|
37
39
|
**Documentation:** https://googleapis.github.io/python-genai/
|
@@ -1,30 +1,30 @@
|
|
1
1
|
google/genai/__init__.py,sha256=IYw-PcsdgjSpS1mU_ZcYkTfPocsJ4aVmrDxP7vX7c6Y,709
|
2
|
-
google/genai/_api_client.py,sha256=
|
2
|
+
google/genai/_api_client.py,sha256=aNke14tWOoR7k-vbQuIpx62gX-t3FH0hYaE3QBbA7_0,37679
|
3
3
|
google/genai/_api_module.py,sha256=66FsFq9N8PdTegDyx3am3NHpI0Bw7HBmifUMCrZsx_Q,902
|
4
4
|
google/genai/_automatic_function_calling_util.py,sha256=MB4lzbiLuosYXYafJq9d8QhTfK21cSkIwyzZr6W5Hjw,10294
|
5
5
|
google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
|
6
6
|
google/genai/_common.py,sha256=mBI8hEiztd3M_kBRTja0cprdGEoH5xNFCUykWDTtl-A,10573
|
7
7
|
google/genai/_extra_utils.py,sha256=3wyzcRi29qgcxB2PvqzvY1sqPwYQHt5KCemI9RaKE9s,14824
|
8
|
-
google/genai/_live_converters.py,sha256=
|
8
|
+
google/genai/_live_converters.py,sha256=d90poMynT4okhYcWrQKpVk6WiYWyj9HsOBguaKN96Ks,72232
|
9
9
|
google/genai/_replay_api_client.py,sha256=pppcP0yAmXk8LS9uKXNBN1bJyoTDUDdt-WqfhdmgNZk,20006
|
10
10
|
google/genai/_test_api_client.py,sha256=XNOWq8AkYbqInv1aljNGlFXsv8slQIWTYy_hdcCetD0,4797
|
11
11
|
google/genai/_transformers.py,sha256=9Njw7X2nP3ySUy2282olQIxFYoE6dOOJ363HKr4pd5A,34514
|
12
12
|
google/genai/batches.py,sha256=gyNb--psM7cqXEP5RsJ908ismvsFFlDNRxt7mCwhYgM,34943
|
13
|
-
google/genai/caches.py,sha256=
|
13
|
+
google/genai/caches.py,sha256=3rx4GSoCQa76HAoMAcjgbCYmH7BBdM_Y1jf8BDxiOLU,58408
|
14
14
|
google/genai/chats.py,sha256=6K9wuH3yDngdbZCYNA13G7GeMsya100QQdS0_jt6m1A,16978
|
15
15
|
google/genai/client.py,sha256=OkJxW-9_Mi7O1B_HxdBgHQgeM7mEIn1eQQIMkiaunTE,10477
|
16
16
|
google/genai/errors.py,sha256=d22FmoLj5kte9UZSCLwkGhJhqp2JXlJHyNB6wC_37w4,4795
|
17
17
|
google/genai/files.py,sha256=PB5Rh5WiLOPHcqPR1inGyhqL9PiE0BFHSL4Dz9HKtl8,39516
|
18
18
|
google/genai/live.py,sha256=PtosiGwQ4I72HMlAhiBDrMteWCH-_RBIIww6mVHDIuc,35105
|
19
|
-
google/genai/models.py,sha256=
|
19
|
+
google/genai/models.py,sha256=Cy3uyULLtqiziJdB1d0M_uq7p91LRnuSyjE6HqkTGxE,210250
|
20
20
|
google/genai/operations.py,sha256=wWGngU4N3U2y_JteBkwqTmoNncehk2NcZgPyHaVulfI,20304
|
21
21
|
google/genai/pagers.py,sha256=dhdKUr4KiUGHOt8OPLo51I0qXJpBU2iH4emTKC4UINI,6797
|
22
22
|
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
23
23
|
google/genai/tunings.py,sha256=X2dIs9v9e91bd-PwZja-BaA3kNQxwyAjt1x5fhP4Phk,47594
|
24
|
-
google/genai/types.py,sha256
|
25
|
-
google/genai/version.py,sha256=
|
26
|
-
google_genai-1.
|
27
|
-
google_genai-1.
|
28
|
-
google_genai-1.
|
29
|
-
google_genai-1.
|
30
|
-
google_genai-1.
|
24
|
+
google/genai/types.py,sha256=-4pDSUJm-p4hWQGXF-jaRJky62ild0YYj779T_vnyYw,380305
|
25
|
+
google/genai/version.py,sha256=JfaQeixdUPeyGjk5Go9QAXqET7q1wsD96DuQDdI8j8E,627
|
26
|
+
google_genai-1.14.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
27
|
+
google_genai-1.14.0.dist-info/METADATA,sha256=Xc190vgHeoF7eELP7e1ArEFFfRp_u_cvdDH46SzCkgc,33082
|
28
|
+
google_genai-1.14.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
29
|
+
google_genai-1.14.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
30
|
+
google_genai-1.14.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|