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

from __future__ import annotations

import typing

from .error_vellum_value_request import ErrorVellumValueRequest
from .function_call_vellum_value_request import FunctionCallVellumValueRequest
from .image_vellum_value_request import ImageVellumValueRequest
from .json_vellum_value_request import JsonVellumValueRequest
from .number_vellum_value_request import NumberVellumValueRequest
from .string_vellum_value_request import StringVellumValueRequest


class ArrayVellumValueItemRequest_String(StringVellumValueRequest):
    type: typing.Literal["STRING"] = "STRING"

    class Config:
        frozen = True
        smart_union = True
        allow_population_by_field_name = True
        populate_by_name = True


class ArrayVellumValueItemRequest_Number(NumberVellumValueRequest):
    type: typing.Literal["NUMBER"] = "NUMBER"

    class Config:
        frozen = True
        smart_union = True
        allow_population_by_field_name = True
        populate_by_name = True


class ArrayVellumValueItemRequest_Json(JsonVellumValueRequest):
    type: typing.Literal["JSON"] = "JSON"

    class Config:
        frozen = True
        smart_union = True
        allow_population_by_field_name = True
        populate_by_name = True


class ArrayVellumValueItemRequest_Image(ImageVellumValueRequest):
    type: typing.Literal["IMAGE"] = "IMAGE"

    class Config:
        frozen = True
        smart_union = True
        allow_population_by_field_name = True
        populate_by_name = True


class ArrayVellumValueItemRequest_FunctionCall(FunctionCallVellumValueRequest):
    type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"

    class Config:
        frozen = True
        smart_union = True
        allow_population_by_field_name = True
        populate_by_name = True


class ArrayVellumValueItemRequest_Error(ErrorVellumValueRequest):
    type: typing.Literal["ERROR"] = "ERROR"

    class Config:
        frozen = True
        smart_union = True
        allow_population_by_field_name = True
        populate_by_name = True


ArrayVellumValueItemRequest = typing.Union[
    ArrayVellumValueItemRequest_String,
    ArrayVellumValueItemRequest_Number,
    ArrayVellumValueItemRequest_Json,
    ArrayVellumValueItemRequest_Image,
    ArrayVellumValueItemRequest_FunctionCall,
    ArrayVellumValueItemRequest_Error,
]
