
    R-j                        d dl mZmZmZ ddlmZ ddlmZ ddl	m
Z ddl	mZ 	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>deeeef   ef   d	eeeef      d
eeef   fdZ	 d>dedeeeef   ef   d	eeeef      d
eeef   fdZ	 d>dedeeeef   ef   d	eeeef      d
eeef   fdZ 	 d>deeeef   ef   d	eeeef      d
eeef   fdZ!	 d>deeeef   ef   d	eeeef      d
eeef   fdZ"	 d>dedeeeef   ef   d	eeeef      d
eeef   fdZ#	 d>dedeeeef   ef   d	eeeef      d
eeef   fdZ$	 d>dedeeeef   ef   d	eeeef      d
eeef   fd Z%	 d>dedeeeef   ef   d	eeeef      d
eeef   fd!Z&	 d>dedeeeef   ef   d	eeeef      d
eeef   fd"Z'	 d>dedeeeef   ef   d	eeeef      d
eeef   fd#Z(	 d>deeeef   ef   d	eeeef      d
eeef   fd$Z)	 d>deeeef   ef   d	eeeef      d
eeef   fd%Z*	 d>deeeef   ef   d	eeeef      d
eeef   fd&Z+	 d>deeeef   ef   d	eeeef      d
eeef   fd'Z,	 d>deeeef   ef   d	eeeef      d
eeef   fd(Z-	 d>deeeef   ef   d	eeeef      d
eeef   fd)Z.	 d>deeeef   ef   d	eeeef      d
eeef   fd*Z/	 d>deeeef   ef   d	eeeef      d
eeef   fd+Z0	 d>deeeef   ef   d	eeeef      d
eeef   fd,Z1	 d>deeeef   ef   d	eeeef      d
eeef   fd-Z2	 d>deeeef   ef   d	eeeef      d
eeef   fd.Z3	 d>deeeef   ef   d	eeeef      d
eeef   fd/Z4	 d>deeeef   ef   d	eeeef      d
eeef   fd0Z5	 d>deeeef   ef   d	eeeef      d
eeef   fd1Z6	 d>deeeef   ef   d	eeeef      d
eeef   fd2Z7	 d>deeeef   ef   d	eeeef      d
eeef   fd3Z8	 d>deeeef   ef   d	eeeef      d
eeef   fd4Z9	 d>deeeef   ef   d	eeeef      d
eeef   fd5Z:	 d>deeeef   ef   d	eeeef      d
eeef   fd6Z;	 d>deeeef   ef   d	eeeef      d
eeef   fd7Z<	 d>deeeef   ef   d	eeeef      d
eeef   fd8Z=	 d>deeeef   ef   d	eeeef      d
eeef   fd9Z>	 d>deeeef   ef   d	eeeef      d
eeef   fd:Z?	 d>deeeef   ef   d	eeeef      d
eeef   fd;Z@	 d>deeeef   ef   d	eeeef      d
eeef   fd<ZA	 d>deeeef   ef   d	eeeef      d
eeef   fd=ZBy)?    )AnyOptionalUnion   )_transformers)BaseApiClient)get_value_by_path)set_value_by_pathNfrom_objectparent_objectreturnc                 :    i }t        | dg      t        d      |S )Nlanguage_codeszvlanguage_codes parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.getv
ValueErrorr   r   	to_objects      k/Users/jameslopez/projects/TradingBot25/.venv/lib/python3.12/site-packages/google/genai/_live_converters.py"_AudioTranscriptionConfig_to_mldevr      s4     !)	+()*6
	< 
 
    c                 v   i }t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        d      t        | dg      t        d      t        | d	g      t        d
      t        | dg      t        d      t        | dg      t        d      |S )Napi_keyapiKeyapi_key_configzvapi_key_config parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.	auth_typezqauth_type parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.google_service_account_configzgoogle_service_account_config parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.http_basic_auth_configz~http_basic_auth_config parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.oauth_configztoauth_config parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.oidc_configzsoidc_config parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.r   setvr   r   s      r   _AuthConfig_to_mldevr#   (   s    !)	+	{#/XJ[9+ >?	+()*6
	< 
 
+}%1
	< 
 
+789E
	M 
 
+012>
	M 
 
+'(4
	< 
 
+'3
	< 
 
r   c                     i }t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        |dgt        | dg             |S )Ndatadisplay_nametdisplay_name parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.	mime_typemimeTyper!   r   s      r   _Blob_to_mldevr*   W   s     !)	+x ,VHd;9:	+'(4
	< 
 
