-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathchat_completion_request_function_message.py
More file actions
139 lines (104 loc) · 4.39 KB
/
Copy pathchat_completion_request_function_message.py
File metadata and controls
139 lines (104 loc) · 4.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# coding: utf-8
"""
launch
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
import uuid # noqa: F401
from datetime import date, datetime # noqa: F401
import frozendict # noqa: F401
import typing_extensions # noqa: F401
from launch.api_client import schemas # noqa: F401
class ChatCompletionRequestFunctionMessage(
schemas.DictSchema
):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
class MetaOapg:
required = {
"role",
"name",
}
class properties:
class role(
schemas.EnumBase,
schemas.StrSchema
):
class MetaOapg:
enum_value_to_name = {
"function": "FUNCTION",
}
@schemas.classproperty
def FUNCTION(cls):
return cls("function")
name = schemas.StrSchema
class content(
schemas.StrBase,
schemas.NoneBase,
schemas.Schema,
schemas.NoneStrMixin
):
def __new__(
cls,
*_args: typing.Union[None, str, ],
_configuration: typing.Optional[schemas.Configuration] = None,
) -> 'content':
return super().__new__(
cls,
*_args,
_configuration=_configuration,
)
__annotations__ = {
"role": role,
"name": name,
"content": content,
}
role: MetaOapg.properties.role
name: MetaOapg.properties.name
@typing.overload
def __getitem__(self, name: typing_extensions.Literal["role"]) -> MetaOapg.properties.role: ...
@typing.overload
def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
def __getitem__(self, name: typing_extensions.Literal["content"]) -> MetaOapg.properties.content: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", "name", "content", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> MetaOapg.properties.role: ...
@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["content"]) -> typing.Union[MetaOapg.properties.content, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", "name", "content", ], str]):
return super().get_item_oapg(name)
def __new__(
cls,
*_args: typing.Union[dict, frozendict.frozendict, ],
role: typing.Union[MetaOapg.properties.role, str, ],
name: typing.Union[MetaOapg.properties.name, str, ],
content: typing.Union[MetaOapg.properties.content, None, str, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
) -> 'ChatCompletionRequestFunctionMessage':
return super().__new__(
cls,
*_args,
role=role,
name=name,
content=content,
_configuration=_configuration,
**kwargs,
)