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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 ed Z	 ed Z	 eZ eZ!ed Z"	 eZ#e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   )CompletionTrainingParameters%CompletionTrainingParametersTypedDict)GithubRepositoryOutGithubRepositoryOutTypedDict)JobMetadataOutJobMetadataOutTypedDict)WandbIntegrationOutWandbIntegrationOutTypedDict)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINEL)model_serializer)ListLiteralOptional)NotRequired	TypedDict)
QUEUEDSTARTED
VALIDATING	VALIDATEDRUNNINGFAILED_VALIDATIONFAILEDSUCCESS	CANCELLEDCANCELLATION_REQUESTEDjob
completionc                   @  s   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ed< 	 ded< 	 ded< 	 ded< ded< 	 ded< d S )!CompletionJobOutTypedDictstridbool
auto_startmodelStatusstatusint
created_atmodified_at	List[str]training_filesr   hyperparametersz NotRequired[Nullable[List[str]]]validation_filesz#NotRequired[CompletionJobOutObject]objectzNotRequired[Nullable[str]]fine_tuned_modelsuffixz2NotRequired[Nullable[List[IntegrationsTypedDict]]]integrationszNotRequired[Nullable[int]]trained_tokensz.NotRequired[Nullable[JobMetadataOutTypedDict]]metadatazNotRequired[JobType]job_typez(NotRequired[List[RepositoriesTypedDict]]repositoriesN)__name__
__module____qualname____annotations__ r>   r>   g/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai/models/completionjobout.pyr#   1   s>   
 r#   c                   @  s   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< e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Zded< dZded< 	 d Zd!ed"< ed#d$d%d& Zd S )'CompletionJobOutr$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r   r0   zOptionalNullable[List[str]]r1   r!   z Optional[CompletionJobOutObject]r2   zOptionalNullable[str]r3   r4   z$OptionalNullable[List[Integrations]]r5   zOptionalNullable[int]r6   z OptionalNullable[JobMetadataOut]r7   r"   zOptional[JobType]r8   NzOptional[List[Repositories]]r9   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)	r1   r2   r3   r4   r5   r6   r7   r8   r9   )r1   r3   r4   r5   r6   r7   )	type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 CompletionJobOut.serialize_model)r:   r;   r<   r=   r   r1   r2   r3   r4   r5   r6   r7   r8   r9   r   rX   r>   r>   r>   r?   r@   R   sB   
 r@   N)'__doc__
__future__r   completiontrainingparametersr   r   githubrepositoryoutr   r   jobmetadataoutr   r	   wandbintegrationoutr
   r   mistralai.typesr   r   r   r   r   pydanticr   typingr   r   r   typing_extensionsr   r   r)   CompletionJobOutObjectIntegrationsTypedDictIntegrationsJobTypeRepositoriesTypedDictRepositoriesr#   r@   r>   r>   r>   r?   <module>   s0    !