+}%1ZL${[M"BC	r   c                     i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        d      |S )Noutcomeoutputidjid parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r!   r   s      r   _CodeExecutionResult_to_vertexr0   k   s~     !)	+	{#/YKkI;!?@	+z".XJ[8* =>	+v*
	2 
 
r   c                     i }t        | dg      1t        |dgt        | dg      D cg c]  }t        ||       c}       t        | dg      t        |dgt        | dg             |S c c}w Npartsrole)r   r"   _Part_to_mldevr   r   r   items       r   _Content_to_mldevr8      s     !)	+y!-		 [7)4	
4 4+4	
 
+x ,VHd;9:		
   A)c                     i }t        | dg      1t        |dgt        | dg      D cg c]  }t        ||       c}       t        | dg      t        |dgt        | dg             |S c c}w r2   )r   r"   _Part_to_vertexr6   s       r   _Content_to_vertexr<      s     !)	+y!-		 [7)4	
4 D),4	
 
+x ,VHd;9:		
r9   c                     i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        d      |S )Ncodelanguager.   r/   r!   r   s      r   _ExecutableCode_to_vertexr@      s~     !)	+x ,VHd;9:	+
|$0ZL${ZL"AB	+v*
	2 
 
r   c                     i }t        | dg      t        d      t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             |S )Nr&   r'   file_urifileUrir(   r)   )r   r   r"   r   s      r   _FileData_to_mldevrD      s     !)	+'(4
	< 
 
+
|$0YKkJ<!@A	+}%1ZL${[M"BC	r   c                 N   i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        d      |S )Nr.   argsnamepartial_argsztpartial_args parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.will_continuezuwill_continue parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.r!   r   s      r   _FunctionCall_to_mldevrJ      s     !)	+v*TFDtf56	+x ,VHd;9:	+x ,VHd;9:	+'(4
	< 
 
+()5
	< 
 
r   c           
         i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | d	g      t        |d
gt        | d	g             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      #t        |d gt        t        | dg      |             t        | d!g      t        |d"gt        | d!g             t        | d#g      t        |d#gt        | d#g             t        | d$g      t        |d%gt        | d$g             t        | d&g      t        |d'gt        | d&g             t        | d(g      t        |d)gt        | d(g             t        | d*g      t        d+      |S ),Nmodel_selection_configmodelConfigresponse_json_schemaresponseJsonSchemaaudio_timestampaudioTimestampcandidate_countcandidateCountenable_affective_dialogenableAffectiveDialogfrequency_penaltyfrequencyPenaltylogprobsmax_output_tokensmaxOutputTokensmedia_resolutionmediaResolutionpresence_penaltypresencePenaltyresponse_logprobsresponseLogprobsresponse_mime_typeresponseMimeTyperesponse_modalitiesresponseModalitiesresponse_schemaresponseSchemarouting_configroutingConfigseedspeech_configspeechConfigstop_sequencesstopSequencestemperaturethinking_configthinkingConfigtop_ktopKtop_ptopPenable_enhanced_civic_answerszenable_enhanced_civic_answers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.)r   r"   _SpeechConfig_to_vertexr   r   s      r   _GenerationConfig_to_vertexrw      s#    !)	+012>	[345 
+./0<	[123 
+)*+7%&[;L:M(NO	+)*+7%&[;L:M(NO	+123?	 ![456 
++,-9	[./0 
+
|$0ZL${ZL"AB	++,-9%&[;N:O(P 
+*+,8%&[;M:N(O 
+*+,8%&[;M:N(O 
++,-9	[./0 
+,-.:	[/01 
+-./;	[012 
+)*+7%&[;L:M(NO	+()*6_%tK:J9K'LM	+x ,VHd;9:	+()5	/0)	
 
+()*6_%tK:J9K'LM	+'3]OT+%GH	+)*+7%&[;L:M(NO	+y!-VHd;	:;	+y!-VHd;	:;	+789E
	M 
 
r   c           
          i }t        | dg      #t        |dgt        t        | dg      |             t        | dg      t        |dgt        | dg             |S )Nauth_config
authConfigenable_widgetenableWidget)r   r"   r#   r   s      r   _GoogleMaps_to_mldevr}   f  sl     !)	+'3	T+?K 
+()5^$d;8I&JK	r   c                    i }t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        d      t        | dg      t        |dgt        | dg             |S )	Nsearch_typessearchTypesblocking_confidencez{blocking_confidence parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.exclude_domainszwexclude_domains parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.time_range_filtertimeRangeFilterr!   r   s      r   _GoogleSearch_to_mldevr   x  s     !)	+'(4]OT+7G%HI	+-./;
	B 
 
+)*+7
	< 
 
++,-9%&[;N:O(P 
r   c                     i }t        | dg      1t        |dgt        | dg      D cg c]  }t        ||       c}       t        | dg      t        |dgt        | dg             |S c c}w Nturnsturn_completeturnComplete)r   r"   r8   r6   s       r   _LiveClientContent_to_mldevr     s     !)	+y!-		 [7)4	
4 dI.4	
 
+()5^$d;8I&JK		
r9   c                     i }t        | dg      1t        |dgt        | dg      D cg c]  }t        ||       c}       t        | dg      t        |dgt        | dg             |S c c}w r   )r   r"   r<   r6   s       r   _LiveClientContent_to_vertexr     s     !)	+y!-		 [7)4	
4 tY/4	
 
+()5^$d;8I&JK		
r9   
api_clientc                 x   i }t        |dg      $t        |dgt        | t        |dg      |             t        |dg      #t        |dgt        t        |dg      |             t        |dg      #t        |dgt	        t        |dg      |             t        |dg      t        |dgt        |dg             |S Nsetupclient_contentclientContentrealtime_inputrealtimeInputtool_responsetoolResponse)r   r"   _LiveClientSetup_to_mldevr   !_LiveClientRealtimeInput_to_mldevr   r   r   r   s       r   _LiveClientMessage_to_mldevr     s    
 !)	+y!-		![7)4i	
 
