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

import typing

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


class ThreadUserStateSchema(UniversalBaseModel):
    """
    Full per-thread user state stored in the JSON column.
    """

    model_override: typing.Optional[str] = pydantic.Field(default=None)
    """
    FTG model key to use instead of the assistant default.
    """

    reasoning_override: typing.Optional[str] = pydantic.Field(default=None)
    """
    Reasoning effort override (e.g. 'low', 'medium', 'high').
    """

    disabled_tools: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
    """
    Tool names the user has disabled for this thread.
    """

    tool_conflict_choices: typing.Optional[typing.Dict[str, str]] = pydantic.Field(default=None)
    """
    Mapping of conflict key to chosen tool name when multiple connectors expose overlapping functionality.
    """

    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
