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

from .base_search_response_dto import BaseSearchResponseDto
import typing
import pydantic
from .user_input_dto import UserInputDto
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class FailedSearchSimilarResponseDto(BaseSearchResponseDto):
    """
    The response model for a failed `Search Similar` request.
    """

    articles: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field(default=None)
    """
    An empty list of articles, as no matches were found.
    """

    user_input: typing.Optional[UserInputDto] = 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