+()*6	#/019	
 
+()*6	)/019	
 
+()5^$d;8I&JK	r   c                 x   i }t        |dg      $t        |dgt        | t        |dg      |             t        |dg      #t        |dgt        t        |dg      |             t        |dg      #t        |dgt	        t        |dg      |             t        |dg      t        |dgt        |dg             |S r   )r   r"   _LiveClientSetup_to_vertexr   "_LiveClientRealtimeInput_to_vertexr   s       r   _LiveClientMessage_to_vertexr     s    
 !)	+y!-		"[7)4i	
 
+()*6	$/019	
 
+()*6	*/019	
 
+()5^$d;8I&JK	r   c                    i }t        | dg      1t        |dgt        | dg      D cg c]  }t        ||       c}       t        | dg      #t        |dgt        t        | dg      |             t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             t        | dg      t        |dgt        | dg             t        | dg      t        |d	gt        | dg             t        | d
g      t        |dgt        | d
g             |S c c}w )Nmedia_chunksmediaChunksaudioaudio_stream_endaudioStreamEndvideotextactivity_startactivityStartactivity_endactivityEnd)r   r"   r*   r6   s       r   r   r     sr    !)	+'(4	 [>*:;	
; 4+;	
 
+y!-		tK'3Y? 
+*+,8%&[;M:N(OP	+y!-		tK'3Y? 
+x ,VHd;9:	+()*6_%tK:J9K'LM	+'(4]OT+7G%HI	A	
s   D;c                 (   i }t        | dg      't        |dgt        | dg      D cg c]  }| c}       t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |d	gt        | dg             t        | d
g      t        |dgt        | d
g             |S c c}w )Nr   r   r   r   zxaudio_stream_end parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   r   r   r   r   r   r!   r6   s       r   r   r   8  s>    !)	+'(4	{^,<=>=$=> 
+y!-WItK';<	+*+,8
	? 
 
+y!-WItK';<	+x ,VHd;9:	+()*6_%tK:J9K'LM	+'(4]OT+7G%HI	1 	?s   	Dc                    i }t        |dg      t        |dgt        |dg             t        |dg      t        |dgt        |dg             t        |dg      6t        |dgt        t        j                  t        |dg            |             t        |dg      Yt        |dgt        j
                  | t        |dg            D cg c]"  }t        t        j                  | |      |      $ c}       t        |dg      #t        |dgt        t        |dg      |             t        |d	g      t        |d
gt        |d	g             t        |dg      #t        |dgt        t        |dg      |             t        |dg      #t        |dgt        t        |dg      |             t        |dg      t        |dgt        |dg             t        |dg      t        d      t        |dg      t        |dgt        |dg             t        |dg      t        |dgt        |dg             t        |dg      1t        |dgt        |dg      D cg c]  }t        ||       c}       |S c c}w c c}w )Nmodelgeneration_configgenerationConfigsystem_instructionsystemInstructiontoolssession_resumptionsessionResumptioncontext_window_compressioncontextWindowCompressioninput_audio_transcriptioninputAudioTranscriptionoutput_audio_transcriptionoutputAudioTranscriptionproactivityexplicit_vad_signal{explicit_vad_signal parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.history_confighistoryConfigavatar_configavatarConfigsafety_settingssafetySettings)r   r"   r8   t	t_contentt_tools_Tool_to_mldevt_tool!_SessionResumptionConfig_to_mldevr   r   _SafetySetting_to_mldevr   r   r   r   r7   s        r   r   r   \  s   
 !)	+y!-WItK';<	++,-9	[./0 
+,-.:	KK[+?*@ABI	
 
+y!-		 		*d;	.JK	
K 188J5yAK	
 
+,-.:	)345y	
 
+456B	#$[789 
+345A	"#*:;<i	
 
+456B	#$*;<=y	
 
+'3]OT+%GH	+-./;
	B 
 
