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

from ..core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from .prompt_conf import PromptConf
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class StructParseConf(UniversalBaseModel):
    """
    Configuration for the structured parsing agent.
    """

    model: typing.Optional[str] = pydantic.Field(default=None)
    """
    The model to use for the structured parsing.
    """

    temperature: typing.Optional[float] = pydantic.Field(default=None)
    """
    The temperature to use for the structured parsing.
    """

    prompt_conf: typing.Optional[PromptConf] = pydantic.Field(default=None)
    """
    The prompt configuration for the structured parsing.
    """

    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
