
    i)              
      r   d Z ddl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 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&m'Z' ddl(m)Z)m*Z*m+Z+ ddl,m-Z- ddl.m/Z/m0Z0m1Z1 ddl2m3Z3m4Z4m5Z5m6Z6  e5de1e7e/e7   f         Z8	  e5de1e7e/e7   f         Z9	  e5de1eeeef         Z:e3e1e3e e*d      f   e3e e*d      f   e3e e*d      f   e3e e*d      f   f    e)d       f   Z; e5de1eef         Z< e5de1eef         Z= G d de6      Z> G d  d!e       Z?y")#zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    )annotations   )AssistantMessageAssistantMessageTypedDict)MistralPromptMode)
PredictionPredictionTypedDict)ResponseFormatResponseFormatTypedDict)SystemMessageSystemMessageTypedDict)ToolToolTypedDict)
ToolChoiceToolChoiceTypedDict)ToolChoiceEnum)ToolMessageToolMessageTypedDict)UserMessageUserMessageTypedDict)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINEL)get_discriminatorvalidate_open_enum)DiscriminatorTagmodel_serializer)PlainValidator)ListOptionalUnion)	AnnotatedNotRequiredTypeAliasType	TypedDict"ChatCompletionRequestStopTypedDictChatCompletionRequestStop&ChatCompletionRequestMessagesTypedDict	assistantsystemtooluserc                    t        | dd      S )Nrole)r   )ms    j/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/mistralai_azure/models/chatcompletionrequest.py<lambda>r4   :   s    -a@     (ChatCompletionRequestToolChoiceTypedDictChatCompletionRequestToolChoicec                      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<   ded<   ded<   	 ded<   y) ChatCompletionRequestTypedDictz,List[ChatCompletionRequestMessagesTypedDict]messageszNotRequired[str]modelz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nz NotRequired[PredictionTypedDict]
predictionparallel_tool_callsz(NotRequired[Nullable[MistralPromptMode]]prompt_modesafe_promptN)__name__
__module____qualname____annotations__ r5   r3   r9   r9   I   s    ::f7-- Q I** b N
99s++l9955FF(( q)) W!!_00**99 Y""Fr5   r9   c                  >   e Zd ZU 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<   	 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<   dZded<   eZded <   	 dZded!<   	  ed"#      d$        Zy)%ChatCompletionRequestz#List[ChatCompletionRequestMessages]r:   azureaizOptional[str]r;   zOptionalNullable[float]r<   NzOptional[float]r=   zOptionalNullable[int]r>   FzOptional[bool]r?   z#Optional[ChatCompletionRequestStop]r@   rA   zOptional[ResponseFormat]rB   zOptionalNullable[List[Tool]]rC   z)Optional[ChatCompletionRequestToolChoice]rD   rE   rF   rG   zOptional[Prediction]rH   rI   zYAnnotated[OptionalNullable[MistralPromptMode], PlainValidator(validate_open_enum(False))]rJ   rK   wrap)modec                   g d}g d}g } ||       }i }t        |       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)r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   )r<   r>   rA   rC   rG   rJ   )	typemodel_fieldsitemsaliasgetpop__pydantic_fields_set__intersectionr   )selfhandleroptional_fieldsnullable_fieldsnull_default_fields
serializedr2   rG   fkvaloptional_nullableis_sets                r3   serialize_modelz%ChatCompletionRequest.serialize_model   s    
&
 !T]
J++113 	DAq1A..#CNN1d# !_ 4 Mo9M,,991#> ,++ 
 3.#8!&(->6!!	$ r5   )rL   rM   rN   rO   r;   r   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   r    rj   rP   r5   r3   rR   rR   k   s   11f$E=$7+0K(0 Q!E?! I(-J%- b"FN" N04D
-4s).K&.l04O-4*/E'/=AK:A(,o, q)-- W$A$_'+J$+*.. 	    Y"&K&F6"4 #4r5   rR   N)@__doc__
__future__r   assistantmessager   r   mistralpromptmoder   rH   r   r	   responseformatr
   r   systemmessager   r   r.   r   r   
toolchoicer   r   toolchoiceenumr   toolmessager   r   usermessager   r   mistralai_azure.typesr   r   r   r   r   mistralai_azure.utilsr   r   pydanticr   r   r    pydantic.functional_validatorsr!   typingr"   r#   r$   typing_extensionsr%   r&   r'   r(   strr)   r*   r+   ChatCompletionRequestMessagesr6   r7   r9   rR   rP   r5   r3   <module>r}      s   G " I 0 7 C @ % 7 * : :  H 9 9 9 ( ( N N &3(%T#Y*?& " p *sDI~!6  p *7,	!	* & !*	"C$445-X./+s6{*++s6{*+	- @AC!  ,9.	
~
-., ( #0%uZ-G'H# 
GY GDiI ir5   