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

import typing

import pydantic
from ...core.pydantic_utilities import IS_PYDANTIC_V2
from ...core.unchecked_base_model import UncheckedBaseModel
from .templates_create_agents_from_template_response_agents_item_llm_config_compatibility_type import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigCompatibilityType,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_display_name import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_enable_reasoner import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigEnableReasoner,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_frequency_penalty import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigFrequencyPenalty,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_handle import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_max_reasoning_tokens import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxReasoningTokens,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_max_tokens import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelEndpoint,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_type import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelEndpointType,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelWrapper,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_provider_category import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigProviderCategory,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_provider_name import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigProviderName,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_reasoning_effort import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigReasoningEffort,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_temperature import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_tier import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTier,
)
from .templates_create_agents_from_template_response_agents_item_llm_config_verbosity import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigVerbosity,
)


class TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig(UncheckedBaseModel):
    model: str
    display_name: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName] = None
    model_endpoint_type: TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelEndpointType
    model_endpoint: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelEndpoint] = None
    provider_name: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigProviderName] = None
    provider_category: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigProviderCategory] = (
        None
    )
    model_wrapper: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelWrapper] = None
    context_window: float
    put_inner_thoughts_in_kwargs: typing.Optional[
        TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs
    ] = None
    handle: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle] = None
    temperature: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature] = None
    max_tokens: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens] = None
    enable_reasoner: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigEnableReasoner] = None
    reasoning_effort: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigReasoningEffort] = (
        None
    )
    max_reasoning_tokens: typing.Optional[
        TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxReasoningTokens
    ] = None
    frequency_penalty: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigFrequencyPenalty] = (
        None
    )
    compatibility_type: typing.Optional[
        TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigCompatibilityType
    ] = None
    verbosity: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigVerbosity] = None
    tier: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTier] = None
    parallel_tool_calls: typing.Optional[
        TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls
    ] = 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
