
    7Mg>$              
         d Z ddlmZ ddlmZmZ ddlmZmZ ddl	m
Z
mZ ddlmZmZ ddlmZmZ dd	lmZ dd
lmZmZ ddlmZmZ ddlmZmZmZmZmZ ddl m!Z! ddl"m#Z#m$Z$m%Z% ddl&m'Z'm(Z(m)Z) ddl*m+Z+m,Z,m-Z- e)e.e'e.   f   Z/	 e)e.e'e.   f   Z0	 e)eeeef   Z1e+e)e+e e$d      f   e+e
 e$d      f   e+e e$d      f   e+e e$d      f   f    e#d       f   Z2e)eef   Z3e)eef   Z4 G d de-      Z5 G d de      Z6y)zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    )annotations   )AssistantMessageAssistantMessageTypedDict)ResponseFormatResponseFormatTypedDict)SystemMessageSystemMessageTypedDict)ToolToolTypedDict)
ToolChoiceToolChoiceTypedDict)ToolChoiceEnum)ToolMessageToolMessageTypedDict)UserMessageUserMessageTypedDict)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINELget_discriminator)DiscriminatorTagmodel_serializer)ListOptionalUnion)	AnnotatedNotRequired	TypedDict	assistantsystemtooluserc                    t        | dd      S )Nroler   )ms    xE:\wamp.anq\www\apps\calme\nutritwin\resources\nutritwin\Lib\site-packages\mistralai_gcp/models/chatcompletionrequest.py<lambda>r,   0   s    -a@    c                      e Zd ZU ded<   	 ded<   	 ded<   	 ded<   	 d	ed
<   	 ded<   	 ded<   	 d	ed<   	 ded<   ded<   ded<   ded<   	 ded<   	 d	ed<   y)ChatCompletionRequestTypedDictNullable[str]modelz,List[ChatCompletionRequestMessagesTypedDict]messageszNotRequired[Nullable[float]]temperaturezNotRequired[float]top_pzNotRequired[Nullable[int]]
max_tokenszNotRequired[bool]streamz/NotRequired[ChatCompletionRequestStopTypedDict]stoprandom_seedz$NotRequired[ResponseFormatTypedDict]response_formatz*NotRequired[Nullable[List[ToolTypedDict]]]toolsz5NotRequired[ChatCompletionRequestToolChoiceTypedDict]tool_choicepresence_penaltyfrequency_penaltynN)__name__
__module____qualname____annotations__ r-   r+   r/   r/   :   s     g::f-- Q I** b N
99s++l9955FF(( q)) W!!_r-   r/   c                      e Zd ZU ded<   	 ded<   	 eZded<   	 dZded	<   	 eZd
ed<   	 dZded<   	 dZ	ded<   	 eZ
d
ed<   	 dZded<   eZded<   dZded<   dZded<   	 dZded<   	 eZd
ed<   	  ed      d        Zy)ChatCompletionRequestr0   r1   z#List[ChatCompletionRequestMessages]r2   zOptionalNullable[float]r3   r   zOptional[float]r4   zOptionalNullable[int]r5   FzOptional[bool]r6   Nz#Optional[ChatCompletionRequestStop]r7   r8   zOptional[ResponseFormat]r9   zOptionalNullable[List[Tool]]r:   z)Optional[ChatCompletionRequestToolChoice]r;   r<   r=   r>   wrap)modec                   g d}g d}g } ||       }i }| j                   j                         D ]  \  }}|j                  xs |}	|j                  |	      }
|j	                  |	d        |	|v xr |	|v }| j
                  j                  |h      xs |	|v }|
|
t        k7  r|
||	<   v|
t        k7  s|	|vs|s|s|
||	<    |S )N)r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   )r1   r3   r5   r8   r:   r>   )model_fieldsitemsaliasgetpop__pydantic_fields_set__intersectionr   )selfhandleroptional_fieldsnullable_fieldsnull_default_fields
serializedr*   r>   fkvaloptional_nullableis_sets                r+   serialize_modelz%ChatCompletionRequest.serialize_model~   s    

 !T]
%%++-DAq1A..#CNN1d# !_ 4 Mo9M,,991#> ,++ 
 3.#8!&(->6!! .$ r-   )r?   r@   rA   rB   r   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r   r[   rC   r-   r+   rE   rE   V   s     g11f+0K(0 QE? I(-J%- b"FN" N04D
-4s).K&.l04O-4*/E'/=AK:A(,o, q)-- W$A$_6"/ #/r-   rE   N)7__doc__
__future__r   assistantmessager   r   responseformatr   r   systemmessager	   r
   r&   r   r   
toolchoicer   r   toolchoiceenumr   toolmessager   r   usermessager   r   mistralai_gcp.typesr   r   r   r   r   mistralai_gcp.utilsr   pydanticr   r   r   typingr   r   r    typing_extensionsr!   r"   r#   str"ChatCompletionRequestStopTypedDictChatCompletionRequestStop&ChatCompletionRequestMessagesTypedDictChatCompletionRequestMessages(ChatCompletionRequestToolChoiceTypedDictChatCompletionRequestToolChoicer/   rE   rC   r-   r+   <module>rq      sD   G " I C @ % 7 * : :  2 9 9 ( ( ? ? &+3S	>%: " o "#tCy.1  o */* & !*	"C$445-X./+s6{*++s6{*+	- @AC!  ,11Dn1T+U ( #(
N(B"C `Y `8XI Xr-   