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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 AgentUpdateRequestToolsTypedDictcode_interpreterdocument_libraryfunctionimage_generation
web_searchweb_search_premiumc                 C  s   t | ddS )Ntyper   )m r,   i/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai/models/agentupdaterequest.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 )AgentUpdateRequestTypedDictzNotRequired[Nullable[str]]instructionsz3NotRequired[List[AgentUpdateRequestToolsTypedDict]]toolsz$NotRequired[CompletionArgsTypedDict]completion_argsmodelnamedescriptionz NotRequired[Nullable[List[str]]]handoffsN)__name__
__module____qualname____annotations__r,   r,   r,   r-   r/   ,   s   
 r/   c                   @  sz   e Zd ZU 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Z
ded
< eZded< edddd ZdS )AgentUpdateRequestzOptionalNullable[str]r0   Nz'Optional[List[AgentUpdateRequestTools]]r1   zOptional[CompletionArgs]r2   r3   r4   r5   zOptionalNullable[List[str]]r6   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)r0   r1   r2   r3   r4   r5   r6   )r0   r3   r4   r5   r6   )	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"AgentUpdateRequest.serialize_model)r7   r8   r9   r   r0   r:   r1   r2   r3   r4   r5   r6   r   rQ   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#   AgentUpdateRequestToolsr/   r;   r,   r,   r,   r-   <module>   sR    
