# 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 .agent_skill import AgentSkill


class PromptSource(UniversalBaseModel):
    """
    Prompt
    """

    type: typing.Literal["prompt"] = pydantic.Field(default="prompt")
    """
    Type of agent source
    """

    prompt_version_fqn: str = pydantic.Field()
    """
    Fully qualified name of the prompt version to use as the agent source
    """

    skills: typing.Optional[typing.List[AgentSkill]] = pydantic.Field(default=None)
    """
    List of skills associated with the agent
    """

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

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