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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class Type(str, enum.Enum):
    SYSTEM = "system"
    HUMAN = "human"
    USER = "user"

    def visit(
        self,
        system: typing.Callable[[], T_Result],
        human: typing.Callable[[], T_Result],
        user: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is Type.SYSTEM:
            return system()
        if self is Type.HUMAN:
            return human()
        if self is Type.USER:
            return user()