+()*6_%tK:J9K'LM	+()5^$d;8I&JK	+)*+7	 [+<*=>	
> $D)4>	
 
C	
v	
s   
'I8I=c                    i }t        |dg      t        |dgt        |dg             t        |dg      #t        |dgt        t        |dg      |             t        |dg      6t        |dgt        t	        j
                  t        |dg            |             t        |dg      Yt        |dgt	        j                  | t        |dg            D cg c]"  }t        t	        j                  | |      |      $ c}       t        |dg      t        |dgt        |dg             t        |d	g      t        |d
gt        |d	g             t        |dg      t        |dgt        |dg             t        |dg      t        |dgt        |dg             t        |dg      t        |dgt        |dg             t        |dg      t        |dgt        |dg             t        |dg      t        d      t        |dg      t        |dgt        |dg             t        |dg      't        |dgt        |dg      D cg c]  }| c}       |S c c}w c c}w )Nr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   explicitVadSignalr   vhistory_config parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   r   r   r   )
r   r"   rw   r<   r   r   r   _Tool_to_vertexr   r   r   s        r   r   r     s   
 !)	+y!-WItK';<	++,-9	#234i	
 
+,-.:	KK[+?*@ABI	
 
+y!-		 		*d;	.JK	
K AHHZ6	BK	
 
+,-.:	[/01 
+456B	#$[789 
+345A	"#[678 
+456B	#$[789 
+'3]OT+%GH	+-./;	[012 
+()*6
	? 
 
+()5^$d;8I&JK	+)*+7	{->,?@A@$@A 
y	
r 	Bs   'I	Ic                    i }t        |dg      t        |ddgt        |dg             t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      t        |g d	t        |dg             t        |d
g      t        |g dt        |d
g             t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      -t        |g dt        j                  t        |dg                   t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      7t        |ddgt	        t        j
                  t        |dg            |             t        |dg      Zt        |ddgt        j                  | t        |dg            D cg c]"  }t        t        j                  | |      |      $ c}       t        |dg      $t        |ddgt        t        |dg      |             t        |dg      $t        |ddgt        t        |dg      |             t        |dg      $t        |dd gt        t        |dg      |             t        |d!g      t        |dd"gt        |d!g             t        |d#g      t        |dd$gt        |d#g             t        |d%g      t        |dd%gt        |d%g             t        |d&g      t        d'      t        |d(g      t        |dd)gt        |d(g             t        |d*g      t        |dd+gt        |d*g             t        |d,g      2t        |dd-gt        |d,g      D cg c]  }t        ||       c}       t        |d.g      t        |g d/t        |d.g             |S c c}w c c}w )0Nr   r   r   rc   r   r   rd   rn   r   r   rn   rs   r   r   rt   rq   r   r   rr   rY   r   r   rZ   r[   r   r   r\   ri   r   r   ri   rj   r   r   rk   ro   r   r   rp   rT   r   r   rU   r   r   r   r   r   r   r   r   r   realtime_input_configrealtimeInputConfigr   r   r   r   r   r   r   r   r   r   r   translation_config)r   r   translationConfig)r   r"   r   t_live_speech_configr8   r   r   r   r   r   r   r   r   r   s        r   _LiveConnectConfig_to_mldevr     s6   
 !)	++,-9	$%[./0 
+-./;;[012 
+'34[=/* 
+y!--[7)$ 
+y!--[7)$ 
++,-98[./0 
+*+,88[-./ 
+x ,-[6(# 
+()55	tK/1BCD 
+)*+77[,-. 
+123?>[456 
+,-.:	%&KK[+?*@ABI	
 
+y!-	' 		*d;	.JK	
K 188J5yAK	
 
+,-.:	%&)345y	
 
+345A	+,*:;<i	
 
+456B	,-*;<=y	
 
+/01=	'([234 
+456B	,-[789 
+'3	- [=/* 
+-./;
	B 
 
+()*6	/"[+,- 
+()5	.![?+, 
+)*+7	"# [+<*=>	
> $D)4>	
 
+,-.::[/01 
w	
\	
s    'QQ	c                 V   i }t        |dg      $t        |ddgt        t        |dg      |             t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      t        |g d	t        |dg             t        |d
g      t        |g dt        |d
g             t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      7t        |g dt        t	        j
                  t        |dg            |             t        |dg      t        |g dt        |dg             t        |dg      t        |g dt        |dg             t        |dg      7t        |ddgt        t	        j                  t        |dg            |             t        |dg      Zt        |ddgt	        j                  | t        |dg            D cg c]"  }t        t	        j                  | |      |      $ c}       t        |dg      t        |ddgt        |dg             t        |dg      t        |ddgt        |dg             t        |dg      t        |dd gt        |dg             t        |d!g      t        |dd"gt        |d!g             t        |d#g      t        |dd$gt        |d#g             t        |d%g      t        |dd%gt        |d%g             t        |d&g      t        |dd'gt        |d&g             t        |d(g      t        d)      t        |d*g      t        |dd+gt        |d*g             t        |d,g      (t        |dd-gt        |d,g      D cg c]  }| c}       t        |d.g      t        d/      |S c c}w c c}w )0Nr   r   r   rc   r   rn   r   rs   r   rq   r   rY   r   r[   r   ri   r   rj   r   ro   r   rT   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   zztranslation_config parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.)r   r"   rw   rv   r   r   r<   r   r   r   r   r   r   s        r   _LiveConnectConfig_to_vertexr     s   
 !)	++,-9	$%#234i	
 
+-./;;[012 
+'34[=/* 
+y!--[7)$ 
+y!--[7)$ 
++,-98[./0 
+*+,88[-./ 
+x ,-[6(# 
+()55""4o5F#GH	
 
+)*+77[,-. 
+123?>[456 
+,-.:	%&KK[+?*@ABI	
 
+y!-	' 		*d;	.JK	
K AHHZ6	BK	
 
+,-.:	%&[/01 
+345A	+,[678 
+456B	,-[789 
+/01=	'([234 
+456B	,-[789 
+'3	- [=/* 
+-./;	%&[012 
+()*6
	? 
 
+()5	.![?+, 
+)*+7	"#{->,?@A@$@A 
+,-.:
	? 
 
c	
P 	Bs   'P!7	P&c                     i }t        |dg      .t        |ddgt        j                  | t        |dg                   t        |dg      $t        |dgt	        | t        |dg      |             |S Nr   r   config)r   r"   r   t_modelr   r   s       r   _LiveConnectParameters_to_mldevr     s    
 !)	+y!-	'			*d;	:; 
+z".	
#[8*5y	
 
r   c                     i }t        |dg      .t        |ddgt        j                  | t        |dg                   t        |dg      $t        |dgt	        | t        |dg      |             |S r   )r   r"   r   r   r   r   s       r    _LiveConnectParameters_to_vertexr     s    
 !)	+y!-	'			*d;	:; 
+z".	
$[8*5y	
 
r   c                     i }t        | dg      t        d      t        | dg      t        d      t        | dg      t        d      t        | dg      t        d      |S )	Nr   zmsetup parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   zvclient_content parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.music_generation_configmusic_generation_config parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.playback_controlzxplayback_control parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   r   s      r   !_LiveMusicClientMessage_to_vertexr     s     !)	+y!-
	2 
 
+()*6
	? 
 
+123?
	M 
 
+*+,8
	? 
 
r   c                 X    i }t        | dg      t        |ddgt        | dg             |S )Nr   r   r   r"   r   s      r   $_LiveMusicConnectParameters_to_mldevr     s8     !)	+y!-Wg&[7)(DE	r   c                 :    i }t        | dg      t        d      |S )Nr   zmmodel parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   r   s      r   %_LiveMusicConnectParameters_to_vertexr     s2     !)	+y!-
	2 
 
r   c                 V    i }t        | dg      t        |dgt        | dg             |S )Nr   musicGenerationConfigr   r   s      r   &_LiveMusicSetConfigParameters_to_mldevr     sA     !)	+123?	 ![456 
r   c                 :    i }t        | dg      t        d      |S )Nr   r   r   r   s      r   '_LiveMusicSetConfigParameters_to_vertexr     s5     !)	+123?
	M 
 
r   c                 |    i }t        | dg      't        |dgt        | dg      D cg c]  }| c}       |S c c}w )Nweighted_promptsweightedPromptsr   r6   s       r   /_LiveMusicSetWeightedPromptsParameters_to_mldevr     sX     !)	+*+,8	{-?,@ABA$AB 
 	Cs   	9c                 :    i }t        | dg      t        d      |S )Nr   zxweighted_prompts parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   r   s      r   0_LiveMusicSetWeightedPromptsParameters_to_vertexr   +  s4     !)	+*+,8
	? 
 
r   c                    i }t        | dg      Dt        |dgt        j                  t        | dg            D cg c]  }t	        ||       c}       t        | dg      6t        |dgt	        t        j
                  t        | dg            |             t        | dg      t        |dgt        | dg             t        | dg      6t        |dgt	        t        j                  t        | dg            |             t        | dg      t        |dgt        | dg             t        | dg      t        |d	gt        | dg             t        | d
