mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
48 lines
1.4 KiB
Python
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"""
|