
    +jR                        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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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S )    )AnyOptionalUnion   )_transformers)BaseApiClient)get_value_by_path)set_value_by_pathNfrom_objectparent_objectreturnc                 J    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      c/home/wildlama/visual-decline/.venv/lib/python3.11/site-packages/google/genai/_tokens_converters.py"_AudioTranscriptionConfig_to_mldevr      s<     !)	+()**6
	<  
 
    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          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#   (   sL    !)	+	{##/XJ[9+ > >???	+()**6
	<  
 
+}%%1
	<  
 
+7899E
	M  
 
+012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9:::	+'((4
	<  
 
+}%%1ZL${[M"B"BCCC	r   c           	          i t          | dg          -t          dgfdt          | dg          D                        t          | dg          !t          dgt          | dg                     S )Npartsc                 0    g | ]}t          |          S  )_Part_to_mldev.0itemr   s     r   
<listcomp>z%_Content_to_mldev.<locals>.<listcomp>t   s3     	
 	
 	
 4++	
 	
 	
r   role)r   r"   r   s     @r   _Content_to_mldevr5   k   s     !)	+y!!-			
 	
 	
 	
[7)44	
 	
 	
   
+x  ,VHd;99:::	r   
api_clientc                    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          0t          |dgt          | t          |dg          |                     t          |dg          !t          |d	gt          |dg                     |S )
Nexpire_time
expireTimenew_session_expire_timenewSessionExpireTimeuseslive_connect_constraintsbidiGenerateContentSetuplock_additional_fields	fieldMask)r   r"    _LiveConnectConstraints_to_mldevr6   r   r   r   s       r   _CreateAuthTokenConfig_to_mldevrC      sK   
 !)	+''3[=/(J(JKKK	+1233?	 [4566   
+x  ,${VH"="=>>>	+2344@	#$(9:;;	
 	
   
+0122>	[3455   
r   c                     i }t          |dg          0t          |dgt          | t          |dg          |                     |S )Nconfig)r   r"   rC   rB   s       r   #_CreateAuthTokenParameters_to_mldevrF      s]    
 !)	+z"".	
'[8*55y	
 	
   
r   c                 J    i }t          | dg          t          d          |S )NrE   znconfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.r   r   s      r   $_CreateAuthTokenParameters_to_vertexrH      s:     !)	+z"".
	5  
 
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_mldevrL      s     !)	+'((4
	<  
 
+
|$$0YKkJ<!@!@AAA	+}%%1ZL${[M"B"BCC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gt          | dg                     t          | dg          t          d          t          | dg          t          d          |S )Nid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_mldevrS      s     !)	+v*TFDtf55666	+x  ,VHd;99:::	+x  ,VHd;99:::	+'((4
	<  
 
+())5
	<  
 
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_mldevrY      s     !)	+''3	T+??KK   
+())5^$d;8I&J&JKKK	r   c                 R   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_mldevra     s     !)	+'((4]OT+7G%H%HIII	+-.//;
	B  
 
+)*++7
	<  
 
++,--9%&[;N:O(P(P   
r   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          4t          |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          Bt          |ddgt	          t          j        t          |dg                                         t          |dg          Bt          |ddg fdt          j         t          |dg                    D                        t          |dg          0t          |ddgt          t          |dg                               t          |dg          0t          |ddgt          t          |dg                               t          |d g          0t          |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          .t          |dd.gfd/t          |d-g          D                        t          |d0g          "t          |g d1t          |d0g                     S )2Ngeneration_configsetupgenerationConfigresponse_modalities)rd   re   responseModalitiestemperature)rd   re   rh   top_p)rd   re   topPtop_k)rd   re   topKmax_output_tokens)rd   re   maxOutputTokensmedia_resolution)rd   re   mediaResolutionseed)rd   re   rq   speech_config)rd   re   speechConfigthinking_config)rd   re   thinkingConfigenable_affective_dialog)rd   re   enableAffectiveDialogsystem_instructionsystemInstructiontoolsc                 V    g | ]%}t          t          j        |                    &S r.   )_Tool_to_mldevtt_tool)r1   r2   r6   r   s     r   r3   z/_LiveConnectConfig_to_mldev.<locals>.<listcomp>  s?     	
 	
 	
 18J55yAA	
 	
 	
r   session_resumptionsessionResumptioninput_audio_transcriptioninputAudioTranscriptionoutput_audio_transcriptionoutputAudioTranscriptionrealtime_input_configrealtimeInputConfigcontext_window_compressioncontextWindowCompressionproactivityexplicit_vad_signalz{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safetySettingsc                 0    g | ]}t          |          S r.   )_SafetySetting_to_mldevr0   s     r   r3   z/_LiveConnectConfig_to_mldev.<locals>.<listcomp>  s3     	
 	
 	
 $D)44	
 	
 	