g      t        |dgt        | d
g             |S c c}w Nmediar   r   r   r   r   r   r   r   r   r   )r   r"   r   t_blobsr*   t_audio_blobt_image_blobr6   s       r   )_LiveSendRealtimeInputParameters_to_mldevr  9  s    !)	+y!-	 		${WI">?	
? 4+?	
 
+y!-		q~~d;	&BCYO 
+*+,8%&[;M:N(OP	+y!-		q~~d;	&BCYO 
+x ,VHd;9:	+()*6_%tK:J9K'LM	+'(4]OT+7G%HI	A	
s   E4c           
         i }t        | dg      :t        |dgt        j                  t        | dg            D cg c]  }| c}       t        | dg      ,t        |dgt        j                  t        | dg                   t        | dg      t        |dgt        | dg             t        | dg      ,t        |dgt        j
                  t        | dg                   t        | dg      t        |dgt        | dg             t        | dg      t        |d	gt        | dg             t        | d
g      t        |dgt        | d
g             |S c c}w r  )r   r"   r   r  r  r  r6   s       r   *_LiveSendRealtimeInputParameters_to_vertexr  e  s_    !)	+y!-	))Dwi$@ABA$AB 
+y!-WIq~~d;	.JKL	+*+,8%&[;M:N(OP	+y!-WIq~~d;	.JKL	+x ,VHd;9:	+()*6_%tK:J9K'LM	+'(4]OT+7G%HI	+ 	Cs   	Ec           
         i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | d	g      t        |d
gt        | d	g             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             |S NsetupCompletesetup_completeserverContentserver_contenttoolCall	tool_calltoolCallCancellationtool_call_cancellationusageMetadatausage_metadatagoAwaygo_awaysessionResumptionUpdatesession_resumption_updatevoiceActivityDetectionSignalvoice_activity_detection_signalvoiceActivityvoice_activity)r   r"   _VoiceActivity_from_mldevr   s      r   _LiveServerMessage_from_mldevr    s    !)	+()5%&[?:K(LM	+()5%&[?:K(LM	+
|$0[M4j\#BC	+./0<	!"[123 
+()5%&[?:K(LM	+z".YKkH:!>?	+123?	$%[456 
+678D	*+[9:; 
+()5	!/0)	
 
r   c           
         i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | d	g      #t        |d
gt        t        | d	g      |             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             |S r
  )r   r"   _UsageMetadata_from_vertex_VoiceActivity_from_vertexr   s      r   _LiveServerMessage_from_vertexr"    s    !)	+()5%&[?:K(LM	+()5%&[?:K(LM	+
|$0[M4j\#BC	+./0<	!"[123 
+()5	"/0)	
 
+z".YKkH:!>?	+123?	$%[456 
+678D	*+[9:; 
+()5	"/0)	
 
r   c                 j    i }t        | dg      t        d      t        | dg      t        d      |S )NrG   zlname parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.streamable_http_transportzstreamable_http_transport parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   r   s      r   _McpServer_to_vertexr%    sX     !)	+x ,
	2 
 
+345A
	M 
 
r   c                     i }t        | dg      1t        |dgt        | dg      D cg c]  }t        ||       c}       |S c c}w )Nspeaker_voice_configsspeakerVoiceConfigs)r   r"   _SpeakerVoiceConfig_to_vertexr6   s       r   "_MultiSpeakerVoiceConfig_to_vertexr*  
  sg     !)	+/01=	 [+B*CD	
D *$	:D	
 
	
s   Ac           
      n   i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             t        | d	g      #t        |d
gt        t        | d	g      |             t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt	        t        | dg      |             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             |S )Nr[   r\   code_execution_resultcodeExecutionResultexecutable_codeexecutableCode	file_datafileDatafunction_callfunctionCallfunction_responsefunctionResponseinline_data
inlineDatar   thoughtthought_signaturethoughtSignaturevideo_metadatavideoMetadatar  r  r   r   part_metadatapartMetadata)r   r"   rD   rJ   r*   r   s      r   r5   r5     s    !)	+*+,8%&[;M:N(O 
+/01=	[234 
+)*+7%&[;L:M(NO	+}%1	4k];YG 
+()5	tK/1BCYO 
++,-9	[./0 
+'3	tK-99E 
+x ,VHd;9:	+	{#/YKkI;!?@	++,-9	[./0 
+()*6_%tK:J9K'LM	+}%1ZL${[M"BC	+()5^$d;8I&JK	+()5^$d;8I&JK	r   c           
         i }t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             t        | dg      #t        |dgt        t        | dg      |             t        | dg      t        |dgt        | dg             t        | d	g      t        |d
gt        | d	g             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t	        d      t        | dg      t	        d      t        | dg      t	        d      |S )Nr[   r\   r,  r-  r.  r/  r0  r1  r2  r3  r4  r5  r6  r7  r   r8  r9  r:  r;  r<  r  zqtool_call parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   zutool_response parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r=  zupart_metadata parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.)r   r"   r0   r@   r   r   s      r   r;   r;   h  ss    !)	+*+,8%&[;M:N(O 
+/01=	&678)	
 
