mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
45 lines
956 B
Python
45 lines
956 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel
|
|
from typing import Literal
|
|
from typing_extensions import TypedDict
|
|
|
|
|
|
class ChatToolCallFunctionTypedDict(TypedDict):
|
|
arguments: str
|
|
r"""Function arguments as JSON string"""
|
|
name: str
|
|
r"""Function name to call"""
|
|
|
|
|
|
class ChatToolCallFunction(BaseModel):
|
|
arguments: str
|
|
r"""Function arguments as JSON string"""
|
|
|
|
name: str
|
|
r"""Function name to call"""
|
|
|
|
|
|
ChatToolCallType = Literal["function",]
|
|
|
|
|
|
class ChatToolCallTypedDict(TypedDict):
|
|
r"""Tool call made by the assistant"""
|
|
|
|
function: ChatToolCallFunctionTypedDict
|
|
id: str
|
|
r"""Tool call identifier"""
|
|
type: ChatToolCallType
|
|
|
|
|
|
class ChatToolCall(BaseModel):
|
|
r"""Tool call made by the assistant"""
|
|
|
|
function: ChatToolCallFunction
|
|
|
|
id: str
|
|
r"""Tool call identifier"""
|
|
|
|
type: ChatToolCallType
|