r   translation_config)rd   re   translationConfig)
r   r"   r}   t_live_speech_configr5   	t_contentt_tools!_SessionResumptionConfig_to_mldevr   r   rB   s   `  @r   _LiveConnectConfig_to_mldevr   (  s   
 !)	++,--9	$%[./00   
+-.//;;;;[0122   
+''3444[=/**   
+y!!----[7)$$   
+y!!----[7)$$   
++,--9888[./00   
+*+,,8888[-.//   
+x  ,---[6(##   
+())5555	tK/1BCCDD   
+)*++7777[,-..   
+1233?>>>[4566   
+,-..:	%&K[+?*@AABBI	
 	
   
+y!!-	'	
 	
 	
 	
 	
	*d;	.J.JKK	
 	
 	
   
+,-..:	%&)3455y	
 	
   
+3455A	+,*:;<<i	
 	
   
+4566B	,-*;<==y	
 	
   
+/011=	'([2344   
+4566B	,-[7899   
+''3	- [=/**   
+-.//;
	B  
 
+()**6	/"[+,--   
+())5	.![?+,,   
+)*++7	"#	
 	
 	
 	
[+<*=>>	
 	
 	
   
+,-..::::[/011   
r   c                    i }t          |dg          5t          |ddgt          j        | t          |dg                               t          |dg          0t          |dgt	          | t          |dg          |                     |S )Nmodelrd   rE   )r   r"   r}   t_modelr   rB   s       r   rA   rA     s    
 !)	+y!!-	'		*d;	::;;   
+z"".	
#[8*55y	
 	
   
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          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 )Nro   rp   code_execution_resultcodeExecutionResultexecutable_codeexecutableCode	file_datafileDatafunction_callfunctionCallfunction_responsefunctionResponseinline_data
inlineDatatextthoughtthought_signaturethoughtSignaturevideo_metadatavideoMetadata	tool_calltoolCalltool_responsetoolResponsepart_metadatapartMetadata)r   r"   rL   rS   r*   r   s      r   r/   r/      s]    !)	+*+,,8%&[;M:N(O(O   
+/011=	[2344   
+)*++7%&[;L:M(N(NOOO	+}%%1	4k];;YGG   
+())5	tK/1BCCYOO   
++,--9	[./00   
+''3	tK-999EE   
+x  ,VHd;99:::	+	{##/YKkI;!?!?@@@	++,--9	[./00   
+()**6_%tK:J9K'L'LMMM	+}%%1ZL${[M"B"BCCC	+())5^$d;8I&J&JKKK	+())5^$d;8I&J&JKKK	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   L  s     !)	+
|$$0ZL${ZL"A"ABBB	+z"".
	3  
 
+}%%1[M4k]#C#CDD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   `  sl     !)	+z"".XJ[8* = =>>>	+''3
	<  
 
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d t          | dg          D                        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d t          | dg          D                        |S )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functionDeclarationsc                     g | ]}|S r.   r.   r1   r2   s     r   r3   z"_Tool_to_mldev.<locals>.<listcomp>  s    GGG$GGGr   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
mcpServersc                     g | ]}|S r.   r.   r   s     r   r3   z"_Tool_to_mldev.<locals>.<listcomp>  s    ===$===r   )r   r   r"   ra   rY   r   s      r   r|   r|   q  s    !)	+}%%1
	<  
 
+'((4]OT+7G%H%HIII	+''3\ND}o$F$FGGG	+())5	tK/1BCCYOO   
+''3	T+??KK   
+()**6_%tK:J9K'L'LMMM	+/011=
	B  
 
+/011=	 GG${-D,EFFGGG   
+1233?	 ![4566   
+,-..:
	B  
 
+''3\ND}o$F$FGGG	+''3	==${]O<<===   
r   )N)"typingr   r   r    r   r}   _api_clientr   _commonr	   r   r
   r"   dictstrobjectr   r#   r*   r5   rC   rF   rH   rL   rS   rY   ra   r   rA   r/   r   r   r|   r.   r   r   <module>r      s  $ ( ' ' ' ' ' ' ' ' '             & & & & & & . . . . . . . . . . . .
 /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(^   0 /3& &&tCH~v-.& DcN+& 
#s(^	& & & &X /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(^	| | | |D /3 tCH~v-. DcN+ 
#s(^	   6 /3I ItCH~v-.IDcN+I 
#s(^I I I I\ /3 tCH~v-.DcN+ 
#s(^   , /3 tCH~v-.DcN+ 
#s(^   & /3F FtCH~v-.FDcN+F 
#s(^F F F F F Fr   