
    7Mgj$              
         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    tE:\wamp.anq\www\apps\calme\nutritwin\resources\nutritwin\Lib\site-packages\mistralai/models/chatcompletionrequest.py<lambda>r,   *   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<   	 ded<   y)ChatCompletionRequestTypedDictNullable[str]modelzList[MessagesTypedDict]messageszNotRequired[Nullable[float]]temperaturezNotRequired[float]top_pzNotRequired[Nullable[int]]
max_tokenszNotRequired[bool]streamzNotRequired[StopTypedDict]stoprandom_seedz$NotRequired[ResponseFormatTypedDict]response_formatz*NotRequired[Nullable[List[ToolTypedDict]]]toolsz5NotRequired[ChatCompletionRequestToolChoiceTypedDict]tool_choicepresence_penaltyfrequency_penaltynsafe_promptN)__name__
__module____qualname____annotations__ r-   r+   r/   r/   4   s     g%%f-- Q I** b N
$$s++l9955FF(( q)) W!!_""Fr-   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<   	 dZded<   	  ed      d        Zy) ChatCompletionRequestr0   r1   zList[Messages]r2   zOptionalNullable[float]r3   r   zOptional[float]r4   zOptionalNullable[int]r5   FzOptional[bool]r6   NzOptional[Stop]r7   r8   zOptional[ResponseFormat]r9   zOptionalNullable[List[Tool]]r:   z)Optional[ChatCompletionRequestToolChoice]r;   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>   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@   rA   rB   rC   r   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r   r\   rD   r-   r+   rF   rF   R   s     gf+0K(0 QE? I(-J%- b"FN" ND.s).K&.l04O-4*/E'/=AK:A(,o, q)-- W$A$_"'K'F6"0 #0r-   rF   N)7__doc__
__future__r   assistantmessager   r   responseformatr   r   systemmessager	   r
   r&   r   r   
toolchoicer   r   toolchoiceenumr   toolmessager   r   usermessager   r   mistralai.typesr   r   r   r   r   mistralai.utilsr   pydanticr   r   r   typingr   r   r    typing_extensionsr!   r"   r#   strStopTypedDictStopMessagesTypedDictMessages(ChatCompletionRequestToolChoiceTypedDictChatCompletionRequestToolChoicer/   rF   rD   r-   r+   <module>rr      s;   G " I C @ % 7 * : : X X - 9 9 ( ( ? ? c49n% o S$s)^ o   	"C$445-X./+s6{*++s6{*+	- @AC ,11Dn1T+U ( #(
N(B"C GY G<\I \r-   