+)*+7	!012I	
 
+}%1ZL${[M"BC	+()5^$d;8I&JK	++,-9	[./0 
+'3\ND}o$FG	+x ,VHd;9:	+	{#/YKkI;!?@	++,-9	[./0 
+()*6_%tK:J9K'LM	+}%1
	9 
 
+()5
	? 
 
+()5
	? 
 
r   c                    i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        d      |S )	Nr(   r)   voice_sample_audiovoiceSampleAudioconsent_audiozuconsent_audio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.voice_consent_signaturezvoice_consent_signature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r!   r   s      r    _ReplicatedVoiceConfig_to_vertexrE    s     !)	+}%1ZL${[M"BC	+,-.:	[/01 
+()5
	? 
 
+123?
	M 
 
r   c                     i }t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        |dgt        | dg             |S )Ncategorymethodznmethod parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.	thresholdr!   r   s      r   r   r     s~     !)	+
|$0ZL${ZL"AB	+z".
	3 
 
+}%1[M4k]#CD	r   c                     i }t        | dg      t        |dgt        | dg             t        | dg      t        d      |S )Nhandletransparentzstransparent parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.r!   r   s      r   r   r     sX     !)	+z".XJ[8* =>	+'3
	< 
 
r   c           
          i }t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             |S )Nspeakervoice_configvoiceConfig)r   r"   _VoiceConfig_to_vertexr   s      r   r)  r)    sk     !)	+	{#/YKkI;!?@	+'(4	tK.1ABIN 
