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

import typing

import pydantic
from ...core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs
from ...types.search_corpus import SearchCorpus
from ...types.search_parameters import SearchParameters


class SearchCorpusParameters(SearchCorpus, SearchParameters):
    """
    The parameters to search one corpus.
    """

    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

from ...types.chain_reranker import ChainReranker  # noqa: E402
from ...types.search_reranker import SearchReranker  # noqa: E402

update_forward_refs(ChainReranker)            

if IS_PYDANTIC_V2:
    SearchCorpusParameters.model_rebuild()
