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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class ExtractMode(str, enum.Enum):
    FAST = "FAST"
    ACCURATE = "ACCURATE"

    def visit(self, fast: typing.Callable[[], T_Result], accurate: typing.Callable[[], T_Result]) -> T_Result:
        if self is ExtractMode.FAST:
            return fast()
        if self is ExtractMode.ACCURATE:
            return accurate()