r   c           
         i }t        | dg      #t        |dgt        t        | dg      |             t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             |S )NrO  rP  language_codelanguageCodemulti_speaker_voice_configmultiSpeakerVoiceConfig)r   r"   rQ  r*  r   s      r   rv   rv     s     !)	+'(4	tK.1ABIN 
+()5^$d;8I&JK	+456B	"#*;<=y	
 
r   c           
         i }t        | dg      t        d      t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      #t        |dgt        t        | dg      |             t        | d	g      #t        |d
gt	        t        | d	g      |             t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      't        |dgt        | dg      D cg c]  }| c}       t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        |dgt        | dg             t        | dg      't        |dgt        | dg      D cg c]  }| c}       |S c c}w c c}w )N	retrievalzqretrieval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.computer_usecomputerUsefile_search
fileSearchgoogle_searchgoogleSearchgoogle_maps
googleMapscode_executioncodeExecutionenterprise_web_searchz}enterprise_web_search parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.function_declarationsfunctionDeclarationsgoogle_search_retrievalgoogleSearchRetrievalparallel_ai_searchzzparallel_ai_search parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.url_context
urlContextmcp_servers
mcpServers)r   r   r"   r   r}   r6   s       r   r   r   )  sF    !)	+}%1
	< 
 
+'(4]OT+7G%HI	+'3\ND}o$FG	+()5	tK/1BCYO 
+'3	T+?K 
+()*6_%tK:J9K'LM	+/01=
	B 
 
