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

from __future__ import annotations
from .datetimeservertoolconfig import (
    DatetimeServerToolConfig,
    DatetimeServerToolConfigTypedDict,
)
from openrouter.types import BaseModel
from typing import Literal, Optional
from typing_extensions import NotRequired, TypedDict


DatetimeServerToolType = Literal["openrouter:datetime",]


class DatetimeServerToolTypedDict(TypedDict):
    r"""OpenRouter built-in server tool: returns the current date and time"""

    type: DatetimeServerToolType
    parameters: NotRequired[DatetimeServerToolConfigTypedDict]
    r"""Configuration for the openrouter:datetime server tool"""


class DatetimeServerTool(BaseModel):
    r"""OpenRouter built-in server tool: returns the current date and time"""

    type: DatetimeServerToolType

    parameters: Optional[DatetimeServerToolConfig] = None
    r"""Configuration for the openrouter:datetime server tool"""
