# This file was auto-generated by Fern from our API Definition.

from ..core.unchecked_base_model import UncheckedBaseModel
import typing
import datetime as dt
from .user_simple import UserSimple
import pydantic
from .skill_name_enum import SkillNameEnum
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class ModelInterface(UncheckedBaseModel):
    associated_projects: typing.Optional[typing.List[int]] = None
    created_at: typing.Optional[dt.datetime] = None
    created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
    """
    User who created Dataset
    """

    description: typing.Optional[str] = pydantic.Field(default=None)
    """
    Model description
    """

    id: typing.Optional[int] = None
    input_fields: typing.Optional[typing.Optional[typing.Any]] = None
    organization: typing.Optional[int] = None
    output_classes: typing.Optional[typing.Optional[typing.Any]] = None
    skill_name: typing.Optional[SkillNameEnum] = None
    title: str = pydantic.Field()
    """
    Model name
    """

    updated_at: typing.Optional[dt.datetime] = None

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