+/01=	 {-D,EFGF$FG 
+123?	 ![456 
+,-.:
	B 
 
+'3\ND}o$FG	+'3	{]O<=<$<= 
5 	H. 	>s   )	G	Gc                    i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        d      t        | dg      t        |dgt        | dg             t        | dg      t        |d	gt        | dg             t        | d
g      t        |dgt        | d
g             t        | dg      t        |dgt        | dg             t        | dg      't        |dgt        | dg      D cg c]  }| c}       t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      1t        |dgt        | dg      D cg c]  }t        ||       c}       |S c c}w c c}w )NrX  rY  rZ  r[  zsfile_search parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r]  r^  r_  r`  ra  rb  rc  enterpriseWebSearchrd  re  rf  rg  rh  parallelAiSearchri  rj  rk  rl  )r   r"   r   r%  r6   s       r   r   r   r  sR    !)	+}%1[M4k]#CD	+'(4]OT+7G%HI	+'3
	9 
 
+()5^$d;8I&JK	+'3\ND}o$FG	+()*6_%tK:J9K'LM	+/01=	[234 
+/01=	 {-D,EFGF$FG 
+123?	 ![456 
+,-.:	[/01 
+'3\ND}o$FG	+'3	 [=/:	
: !y1:	
 
= 	H0	
s   #	G%	G*c                    i }t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | dg      t        |dgt        | dg             t        | d	g      t        |d
gt        | d	g             t        | dg      t        |dgt        | dg             t        | dg      't        |dgt        | dg      D cg c]  }| c}       t        | dg      't        |dgt        | dg      D cg c]  }| c}       t        | dg      't        |dgt        | dg      D cg c]  }| c}       t        | dg      't        |dgt        | dg      D cg c]  }| c}       t        | dg      t        |dgt        | dg             |S c c}w c c}w c c}w c c}w )NpromptTokenCountprompt_token_countcachedContentTokenCountcached_content_token_countcandidatesTokenCountresponse_token_counttoolUsePromptTokenCounttool_use_prompt_token_countthoughtsTokenCountthoughts_token_counttotalTokenCounttotal_token_countpromptTokensDetailsprompt_tokens_detailscacheTokensDetailscache_tokens_detailscandidatesTokensDetailsresponse_tokens_detailstoolUsePromptTokensDetailstool_use_prompt_tokens_detailstrafficTypetraffic_typer   r6   s       r   r   r     s    !)	+*+,8	[-./ 
+123?	%&[456 
+./0<	 [123 
+123?	&'[456 
+,-.:	 [/01 
+)*+7'(${=N<O*P 
+-./;	 !{-B,CDED$DE 
+,-.:	 {-A,BCDC$CD 
+123?	"#{-F,GHIH$HI 
+456B	)*{-I,JKLK$KL 
+'3^$d;&HI	7 	F 	E 	J 	Ms   	G?	G$3	G)'	G.c                 V    i }t        | dg      t        |dgt        | dg             |S Ntypevoice_activity_typer   r   s      r   r  r    7     !)	+x ,*+T+x-HI	r   c                 V    i }t        | dg      t        |dgt        | dg             |S r  r   r   s      r   r!  r!    r  r   c           
          i }t        | dg      #t        |dgt        t        | dg      |             t        | dg      t        |dgt        | dg             |S )Nreplicated_voice_configreplicatedVoiceConfigprebuilt_voice_configprebuiltVoiceConfig)r   r"   rE  r   s      r   rQ  rQ    s}     !)	+123?	 !(89:I	
 
+/01=	[234 
r   )N)Ctypingr   r   r    r   r   _api_clientr   _commonr	   r   r
   r"   dictstrobjectr   r#   r*   r0   r8   r<   r@   rD   rJ   rw   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r"  r%  r*  r5   r;   rE  r   r   r)  rv   r   r   r   r  r!  rQ   r   r   <module>r     sP  $ ( '   & . .
 /3tCH~v-.DcN+ 
#s(^  /3,tCH~v-.,DcN+, 
#s(^,b /3tCH~v-.DcN+ 
#s(^, /3tCH~v-.DcN+ 
#s(^, /3tCH~v-.DcN+ 
#s(^. /3tCH~v-.DcN+ 
#s(^. /3tCH~v-.DcN+ 
#s(^, /3tCH~v-.DcN+ 
#s(^, /3tCH~v-.DcN+ 
#s(^> /3utCH~v-.uDcN+u 
#s(^ut /3tCH~v-.DcN+ 
#s(^( /3tCH~v-.DcN+ 
#s(^< /3tCH~v-.DcN+ 
#s(^. /3tCH~v-.DcN+ 
#s(^0 /3$$tCH~v-.$ DcN+$ 
#s(^	$T /3$$tCH~v-.$ DcN+$ 
#s(^	$R /3)tCH~v-.)DcN+) 
#s(^)\ /3!tCH~v-.!DcN+! 
#s(^!N /3^^tCH~v-.^ DcN+^ 
#s(^	^H /3[[tCH~v-.[ DcN+[ 
#s(^	[B /3||tCH~v-.| DcN+| 
#s(^	|D /3wwtCH~v-.w DcN+w 
#s(^	wz /3tCH~v-. DcN+ 
#s(^	8 /3tCH~v-. DcN+ 
#s(^	6 /3tCH~v-.DcN+ 
#s(^D /3tCH~v-.DcN+ 
#s(^ /3tCH~v-.DcN+ 
#s(^  /3tCH~v-.DcN+ 
#s(^" /3tCH~v-.DcN+ 
#s(^  /3tCH~v-.DcN+ 
#s(^" /3tCH~v-.DcN+ 
#s(^  /3)tCH~v-.)DcN+) 
#s(^)\ /3tCH~v-.DcN+ 
#s(^F /32tCH~v-.2DcN+2 
#s(^2n /38tCH~v-.8DcN+8 
#s(^8z /3tCH~v-.DcN+ 
#s(^, /3tCH~v-.DcN+ 
#s(^( /3ItCH~v-.IDcN+I 
#s(^I\ /3NtCH~v-.NDcN+N 
#s(^Nf /3tCH~v-.DcN+ 
#s(^@ /3tCH~v-.DcN+ 
#s(^, /3tCH~v-.DcN+ 
#s(^& /3tCH~v-.DcN+ 
#s(^( /3tCH~v-.DcN+ 
#s(^: /3FtCH~v-.FDcN+F 
#s(^FV /3CtCH~v-.CDcN+C 
#s(^CP /3LtCH~v-.LDcN+L 
#s(^Lb /3tCH~v-.DcN+ 
#s(^ /3tCH~v-.DcN+ 
#s(^ /3tCH~v-.DcN+ 
#s(^r   