mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
31 lines
970 B
Python
31 lines
970 B
Python
"""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"""
|