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

from __future__ import annotations
from .shellservertoolconfig import ShellServerToolConfig, ShellServerToolConfigTypedDict
from openrouter.types import BaseModel
from typing import Literal, Optional
from typing_extensions import NotRequired, TypedDict


ShellServerToolOpenRouterType = Literal["openrouter:shell",]


class ShellServerToolOpenRouterTypedDict(TypedDict):
    r"""OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool)"""

    type: ShellServerToolOpenRouterType
    parameters: NotRequired[ShellServerToolConfigTypedDict]
    r"""Configuration for the openrouter:shell server tool"""


class ShellServerToolOpenRouter(BaseModel):
    r"""OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool)"""

    type: ShellServerToolOpenRouterType

    parameters: Optional[ShellServerToolConfig] = None
    r"""Configuration for the openrouter:shell server tool"""
