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mZmZmZ dd	lmZmZmZ ed
 Zed Zed Zedeeee f Zedeeee f 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   )MessageOutputContentChunks#MessageOutputContentChunksTypedDict)datetime)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINEL)model_serializer)ListLiteralOptionalUnion)NotRequiredTypeAliasType	TypedDictentrymessage.output	assistant"MessageOutputEntryContentTypedDictMessageOutputEntryContentc                   @  sV   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S )MessageOutputEntryTypedDictr   contentz%NotRequired[MessageOutputEntryObject]objectz#NotRequired[MessageOutputEntryType]typezNotRequired[datetime]
created_atzNotRequired[Nullable[datetime]]completed_atzNotRequired[str]idzNotRequired[Nullable[str]]agent_idmodelz#NotRequired[MessageOutputEntryRole]roleN)__name__
__module____qualname____annotations__ r'   r'   i/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai/models/messageoutputentry.pyr       s   
 r   c                   @  s   e Zd ZU 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< eZ
ded< eZded< dZded< edddd Zd	S )MessageOutputEntryr   r   r   z"Optional[MessageOutputEntryObject]r   r   z Optional[MessageOutputEntryType]r   NzOptional[datetime]r   zOptionalNullable[datetime]r   zOptional[str]r   zOptionalNullable[str]r    r!   r   z Optional[MessageOutputEntryRole]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)r   r   r   r   r   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
serializedmnfkvaloptional_nullableis_setr'   r'   r(   serialize_model?   s(   



z"MessageOutputEntry.serialize_model)r#   r$   r%   r&   r   r   r   r
   r   r   r    r!   r"   r   r@   r'   r'   r'   r(   r)   ,   s   
 r)   N) __doc__
__future__r   messageoutputcontentchunksr   r   r   mistralai.typesr   r   r	   r
   r   pydanticr   typingr   r   r   r   typing_extensionsr   r   r   MessageOutputEntryObjectMessageOutputEntryTypeMessageOutputEntryRolestrr   r   r   r)   r'   r'   r'   r(   <module>   s(    