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

from __future__ import annotations
from .applypatchservertoolconfig import (
    ApplyPatchServerToolConfig,
    ApplyPatchServerToolConfigTypedDict,
)
from openrouter.types import BaseModel
from typing import Literal, Optional
from typing_extensions import NotRequired, TypedDict


ApplyPatchServerToolOpenRouterType = Literal["openrouter:apply_patch",]


class ApplyPatchServerToolOpenRouterTypedDict(TypedDict):
    r"""OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API."""

    type: ApplyPatchServerToolOpenRouterType
    parameters: NotRequired[ApplyPatchServerToolConfigTypedDict]
    r"""Configuration for the openrouter:apply_patch server tool"""


class ApplyPatchServerToolOpenRouter(BaseModel):
    r"""OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API."""

    type: ApplyPatchServerToolOpenRouterType

    parameters: Optional[ApplyPatchServerToolConfig] = None
    r"""Configuration for the openrouter:apply_patch server tool"""
