o
    i                     @  s   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
mZmZmZ ddlmZ ddlmZ dd	lmZmZ G d
d deZG dd de	ZdS )zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    )annotations   )
JSONSchemaJSONSchemaTypedDict)ResponseFormats)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINEL)model_serializer)Optional)NotRequired	TypedDictc                   @  s    e Zd ZU ded< 	 ded< dS )ResponseFormatTypedDictzNotRequired[ResponseFormats]typez*NotRequired[Nullable[JSONSchemaTypedDict]]json_schemaN)__name__
__module____qualname____annotations__ r   r   i/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai_gcp/models/responseformat.pyr      s   
 r   c                   @  s:   e Zd ZU dZded< 	 eZded< edddd	 ZdS )
ResponseFormatNzOptional[ResponseFormats]r   zOptionalNullable[JSONSchema]r   wrap)modec                 C  s   ddg}dg}g }|| }i }| j  D ]D\}}|jp|}	||	}
||	d  |	|v o/|	|v }| j|hp:|	|v }|
d urH|
tkrH|
||	< q|
tkrX|	|vsT|rX|rX|
||	< q|S )Nr   r   )model_fieldsitemsaliasgetpop__pydantic_fields_set__intersectionr   )selfhandleroptional_fieldsnullable_fieldsnull_default_fields
serializedmnfkvaloptional_nullableis_setr   r   r   serialize_model   s(   


zResponseFormat.serialize_model)	r   r   r   r   r   r
   r   r   r0   r   r   r   r   r      s   
 r   N)__doc__
__future__r   
jsonschemar   r   responseformatsr   mistralai_gcp.typesr   r   r	   r
   r   pydanticr   typingr   typing_extensionsr   r   r   r   r   r   r   r   <module>   s    