o
    i                     @  s  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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*m+Z+ ddl,m-Z-m.Z.m/Z/m0Z0 e)d Z1e/de+eeeeeef Z2e-e+e-ee%df e-ee%df e-ee%df e-ee%df e-ee%df e-ee%df f e$dd f Z3G dd de0Z4G dd deZ5dS ) zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    )annotations   )CodeInterpreterToolCodeInterpreterToolTypedDict)CompletionArgsCompletionArgsTypedDict)ConversationInputsConversationInputsTypedDict)DocumentLibraryToolDocumentLibraryToolTypedDict)FunctionToolFunctionToolTypedDict)ImageGenerationToolImageGenerationToolTypedDict)WebSearchPremiumToolWebSearchPremiumToolTypedDict)WebSearchToolWebSearchToolTypedDict)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINELget_discriminator)DiscriminatorTagmodel_serializer)ListLiteralOptionalUnion)	AnnotatedNotRequiredTypeAliasType	TypedDict)clientserverToolsTypedDictcode_interpreterdocument_libraryfunctionimage_generation
web_searchweb_search_premiumc                 C  s   t | ddS )Ntyper   )m r1   j/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai/models/conversationrequest.py<lambda>+   s    r3   c                   @  sf   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S )ConversationRequestTypedDictr	   inputszNotRequired[bool]streamzNotRequired[Nullable[bool]]storez'NotRequired[Nullable[HandoffExecution]]handoff_executionzNotRequired[Nullable[str]]instructionsz+NotRequired[Nullable[List[ToolsTypedDict]]]toolsz.NotRequired[Nullable[CompletionArgsTypedDict]]completion_argsnamedescriptionagent_idmodelN)__name__
__module____qualname____annotations__r1   r1   r1   r2   r4   /   s   
 r4   c                   @  s   e Zd ZU ded< dZded< eZded< eZded	< eZd
ed< eZ	ded< eZ
ded< eZd
ed< eZd
ed< eZd
ed< eZd
ed< edddd ZdS )ConversationRequestr   r5   FzOptional[bool]r6   zOptionalNullable[bool]r7   z"OptionalNullable[HandoffExecution]r8   zOptionalNullable[str]r9   zOptionalNullable[List[Tools]]r:   z OptionalNullable[CompletionArgs]r;   r<   r=   r>   r?   wrap)modec                 C  s   g d}g d}g }|| }i }t | j D ]D\}}|jp|}	||	}
||	d  |	|v o2|	|v }| j|hp=|	|v }|
d urK|
tkrK|
||	< q|
tkr[|	|vsW|r[|r[|
||	< q|S )N)
r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   )	r7   r8   r9   r:   r;   r<   r=   r>   r?   )	r/   model_fieldsitemsaliasgetpop__pydantic_fields_set__intersectionr   )selfhandleroptional_fieldsnullable_fieldsnull_default_fields
serializedr0   nfkvaloptional_nullableis_setr1   r1   r2   serialize_modelT   s(   


z#ConversationRequest.serialize_modelN)r@   rA   rB   rC   r6   r   r7   r8   r9   r:   r;   r<   r=   r>   r?   r   rZ   r1   r1   r1   r2   rD   =   s   
 rD   N)6__doc__
__future__r   codeinterpretertoolr   r   completionargsr   r   conversationinputsr   r	   documentlibrarytoolr
   r   functiontoolr   r   imagegenerationtoolr   r   websearchpremiumtoolr   r   websearchtoolr   r   mistralai.typesr   r   r   r   r   mistralai.utilsr   pydanticr   r   r   typingr   r   r    r!   typing_extensionsr"   r#   r$   r%   HandoffExecutionr(   Toolsr4   rD   r1   r1   r1   r2   <module>   sV    
