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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .task_difficulty import TaskDifficulty


class TaskDetails(UniversalBaseModel):
    """
    Detailed information about a task
    """

    task_num: str = pydantic.Field()
    """
    Task number
    """

    universe_id: str = pydantic.Field()
    """
    Universe ID
    """

    title: str = pydantic.Field()
    """
    Task title
    """

    description: str = pydantic.Field()
    """
    Full task description
    """

    prompt: str = pydantic.Field()
    """
    LLM prompt for the task
    """

    difficulty: TaskDifficulty = pydantic.Field()
    """
    Difficulty level
    """

    verification_rationale: str = pydantic.Field()
    """
    Detailed explanation of what verification checks for and how task completion is evaluated
    """

    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
