@@ -199,7 +199,10 @@ def _FunctionDeclaration_to_vertex(
199199 )
200200
201201 if getv (from_object , ['behavior' ]) is not None :
202- raise ValueError ('behavior parameter is not supported in Vertex AI.' )
202+ raise ValueError (
203+ 'behavior parameter is not supported in Gemini Enterprise Agent'
204+ ' Platform.'
205+ )
203206
204207 return to_object
205208
@@ -317,7 +320,8 @@ def _GenerationConfig_to_vertex(
317320
318321 if getv (from_object , ['enable_enhanced_civic_answers' ]) is not None :
319322 raise ValueError (
320- 'enable_enhanced_civic_answers parameter is not supported in Vertex AI.'
323+ 'enable_enhanced_civic_answers parameter is not supported in Gemini'
324+ ' Enterprise Agent Platform.'
321325 )
322326
323327 return to_object
@@ -548,7 +552,8 @@ def _LiveClientRealtimeInput_to_vertex(
548552
549553 if getv (from_object , ['audio_stream_end' ]) is not None :
550554 raise ValueError (
551- 'audio_stream_end parameter is not supported in Vertex AI.'
555+ 'audio_stream_end parameter is not supported in Gemini Enterprise Agent'
556+ ' Platform.'
552557 )
553558
554559 if getv (from_object , ['video' ]) is not None :
@@ -738,7 +743,10 @@ def _LiveClientSetup_to_vertex(
738743 )
739744
740745 if getv (from_object , ['history_config' ]) is not None :
741- raise ValueError ('history_config parameter is not supported in Vertex AI.' )
746+ raise ValueError (
747+ 'history_config parameter is not supported in Gemini Enterprise Agent'
748+ ' Platform.'
749+ )
742750
743751 if getv (from_object , ['avatar_config' ]) is not None :
744752 setv (to_object , ['avatarConfig' ], getv (from_object , ['avatar_config' ]))
@@ -1094,7 +1102,10 @@ def _LiveConnectConfig_to_vertex(
10941102 )
10951103
10961104 if getv (from_object , ['history_config' ]) is not None :
1097- raise ValueError ('history_config parameter is not supported in Vertex AI.' )
1105+ raise ValueError (
1106+ 'history_config parameter is not supported in Gemini Enterprise Agent'
1107+ ' Platform.'
1108+ )
10981109
10991110 if getv (from_object , ['avatar_config' ]) is not None :
11001111 setv (
@@ -1169,19 +1180,26 @@ def _LiveMusicClientMessage_to_vertex(
11691180) -> dict [str , Any ]:
11701181 to_object : dict [str , Any ] = {}
11711182 if getv (from_object , ['setup' ]) is not None :
1172- raise ValueError ('setup parameter is not supported in Vertex AI.' )
1183+ raise ValueError (
1184+ 'setup parameter is not supported in Gemini Enterprise Agent Platform.'
1185+ )
11731186
11741187 if getv (from_object , ['client_content' ]) is not None :
1175- raise ValueError ('client_content parameter is not supported in Vertex AI.' )
1188+ raise ValueError (
1189+ 'client_content parameter is not supported in Gemini Enterprise Agent'
1190+ ' Platform.'
1191+ )
11761192
11771193 if getv (from_object , ['music_generation_config' ]) is not None :
11781194 raise ValueError (
1179- 'music_generation_config parameter is not supported in Vertex AI.'
1195+ 'music_generation_config parameter is not supported in Gemini'
1196+ ' Enterprise Agent Platform.'
11801197 )
11811198
11821199 if getv (from_object , ['playback_control' ]) is not None :
11831200 raise ValueError (
1184- 'playback_control parameter is not supported in Vertex AI.'
1201+ 'playback_control parameter is not supported in Gemini Enterprise Agent'
1202+ ' Platform.'
11851203 )
11861204
11871205 return to_object
@@ -1204,7 +1222,9 @@ def _LiveMusicConnectParameters_to_vertex(
12041222) -> dict [str , Any ]:
12051223 to_object : dict [str , Any ] = {}
12061224 if getv (from_object , ['model' ]) is not None :
1207- raise ValueError ('model parameter is not supported in Vertex AI.' )
1225+ raise ValueError (
1226+ 'model parameter is not supported in Gemini Enterprise Agent Platform.'
1227+ )
12081228
12091229 return to_object
12101230
@@ -1231,7 +1251,8 @@ def _LiveMusicSetConfigParameters_to_vertex(
12311251 to_object : dict [str , Any ] = {}
12321252 if getv (from_object , ['music_generation_config' ]) is not None :
12331253 raise ValueError (
1234- 'music_generation_config parameter is not supported in Vertex AI.'
1254+ 'music_generation_config parameter is not supported in Gemini'
1255+ ' Enterprise Agent Platform.'
12351256 )
12361257
12371258 return to_object
@@ -1259,7 +1280,8 @@ def _LiveMusicSetWeightedPromptsParameters_to_vertex(
12591280 to_object : dict [str , Any ] = {}
12601281 if getv (from_object , ['weighted_prompts' ]) is not None :
12611282 raise ValueError (
1262- 'weighted_prompts parameter is not supported in Vertex AI.'
1283+ 'weighted_prompts parameter is not supported in Gemini Enterprise Agent'
1284+ ' Platform.'
12631285 )
12641286
12651287 return to_object
@@ -1601,13 +1623,22 @@ def _Part_to_vertex(
16011623 setv (to_object , ['videoMetadata' ], getv (from_object , ['video_metadata' ]))
16021624
16031625 if getv (from_object , ['tool_call' ]) is not None :
1604- raise ValueError ('tool_call parameter is not supported in Vertex AI.' )
1626+ raise ValueError (
1627+ 'tool_call parameter is not supported in Gemini Enterprise Agent'
1628+ ' Platform.'
1629+ )
16051630
16061631 if getv (from_object , ['tool_response' ]) is not None :
1607- raise ValueError ('tool_response parameter is not supported in Vertex AI.' )
1632+ raise ValueError (
1633+ 'tool_response parameter is not supported in Gemini Enterprise Agent'
1634+ ' Platform.'
1635+ )
16081636
16091637 if getv (from_object , ['part_metadata' ]) is not None :
1610- raise ValueError ('part_metadata parameter is not supported in Vertex AI.' )
1638+ raise ValueError (
1639+ 'part_metadata parameter is not supported in Gemini Enterprise Agent'
1640+ ' Platform.'
1641+ )
16111642
16121643 return to_object
16131644
@@ -1628,11 +1659,15 @@ def _ReplicatedVoiceConfig_to_vertex(
16281659 )
16291660
16301661 if getv (from_object , ['consent_audio' ]) is not None :
1631- raise ValueError ('consent_audio parameter is not supported in Vertex AI.' )
1662+ raise ValueError (
1663+ 'consent_audio parameter is not supported in Gemini Enterprise Agent'
1664+ ' Platform.'
1665+ )
16321666
16331667 if getv (from_object , ['voice_consent_signature' ]) is not None :
16341668 raise ValueError (
1635- 'voice_consent_signature parameter is not supported in Vertex AI.'
1669+ 'voice_consent_signature parameter is not supported in Gemini'
1670+ ' Enterprise Agent Platform.'
16361671 )
16371672
16381673 return to_object
@@ -1794,7 +1829,10 @@ def _Tool_to_vertex(
17941829 setv (to_object , ['computerUse' ], getv (from_object , ['computer_use' ]))
17951830
17961831 if getv (from_object , ['file_search' ]) is not None :
1797- raise ValueError ('file_search parameter is not supported in Vertex AI.' )
1832+ raise ValueError (
1833+ 'file_search parameter is not supported in Gemini Enterprise Agent'
1834+ ' Platform.'
1835+ )
17981836
17991837 if getv (from_object , ['google_search' ]) is not None :
18001838 setv (to_object , ['googleSearch' ], getv (from_object , ['google_search' ]))
@@ -1840,7 +1878,10 @@ def _Tool_to_vertex(
18401878 setv (to_object , ['urlContext' ], getv (from_object , ['url_context' ]))
18411879
18421880 if getv (from_object , ['mcp_servers' ]) is not None :
1843- raise ValueError ('mcp_servers parameter is not supported in Vertex AI.' )
1881+ raise ValueError (
1882+ 'mcp_servers parameter is not supported in Gemini Enterprise Agent'
1883+ ' Platform.'
1884+ )
18441885
18451886 return to_object
18461887
0 commit comments