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 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& eZ'eZ(e%de"eef Z)e%de"ee
f 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   )ClassifierTargetInClassifierTargetInTypedDict)ClassifierTrainingParametersIn'ClassifierTrainingParametersInTypedDict)CompletionTrainingParametersIn'CompletionTrainingParametersInTypedDict)FineTuneableModelType)GithubRepositoryInGithubRepositoryInTypedDict)TrainingFileTrainingFileTypedDict)WandbIntegrationWandbIntegrationTypedDict)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINEL)model_serializer)ListOptionalUnion)NotRequiredTypeAliasType	TypedDictHyperparametersTypedDictHyperparametersc                   @  sp   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S )JobInTypedDictstrmodelr   hyperparametersz(NotRequired[List[TrainingFileTypedDict]]training_filesz NotRequired[Nullable[List[str]]]validation_fileszNotRequired[Nullable[str]]suffixz7NotRequired[Nullable[List[JobInIntegrationsTypedDict]]]integrationszNotRequired[bool]
auto_startzNotRequired[float]invalid_sample_skip_percentagez,NotRequired[Nullable[FineTuneableModelType]]job_typez7NotRequired[Nullable[List[JobInRepositoriesTypedDict]]]repositoriesz8NotRequired[Nullable[List[ClassifierTargetInTypedDict]]]classifier_targetsN)__name__
__module____qualname____annotations__ r0   r0   \/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai/models/jobin.pyr   1   s"   
 r   c                   @  s   e Zd ZU ded< 	 ded< d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Zded< eZded< eZded< edddd ZdS )JobInr    r!   r   r"   NzOptional[List[TrainingFile]]r#   zOptionalNullable[List[str]]r$   zOptionalNullable[str]r%   z)OptionalNullable[List[JobInIntegrations]]r&   zOptional[bool]r'   r   zOptional[float]r(   z'OptionalNullable[FineTuneableModelType]r)   z)OptionalNullable[List[JobInRepositories]]r*   z*OptionalNullable[List[ClassifierTargetIn]]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&   r)   r*   r+   )	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_setr0   r0   r1   serialize_model`   s(   


zJobIn.serialize_model)r,   r-   r.   r/   r#   r   r$   r%   r&   r'   r(   r)   r*   r+   r   rJ   r0   r0   r0   r1   r2   D   s&   
 r2   N)/__doc__
__future__r   classifiertargetinr   r   classifiertrainingparametersinr   r   completiontrainingparametersinr   r	   finetuneablemodeltyper
   githubrepositoryinr   r   trainingfiler   r   wandbintegrationr   r   mistralai.typesr   r   r   r   r   pydanticr   typingr   r   r   typing_extensionsr   r   r   JobInIntegrationsTypedDictJobInIntegrationsr   r   JobInRepositoriesTypedDictJobInRepositoriesr   r2   r0   r0   r0   r1   <module>   s:    
