# 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


class FileInputConfigWorkflowOverride(UncheckedBaseModel):
    enabled: typing.Optional[bool] = pydantic.Field(default=None)
    """
    When enabled, users may attach images or PDFs in chat when the LLM supports multimodal input.
    """

    max_files_in_memory: typing.Optional[int] = pydantic.Field(default=None)
    """
    Number of most-recent files kept in memory during a conversation. Older files are summarized and their bytes freed.
    """

    max_files_per_conversation: typing.Optional[int] = pydantic.Field(default=None)
    """
    Total files a user can upload in one conversation. Uploads are billed per file. Use -1 for no limit, or a value >= max_files_in_memory.
    """

    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
