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

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


WebSearchUserLocationServerToolType = Literal["approximate",]


class WebSearchUserLocationServerToolTypedDict(TypedDict):
    r"""Approximate user location for location-biased results."""

    city: NotRequired[str]
    country: NotRequired[str]
    region: NotRequired[str]
    timezone: NotRequired[str]
    type: NotRequired[WebSearchUserLocationServerToolType]


class WebSearchUserLocationServerTool(BaseModel):
    r"""Approximate user location for location-biased results."""

    city: Optional[str] = None

    country: Optional[str] = None

    region: Optional[str] = None

    timezone: Optional[str] = None

    type: Optional[WebSearchUserLocationServerToolType] = None
