Files
openrouter-python-sdk-retry…/src/openrouter/components/chatnamedtoolchoice.py
T

35 lines
817 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 ChatNamedToolChoiceFunctionTypedDict(TypedDict):
name: str
r"""Function name to call"""
class ChatNamedToolChoiceFunction(BaseModel):
name: str
r"""Function name to call"""
ChatNamedToolChoiceType = Literal["function",]
class ChatNamedToolChoiceTypedDict(TypedDict):
r"""Named tool choice for specific function"""
function: ChatNamedToolChoiceFunctionTypedDict
type: ChatNamedToolChoiceType
class ChatNamedToolChoice(BaseModel):
r"""Named tool choice for specific function"""
function: ChatNamedToolChoiceFunction
type: ChatNamedToolChoiceType