o
    iv                     @  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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+m,Z, e+de'eeeeeef Z-e)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 Z.G dd de,Z/G dd deZ0dS )zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    )annotations   )CodeInterpreterToolCodeInterpreterToolTypedDict)CompletionArgsCompletionArgsTypedDict)DocumentLibraryToolDocumentLibraryToolTypedDict)FunctionToolFunctionToolTypedDict)ImageGenerationToolImageGenerationToolTypedDict)WebSearchPremiumToolWebSearchPremiumToolTypedDict)WebSearchToolWebSearchToolTypedDict)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINELget_discriminator)DiscriminatorTagmodel_serializer)ListOptionalUnion)	AnnotatedNotRequiredTypeAliasType	TypedDict"AgentCreationRequestToolsTypedDictcode_interpreterdocument_libraryfunctionimage_generation
web_searchweb_search_premiumc                 C  s   t | ddS )Ntyper   )m r,   k/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai/models/agentcreationrequest.py<lambda>(   s    r.   c                   @  sL   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S )AgentCreationRequestTypedDictstrmodelnamezNotRequired[Nullable[str]]instructionsz5NotRequired[List[AgentCreationRequestToolsTypedDict]]toolsz$NotRequired[CompletionArgsTypedDict]completion_argsdescriptionz NotRequired[Nullable[List[str]]]handoffsN)__name__
__module____qualname____annotations__r,   r,   r,   r-   r/   ,   s   
 r/   c                   @  sr   e Zd ZU ded< ded< eZded< 	 dZded< 	 dZd	ed
< 	 eZded< eZ	ded< e
dddd ZdS )AgentCreationRequestr0   r1   r2   zOptionalNullable[str]r3   Nz)Optional[List[AgentCreationRequestTools]]r4   zOptional[CompletionArgs]r5   r6   zOptionalNullable[List[str]]r7   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)r3   r4   r5   r6   r7   )r3   r6   r7   )	r*   model_fieldsitemsaliasgetpop__pydantic_fields_set__intersectionr   )selfhandleroptional_fieldsnullable_fieldsnull_default_fields
serializedr+   nfkvaloptional_nullableis_setr,   r,   r-   serialize_modelK   s(   


z$AgentCreationRequest.serialize_model)r8   r9   r:   r;   r   r3   r4   r5   r6   r7   r   rR   r,   r,   r,   r-   r<   9   s   
 r<   N)1__doc__
__future__r   codeinterpretertoolr   r   completionargsr   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   typing_extensionsr   r    r!   r"   r#   AgentCreationRequestToolsr/   r<   r,   r,   r,   r-   <module>   sR    
