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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class ChatMlImageContentPartImageUrlDetail(str, enum.Enum):
    """
    image detail to feed into the model can be low | high | auto
    """

    LOW = "low"
    HIGH = "high"
    AUTO = "auto"

    def visit(
        self,
        low: typing.Callable[[], T_Result],
        high: typing.Callable[[], T_Result],
        auto: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is ChatMlImageContentPartImageUrlDetail.LOW:
            return low()
        if self is ChatMlImageContentPartImageUrlDetail.HIGH:
            return high()
        if self is ChatMlImageContentPartImageUrlDetail.AUTO:
            return auto()
