"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .containerautoenvironment import (
    ContainerAutoEnvironment,
    ContainerAutoEnvironmentTypedDict,
)
from .containerreferenceenvironment import (
    ContainerReferenceEnvironment,
    ContainerReferenceEnvironmentTypedDict,
)
from openrouter.utils import get_discriminator
from pydantic import Discriminator, Tag
from typing import Union
from typing_extensions import Annotated, TypeAliasType


BashServerToolEnvironmentTypedDict = TypeAliasType(
    "BashServerToolEnvironmentTypedDict",
    Union[ContainerAutoEnvironmentTypedDict, ContainerReferenceEnvironmentTypedDict],
)
r"""Execution environment for the bash server tool."""


BashServerToolEnvironment = Annotated[
    Union[
        Annotated[ContainerAutoEnvironment, Tag("container_auto")],
        Annotated[ContainerReferenceEnvironment, Tag("container_reference")],
    ],
    Discriminator(lambda m: get_discriminator(m, "type", "type")),
]
r"""Execution environment for the bash server tool."""
