# 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 ThreadStopResponseOut(UniversalBaseModel):
    """
    Response model for thread stop.
    """

    message: str = pydantic.Field()
    """
    Status message about the cancellation
    """

    status: str = pydantic.Field()
    """
    New status of the thread (always 'cancelled')
    """

    stopped_at: str = pydantic.Field()
    """
    ISO timestamp when thread was cancelled
    """

    thread_id: str = pydantic.Field()
    """
    The thread ID that was cancelled
    """

    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
