Files
openrouter-python-sdk-retry…/src/openrouter/models/chatcompletionnamedtoolchoice.py
T
2025-09-07 20:40:53 +01:00

35 lines
906 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
ChatCompletionNamedToolChoiceType = Literal["function"]
class ChatCompletionNamedToolChoiceFunctionTypedDict(TypedDict):
name: str
r"""Function name to call"""
class ChatCompletionNamedToolChoiceFunction(BaseModel):
name: str
r"""Function name to call"""
class ChatCompletionNamedToolChoiceTypedDict(TypedDict):
r"""Named tool choice for specific function"""
type: ChatCompletionNamedToolChoiceType
function: ChatCompletionNamedToolChoiceFunctionTypedDict
class ChatCompletionNamedToolChoice(BaseModel):
r"""Named tool choice for specific function"""
type: ChatCompletionNamedToolChoiceType
function: ChatCompletionNamedToolChoiceFunction