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

from __future__ import annotations
from .websearchservertoolconfig import (
    WebSearchServerToolConfig,
    WebSearchServerToolConfigTypedDict,
)
from openrouter.types import BaseModel
from typing import Literal, Optional
from typing_extensions import NotRequired, TypedDict


WebSearchServerToolOpenRouterType = Literal["openrouter:web_search",]


class WebSearchServerToolOpenRouterTypedDict(TypedDict):
    r"""OpenRouter built-in server tool: searches the web for current information"""

    type: WebSearchServerToolOpenRouterType
    parameters: NotRequired[WebSearchServerToolConfigTypedDict]
    r"""Configuration for the openrouter:web_search server tool"""


class WebSearchServerToolOpenRouter(BaseModel):
    r"""OpenRouter built-in server tool: searches the web for current information"""

    type: WebSearchServerToolOpenRouterType

    parameters: Optional[WebSearchServerToolConfig] = None
    r"""Configuration for the openrouter:web_search server tool"""
