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

48 lines
1.4 KiB
Python

"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from .chatcompletioncontentpart import (
ChatCompletionContentPart,
ChatCompletionContentPartTypedDict,
)
from openrouter.types import BaseModel
from typing import List, Literal, Union
from typing_extensions import TypeAliasType, TypedDict
ChatCompletionToolMessageParamRole = Literal["tool"]
ChatCompletionToolMessageParamContentTypedDict = TypeAliasType(
"ChatCompletionToolMessageParamContentTypedDict",
Union[str, List[ChatCompletionContentPartTypedDict]],
)
r"""Tool response content"""
ChatCompletionToolMessageParamContent = TypeAliasType(
"ChatCompletionToolMessageParamContent", Union[str, List[ChatCompletionContentPart]]
)
r"""Tool response content"""
class ChatCompletionToolMessageParamTypedDict(TypedDict):
r"""Tool response message"""
role: ChatCompletionToolMessageParamRole
content: ChatCompletionToolMessageParamContentTypedDict
r"""Tool response content"""
tool_call_id: str
r"""ID of the tool call this message responds to"""
class ChatCompletionToolMessageParam(BaseModel):
r"""Tool response message"""
role: ChatCompletionToolMessageParamRole
content: ChatCompletionToolMessageParamContent
r"""Tool response content"""
tool_call_id: str
r"""ID of the tool call this message responds to"""