scale-gp-beta 0.1.0a29__py3-none-any.whl → 0.1.0a31__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scale_gp_beta/_base_client.py +7 -4
- scale_gp_beta/_client.py +17 -8
- scale_gp_beta/_compat.py +48 -48
- scale_gp_beta/_files.py +4 -4
- scale_gp_beta/_models.py +63 -42
- scale_gp_beta/_types.py +35 -1
- scale_gp_beta/_utils/__init__.py +9 -2
- scale_gp_beta/_utils/_compat.py +45 -0
- scale_gp_beta/_utils/_datetime_parse.py +136 -0
- scale_gp_beta/_utils/_transform.py +11 -1
- scale_gp_beta/_utils/_typing.py +6 -1
- scale_gp_beta/_utils/_utils.py +0 -1
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/lib/CONTRIBUTING.MD +53 -0
- scale_gp_beta/lib/tracing/trace_queue_manager.py +14 -0
- scale_gp_beta/resources/__init__.py +20 -6
- scale_gp_beta/resources/chat/completions.py +22 -18
- scale_gp_beta/resources/completions.py +18 -18
- scale_gp_beta/resources/datasets.py +8 -8
- scale_gp_beta/resources/evaluations.py +35 -13
- scale_gp_beta/resources/responses.py +314 -0
- scale_gp_beta/resources/spans.py +25 -33
- scale_gp_beta/types/__init__.py +17 -0
- scale_gp_beta/types/chat/chat_completion.py +61 -6
- scale_gp_beta/types/chat/chat_completion_chunk.py +17 -1
- scale_gp_beta/types/chat/completion_create_params.py +5 -3
- scale_gp_beta/types/chat/completion_models_params.py +2 -0
- scale_gp_beta/types/chat/model_definition.py +6 -0
- scale_gp_beta/types/completion.py +8 -0
- scale_gp_beta/types/completion_create_params.py +5 -3
- scale_gp_beta/types/container.py +2 -8
- scale_gp_beta/types/container_param.py +2 -2
- scale_gp_beta/types/dataset.py +3 -1
- scale_gp_beta/types/dataset_create_params.py +4 -2
- scale_gp_beta/types/dataset_item.py +3 -1
- scale_gp_beta/types/dataset_list_params.py +3 -2
- scale_gp_beta/types/dataset_update_params.py +3 -2
- scale_gp_beta/types/evaluation.py +7 -8
- scale_gp_beta/types/evaluation_create_params.py +17 -6
- scale_gp_beta/types/evaluation_item.py +3 -1
- scale_gp_beta/types/evaluation_list_params.py +3 -1
- scale_gp_beta/types/evaluation_task.py +31 -55
- scale_gp_beta/types/evaluation_task_param.py +32 -4
- scale_gp_beta/types/evaluation_update_params.py +3 -2
- scale_gp_beta/types/file.py +3 -1
- scale_gp_beta/types/inference_model.py +7 -0
- scale_gp_beta/types/model_create_params.py +6 -4
- scale_gp_beta/types/model_update_params.py +6 -4
- scale_gp_beta/types/question.py +11 -10
- scale_gp_beta/types/question_create_params.py +4 -2
- scale_gp_beta/types/response.py +2852 -0
- scale_gp_beta/types/response_create_params.py +819 -0
- scale_gp_beta/types/response_create_response.py +20891 -0
- scale_gp_beta/types/shared/__init__.py +3 -0
- scale_gp_beta/types/shared/identity.py +16 -0
- scale_gp_beta/types/span.py +4 -2
- scale_gp_beta/types/span_search_params.py +10 -12
- {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/METADATA +2 -3
- {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/RECORD +61 -52
- {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/WHEEL +0 -0
- {scale_gp_beta-0.1.0a29.dist-info → scale_gp_beta-0.1.0a31.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,819 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Union, Iterable
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._types import SequenceNotStr
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"ResponseCreateParams",
|
|
12
|
+
"InputUnionMember1",
|
|
13
|
+
"InputUnionMember1EasyInputMessageParam",
|
|
14
|
+
"InputUnionMember1EasyInputMessageParamContentUnionMember1",
|
|
15
|
+
"InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputTextParam",
|
|
16
|
+
"InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputImageParam",
|
|
17
|
+
"InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputFileParam",
|
|
18
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMessage",
|
|
19
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContent",
|
|
20
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputTextParam",
|
|
21
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputImageParam",
|
|
22
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputFileParam",
|
|
23
|
+
"InputUnionMember1ResponseOutputMessageParam",
|
|
24
|
+
"InputUnionMember1ResponseOutputMessageParamContent",
|
|
25
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParam",
|
|
26
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotation",
|
|
27
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationFileCitation",
|
|
28
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationURLCitation",
|
|
29
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationContainerFileCitation",
|
|
30
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationFilePath",
|
|
31
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamLogprob",
|
|
32
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamLogprobTopLogprob",
|
|
33
|
+
"InputUnionMember1ResponseOutputMessageParamContentResponseOutputRefusalParam",
|
|
34
|
+
"InputUnionMember1ResponseFileSearchToolCallParam",
|
|
35
|
+
"InputUnionMember1ResponseFileSearchToolCallParamResult",
|
|
36
|
+
"InputUnionMember1ResponseComputerToolCallParam",
|
|
37
|
+
"InputUnionMember1ResponseComputerToolCallParamAction",
|
|
38
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionClick",
|
|
39
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDoubleClick",
|
|
40
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDrag",
|
|
41
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDragPath",
|
|
42
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionKeypress",
|
|
43
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionMove",
|
|
44
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionScreenshot",
|
|
45
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionScroll",
|
|
46
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionType",
|
|
47
|
+
"InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionWait",
|
|
48
|
+
"InputUnionMember1ResponseComputerToolCallParamPendingSafetyCheck",
|
|
49
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutput",
|
|
50
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutputOutput",
|
|
51
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutputAcknowledgedSafetyCheck",
|
|
52
|
+
"InputUnionMember1ResponseFunctionWebSearchParam",
|
|
53
|
+
"InputUnionMember1ResponseFunctionWebSearchParamAction",
|
|
54
|
+
"InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionSearch",
|
|
55
|
+
"InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionOpenPage",
|
|
56
|
+
"InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionFind",
|
|
57
|
+
"InputUnionMember1ResponseFunctionToolCallParam",
|
|
58
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamFunctionCallOutput",
|
|
59
|
+
"InputUnionMember1ResponseReasoningItemParam",
|
|
60
|
+
"InputUnionMember1ResponseReasoningItemParamSummary",
|
|
61
|
+
"InputUnionMember1ResponseReasoningItemParamContent",
|
|
62
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamImageGenerationCall",
|
|
63
|
+
"InputUnionMember1ResponseCodeInterpreterToolCallParam",
|
|
64
|
+
"InputUnionMember1ResponseCodeInterpreterToolCallParamOutput",
|
|
65
|
+
"InputUnionMember1ResponseCodeInterpreterToolCallParamOutputOpenAITypesResponsesResponseCodeInterpreterToolCallParamOutputLogs",
|
|
66
|
+
"InputUnionMember1ResponseCodeInterpreterToolCallParamOutputOpenAITypesResponsesResponseCodeInterpreterToolCallParamOutputImage",
|
|
67
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCall",
|
|
68
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCallAction",
|
|
69
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCallOutput",
|
|
70
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMcpListTools",
|
|
71
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMcpListToolsTool",
|
|
72
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMcpApprovalRequest",
|
|
73
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMcpApprovalResponse",
|
|
74
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamMcpCall",
|
|
75
|
+
"InputUnionMember1ResponseCustomToolCallOutputParam",
|
|
76
|
+
"InputUnionMember1ResponseCustomToolCallParam",
|
|
77
|
+
"InputUnionMember1OpenAITypesResponsesResponseInputParamItemReference",
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class ResponseCreateParams(TypedDict, total=False):
|
|
82
|
+
input: Required[Union[str, Iterable[InputUnionMember1]]]
|
|
83
|
+
|
|
84
|
+
model: Required[str]
|
|
85
|
+
"""model specified as `model_vendor/model`, for example `openai/gpt-4o`"""
|
|
86
|
+
|
|
87
|
+
include: SequenceNotStr[str]
|
|
88
|
+
"""Which fields to include in the response"""
|
|
89
|
+
|
|
90
|
+
instructions: str
|
|
91
|
+
"""Instructions for the response generation"""
|
|
92
|
+
|
|
93
|
+
max_output_tokens: int
|
|
94
|
+
"""Maximum number of output tokens"""
|
|
95
|
+
|
|
96
|
+
metadata: Dict[str, object]
|
|
97
|
+
"""Metadata for the response"""
|
|
98
|
+
|
|
99
|
+
parallel_tool_calls: bool
|
|
100
|
+
"""Whether to enable parallel tool calls"""
|
|
101
|
+
|
|
102
|
+
previous_response_id: str
|
|
103
|
+
"""ID of the previous response for chaining"""
|
|
104
|
+
|
|
105
|
+
reasoning: Dict[str, object]
|
|
106
|
+
"""Reasoning configuration for the response"""
|
|
107
|
+
|
|
108
|
+
store: bool
|
|
109
|
+
"""Whether to store the response"""
|
|
110
|
+
|
|
111
|
+
stream: bool
|
|
112
|
+
"""Whether to stream the response"""
|
|
113
|
+
|
|
114
|
+
temperature: float
|
|
115
|
+
"""Sampling temperature for randomness control"""
|
|
116
|
+
|
|
117
|
+
text: Dict[str, object]
|
|
118
|
+
"""Text configuration parameters"""
|
|
119
|
+
|
|
120
|
+
tool_choice: Union[str, Dict[str, object]]
|
|
121
|
+
"""Tool choice configuration"""
|
|
122
|
+
|
|
123
|
+
tools: Iterable[Dict[str, object]]
|
|
124
|
+
"""Tools available for the response"""
|
|
125
|
+
|
|
126
|
+
top_p: float
|
|
127
|
+
"""Top-p sampling parameter"""
|
|
128
|
+
|
|
129
|
+
truncation: Literal["auto", "disabled"]
|
|
130
|
+
"""Truncation configuration"""
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
class InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputTextParam(TypedDict, total=False):
|
|
134
|
+
text: Required[str]
|
|
135
|
+
|
|
136
|
+
type: Required[Literal["input_text"]]
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputImageParam(TypedDict, total=False):
|
|
140
|
+
detail: Required[Literal["low", "high", "auto"]]
|
|
141
|
+
|
|
142
|
+
type: Required[Literal["input_image"]]
|
|
143
|
+
|
|
144
|
+
file_id: str
|
|
145
|
+
|
|
146
|
+
image_url: str
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputFileParam(TypedDict, total=False):
|
|
150
|
+
type: Required[Literal["input_file"]]
|
|
151
|
+
|
|
152
|
+
file_data: str
|
|
153
|
+
|
|
154
|
+
file_id: str
|
|
155
|
+
|
|
156
|
+
file_url: str
|
|
157
|
+
|
|
158
|
+
filename: str
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
InputUnionMember1EasyInputMessageParamContentUnionMember1: TypeAlias = Union[
|
|
162
|
+
InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputTextParam,
|
|
163
|
+
InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputImageParam,
|
|
164
|
+
InputUnionMember1EasyInputMessageParamContentUnionMember1ResponseInputFileParam,
|
|
165
|
+
]
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class InputUnionMember1EasyInputMessageParam(TypedDict, total=False):
|
|
169
|
+
content: Required[Union[str, Iterable[InputUnionMember1EasyInputMessageParamContentUnionMember1]]]
|
|
170
|
+
|
|
171
|
+
role: Required[Literal["user", "assistant", "system", "developer"]]
|
|
172
|
+
|
|
173
|
+
type: Literal["message"]
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputTextParam(
|
|
177
|
+
TypedDict, total=False
|
|
178
|
+
):
|
|
179
|
+
text: Required[str]
|
|
180
|
+
|
|
181
|
+
type: Required[Literal["input_text"]]
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputImageParam(
|
|
185
|
+
TypedDict, total=False
|
|
186
|
+
):
|
|
187
|
+
detail: Required[Literal["low", "high", "auto"]]
|
|
188
|
+
|
|
189
|
+
type: Required[Literal["input_image"]]
|
|
190
|
+
|
|
191
|
+
file_id: str
|
|
192
|
+
|
|
193
|
+
image_url: str
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputFileParam(
|
|
197
|
+
TypedDict, total=False
|
|
198
|
+
):
|
|
199
|
+
type: Required[Literal["input_file"]]
|
|
200
|
+
|
|
201
|
+
file_data: str
|
|
202
|
+
|
|
203
|
+
file_id: str
|
|
204
|
+
|
|
205
|
+
file_url: str
|
|
206
|
+
|
|
207
|
+
filename: str
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContent: TypeAlias = Union[
|
|
211
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputTextParam,
|
|
212
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputImageParam,
|
|
213
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContentResponseInputFileParam,
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMessage(TypedDict, total=False):
|
|
218
|
+
content: Required[Iterable[InputUnionMember1OpenAITypesResponsesResponseInputParamMessageContent]]
|
|
219
|
+
|
|
220
|
+
role: Required[Literal["user", "system", "developer"]]
|
|
221
|
+
|
|
222
|
+
status: Literal["in_progress", "completed", "incomplete"]
|
|
223
|
+
|
|
224
|
+
type: Literal["message"]
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationFileCitation(
|
|
228
|
+
TypedDict, total=False
|
|
229
|
+
):
|
|
230
|
+
file_id: Required[str]
|
|
231
|
+
|
|
232
|
+
filename: Required[str]
|
|
233
|
+
|
|
234
|
+
index: Required[int]
|
|
235
|
+
|
|
236
|
+
type: Required[Literal["file_citation"]]
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationURLCitation(
|
|
240
|
+
TypedDict, total=False
|
|
241
|
+
):
|
|
242
|
+
end_index: Required[int]
|
|
243
|
+
|
|
244
|
+
start_index: Required[int]
|
|
245
|
+
|
|
246
|
+
title: Required[str]
|
|
247
|
+
|
|
248
|
+
type: Required[Literal["url_citation"]]
|
|
249
|
+
|
|
250
|
+
url: Required[str]
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationContainerFileCitation(
|
|
254
|
+
TypedDict, total=False
|
|
255
|
+
):
|
|
256
|
+
container_id: Required[str]
|
|
257
|
+
|
|
258
|
+
end_index: Required[int]
|
|
259
|
+
|
|
260
|
+
file_id: Required[str]
|
|
261
|
+
|
|
262
|
+
filename: Required[str]
|
|
263
|
+
|
|
264
|
+
start_index: Required[int]
|
|
265
|
+
|
|
266
|
+
type: Required[Literal["container_file_citation"]]
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationFilePath(
|
|
270
|
+
TypedDict, total=False
|
|
271
|
+
):
|
|
272
|
+
file_id: Required[str]
|
|
273
|
+
|
|
274
|
+
index: Required[int]
|
|
275
|
+
|
|
276
|
+
type: Required[Literal["file_path"]]
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotation: TypeAlias = Union[
|
|
280
|
+
InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationFileCitation,
|
|
281
|
+
InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationURLCitation,
|
|
282
|
+
InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationContainerFileCitation,
|
|
283
|
+
InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotationOpenAITypesResponsesResponseOutputTextParamAnnotationFilePath,
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamLogprobTopLogprob(
|
|
288
|
+
TypedDict, total=False
|
|
289
|
+
):
|
|
290
|
+
token: Required[str]
|
|
291
|
+
|
|
292
|
+
bytes: Required[Iterable[int]]
|
|
293
|
+
|
|
294
|
+
logprob: Required[float]
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamLogprob(TypedDict, total=False):
|
|
298
|
+
token: Required[str]
|
|
299
|
+
|
|
300
|
+
bytes: Required[Iterable[int]]
|
|
301
|
+
|
|
302
|
+
logprob: Required[float]
|
|
303
|
+
|
|
304
|
+
top_logprobs: Required[
|
|
305
|
+
Iterable[InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamLogprobTopLogprob]
|
|
306
|
+
]
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParam(TypedDict, total=False):
|
|
310
|
+
annotations: Required[Iterable[InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamAnnotation]]
|
|
311
|
+
|
|
312
|
+
text: Required[str]
|
|
313
|
+
|
|
314
|
+
type: Required[Literal["output_text"]]
|
|
315
|
+
|
|
316
|
+
logprobs: Iterable[InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParamLogprob]
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class InputUnionMember1ResponseOutputMessageParamContentResponseOutputRefusalParam(TypedDict, total=False):
|
|
320
|
+
refusal: Required[str]
|
|
321
|
+
|
|
322
|
+
type: Required[Literal["refusal"]]
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
InputUnionMember1ResponseOutputMessageParamContent: TypeAlias = Union[
|
|
326
|
+
InputUnionMember1ResponseOutputMessageParamContentResponseOutputTextParam,
|
|
327
|
+
InputUnionMember1ResponseOutputMessageParamContentResponseOutputRefusalParam,
|
|
328
|
+
]
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
class InputUnionMember1ResponseOutputMessageParam(TypedDict, total=False):
|
|
332
|
+
id: Required[str]
|
|
333
|
+
|
|
334
|
+
content: Required[Iterable[InputUnionMember1ResponseOutputMessageParamContent]]
|
|
335
|
+
|
|
336
|
+
role: Required[Literal["assistant"]]
|
|
337
|
+
|
|
338
|
+
status: Required[Literal["in_progress", "completed", "incomplete"]]
|
|
339
|
+
|
|
340
|
+
type: Required[Literal["message"]]
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
class InputUnionMember1ResponseFileSearchToolCallParamResult(TypedDict, total=False):
|
|
344
|
+
attributes: Dict[str, Union[str, float, bool]]
|
|
345
|
+
|
|
346
|
+
file_id: str
|
|
347
|
+
|
|
348
|
+
filename: str
|
|
349
|
+
|
|
350
|
+
score: float
|
|
351
|
+
|
|
352
|
+
text: str
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
class InputUnionMember1ResponseFileSearchToolCallParam(TypedDict, total=False):
|
|
356
|
+
id: Required[str]
|
|
357
|
+
|
|
358
|
+
queries: Required[SequenceNotStr[str]]
|
|
359
|
+
|
|
360
|
+
status: Required[Literal["in_progress", "searching", "completed", "incomplete", "failed"]]
|
|
361
|
+
|
|
362
|
+
type: Required[Literal["file_search_call"]]
|
|
363
|
+
|
|
364
|
+
results: Iterable[InputUnionMember1ResponseFileSearchToolCallParamResult]
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionClick(
|
|
368
|
+
TypedDict, total=False
|
|
369
|
+
):
|
|
370
|
+
button: Required[Literal["left", "right", "wheel", "back", "forward"]]
|
|
371
|
+
|
|
372
|
+
type: Required[Literal["click"]]
|
|
373
|
+
|
|
374
|
+
x: Required[int]
|
|
375
|
+
|
|
376
|
+
y: Required[int]
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDoubleClick(
|
|
380
|
+
TypedDict, total=False
|
|
381
|
+
):
|
|
382
|
+
type: Required[Literal["double_click"]]
|
|
383
|
+
|
|
384
|
+
x: Required[int]
|
|
385
|
+
|
|
386
|
+
y: Required[int]
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDragPath(
|
|
390
|
+
TypedDict, total=False
|
|
391
|
+
):
|
|
392
|
+
x: Required[int]
|
|
393
|
+
|
|
394
|
+
y: Required[int]
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDrag(
|
|
398
|
+
TypedDict, total=False
|
|
399
|
+
):
|
|
400
|
+
path: Required[
|
|
401
|
+
Iterable[
|
|
402
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDragPath
|
|
403
|
+
]
|
|
404
|
+
]
|
|
405
|
+
|
|
406
|
+
type: Required[Literal["drag"]]
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionKeypress(
|
|
410
|
+
TypedDict, total=False
|
|
411
|
+
):
|
|
412
|
+
keys: Required[SequenceNotStr[str]]
|
|
413
|
+
|
|
414
|
+
type: Required[Literal["keypress"]]
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionMove(
|
|
418
|
+
TypedDict, total=False
|
|
419
|
+
):
|
|
420
|
+
type: Required[Literal["move"]]
|
|
421
|
+
|
|
422
|
+
x: Required[int]
|
|
423
|
+
|
|
424
|
+
y: Required[int]
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionScreenshot(
|
|
428
|
+
TypedDict, total=False
|
|
429
|
+
):
|
|
430
|
+
type: Required[Literal["screenshot"]]
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionScroll(
|
|
434
|
+
TypedDict, total=False
|
|
435
|
+
):
|
|
436
|
+
scroll_x: Required[int]
|
|
437
|
+
|
|
438
|
+
scroll_y: Required[int]
|
|
439
|
+
|
|
440
|
+
type: Required[Literal["scroll"]]
|
|
441
|
+
|
|
442
|
+
x: Required[int]
|
|
443
|
+
|
|
444
|
+
y: Required[int]
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionType(
|
|
448
|
+
TypedDict, total=False
|
|
449
|
+
):
|
|
450
|
+
text: Required[str]
|
|
451
|
+
|
|
452
|
+
type: Required[Literal["type"]]
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
class InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionWait(
|
|
456
|
+
TypedDict, total=False
|
|
457
|
+
):
|
|
458
|
+
type: Required[Literal["wait"]]
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
InputUnionMember1ResponseComputerToolCallParamAction: TypeAlias = Union[
|
|
462
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionClick,
|
|
463
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDoubleClick,
|
|
464
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionDrag,
|
|
465
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionKeypress,
|
|
466
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionMove,
|
|
467
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionScreenshot,
|
|
468
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionScroll,
|
|
469
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionType,
|
|
470
|
+
InputUnionMember1ResponseComputerToolCallParamActionOpenAITypesResponsesResponseComputerToolCallParamActionWait,
|
|
471
|
+
]
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
class InputUnionMember1ResponseComputerToolCallParamPendingSafetyCheck(TypedDict, total=False):
|
|
475
|
+
id: Required[str]
|
|
476
|
+
|
|
477
|
+
code: Required[str]
|
|
478
|
+
|
|
479
|
+
message: Required[str]
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
class InputUnionMember1ResponseComputerToolCallParam(TypedDict, total=False):
|
|
483
|
+
id: Required[str]
|
|
484
|
+
|
|
485
|
+
action: Required[InputUnionMember1ResponseComputerToolCallParamAction]
|
|
486
|
+
|
|
487
|
+
call_id: Required[str]
|
|
488
|
+
|
|
489
|
+
pending_safety_checks: Required[Iterable[InputUnionMember1ResponseComputerToolCallParamPendingSafetyCheck]]
|
|
490
|
+
|
|
491
|
+
status: Required[Literal["in_progress", "completed", "incomplete"]]
|
|
492
|
+
|
|
493
|
+
type: Required[Literal["computer_call"]]
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutputOutput(TypedDict, total=False):
|
|
497
|
+
type: Required[Literal["computer_screenshot"]]
|
|
498
|
+
|
|
499
|
+
file_id: str
|
|
500
|
+
|
|
501
|
+
image_url: str
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutputAcknowledgedSafetyCheck(
|
|
505
|
+
TypedDict, total=False
|
|
506
|
+
):
|
|
507
|
+
id: Required[str]
|
|
508
|
+
|
|
509
|
+
code: str
|
|
510
|
+
|
|
511
|
+
message: str
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutput(TypedDict, total=False):
|
|
515
|
+
call_id: Required[str]
|
|
516
|
+
|
|
517
|
+
output: Required[InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutputOutput]
|
|
518
|
+
|
|
519
|
+
type: Required[Literal["computer_call_output"]]
|
|
520
|
+
|
|
521
|
+
id: str
|
|
522
|
+
|
|
523
|
+
acknowledged_safety_checks: Iterable[
|
|
524
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutputAcknowledgedSafetyCheck
|
|
525
|
+
]
|
|
526
|
+
|
|
527
|
+
status: Literal["in_progress", "completed", "incomplete"]
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
class InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionSearch(
|
|
531
|
+
TypedDict, total=False
|
|
532
|
+
):
|
|
533
|
+
query: Required[str]
|
|
534
|
+
|
|
535
|
+
type: Required[Literal["search"]]
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
class InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionOpenPage(
|
|
539
|
+
TypedDict, total=False
|
|
540
|
+
):
|
|
541
|
+
type: Required[Literal["open_page"]]
|
|
542
|
+
|
|
543
|
+
url: Required[str]
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
class InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionFind(
|
|
547
|
+
TypedDict, total=False
|
|
548
|
+
):
|
|
549
|
+
pattern: Required[str]
|
|
550
|
+
|
|
551
|
+
type: Required[Literal["find"]]
|
|
552
|
+
|
|
553
|
+
url: Required[str]
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
InputUnionMember1ResponseFunctionWebSearchParamAction: TypeAlias = Union[
|
|
557
|
+
InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionSearch,
|
|
558
|
+
InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionOpenPage,
|
|
559
|
+
InputUnionMember1ResponseFunctionWebSearchParamActionOpenAITypesResponsesResponseFunctionWebSearchParamActionFind,
|
|
560
|
+
]
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
class InputUnionMember1ResponseFunctionWebSearchParam(TypedDict, total=False):
|
|
564
|
+
id: Required[str]
|
|
565
|
+
|
|
566
|
+
action: Required[InputUnionMember1ResponseFunctionWebSearchParamAction]
|
|
567
|
+
|
|
568
|
+
status: Required[Literal["in_progress", "searching", "completed", "failed"]]
|
|
569
|
+
|
|
570
|
+
type: Required[Literal["web_search_call"]]
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
class InputUnionMember1ResponseFunctionToolCallParam(TypedDict, total=False):
|
|
574
|
+
arguments: Required[str]
|
|
575
|
+
|
|
576
|
+
call_id: Required[str]
|
|
577
|
+
|
|
578
|
+
name: Required[str]
|
|
579
|
+
|
|
580
|
+
type: Required[Literal["function_call"]]
|
|
581
|
+
|
|
582
|
+
id: str
|
|
583
|
+
|
|
584
|
+
status: Literal["in_progress", "completed", "incomplete"]
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamFunctionCallOutput(TypedDict, total=False):
|
|
588
|
+
call_id: Required[str]
|
|
589
|
+
|
|
590
|
+
output: Required[str]
|
|
591
|
+
|
|
592
|
+
type: Required[Literal["function_call_output"]]
|
|
593
|
+
|
|
594
|
+
id: str
|
|
595
|
+
|
|
596
|
+
status: Literal["in_progress", "completed", "incomplete"]
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
class InputUnionMember1ResponseReasoningItemParamSummary(TypedDict, total=False):
|
|
600
|
+
text: Required[str]
|
|
601
|
+
|
|
602
|
+
type: Required[Literal["summary_text"]]
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
class InputUnionMember1ResponseReasoningItemParamContent(TypedDict, total=False):
|
|
606
|
+
text: Required[str]
|
|
607
|
+
|
|
608
|
+
type: Required[Literal["reasoning_text"]]
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
class InputUnionMember1ResponseReasoningItemParam(TypedDict, total=False):
|
|
612
|
+
id: Required[str]
|
|
613
|
+
|
|
614
|
+
summary: Required[Iterable[InputUnionMember1ResponseReasoningItemParamSummary]]
|
|
615
|
+
|
|
616
|
+
type: Required[Literal["reasoning"]]
|
|
617
|
+
|
|
618
|
+
content: Iterable[InputUnionMember1ResponseReasoningItemParamContent]
|
|
619
|
+
|
|
620
|
+
encrypted_content: str
|
|
621
|
+
|
|
622
|
+
status: Literal["in_progress", "completed", "incomplete"]
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamImageGenerationCall(TypedDict, total=False):
|
|
626
|
+
id: Required[str]
|
|
627
|
+
|
|
628
|
+
result: Required[str]
|
|
629
|
+
|
|
630
|
+
status: Required[Literal["in_progress", "completed", "generating", "failed"]]
|
|
631
|
+
|
|
632
|
+
type: Required[Literal["image_generation_call"]]
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
class InputUnionMember1ResponseCodeInterpreterToolCallParamOutputOpenAITypesResponsesResponseCodeInterpreterToolCallParamOutputLogs(
|
|
636
|
+
TypedDict, total=False
|
|
637
|
+
):
|
|
638
|
+
logs: Required[str]
|
|
639
|
+
|
|
640
|
+
type: Required[Literal["logs"]]
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
class InputUnionMember1ResponseCodeInterpreterToolCallParamOutputOpenAITypesResponsesResponseCodeInterpreterToolCallParamOutputImage(
|
|
644
|
+
TypedDict, total=False
|
|
645
|
+
):
|
|
646
|
+
type: Required[Literal["image"]]
|
|
647
|
+
|
|
648
|
+
url: Required[str]
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
InputUnionMember1ResponseCodeInterpreterToolCallParamOutput: TypeAlias = Union[
|
|
652
|
+
InputUnionMember1ResponseCodeInterpreterToolCallParamOutputOpenAITypesResponsesResponseCodeInterpreterToolCallParamOutputLogs,
|
|
653
|
+
InputUnionMember1ResponseCodeInterpreterToolCallParamOutputOpenAITypesResponsesResponseCodeInterpreterToolCallParamOutputImage,
|
|
654
|
+
]
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
class InputUnionMember1ResponseCodeInterpreterToolCallParam(TypedDict, total=False):
|
|
658
|
+
id: Required[str]
|
|
659
|
+
|
|
660
|
+
code: Required[str]
|
|
661
|
+
|
|
662
|
+
container_id: Required[str]
|
|
663
|
+
|
|
664
|
+
outputs: Required[Iterable[InputUnionMember1ResponseCodeInterpreterToolCallParamOutput]]
|
|
665
|
+
|
|
666
|
+
status: Required[Literal["in_progress", "completed", "incomplete", "interpreting", "failed"]]
|
|
667
|
+
|
|
668
|
+
type: Required[Literal["code_interpreter_call"]]
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCallAction(TypedDict, total=False):
|
|
672
|
+
command: Required[SequenceNotStr[str]]
|
|
673
|
+
|
|
674
|
+
env: Required[Dict[str, str]]
|
|
675
|
+
|
|
676
|
+
type: Required[Literal["exec"]]
|
|
677
|
+
|
|
678
|
+
timeout_ms: int
|
|
679
|
+
|
|
680
|
+
user: str
|
|
681
|
+
|
|
682
|
+
working_directory: str
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCall(TypedDict, total=False):
|
|
686
|
+
id: Required[str]
|
|
687
|
+
|
|
688
|
+
action: Required[InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCallAction]
|
|
689
|
+
|
|
690
|
+
call_id: Required[str]
|
|
691
|
+
|
|
692
|
+
status: Required[Literal["in_progress", "completed", "incomplete"]]
|
|
693
|
+
|
|
694
|
+
type: Required[Literal["local_shell_call"]]
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCallOutput(TypedDict, total=False):
|
|
698
|
+
id: Required[str]
|
|
699
|
+
|
|
700
|
+
output: Required[str]
|
|
701
|
+
|
|
702
|
+
type: Required[Literal["local_shell_call_output"]]
|
|
703
|
+
|
|
704
|
+
status: Literal["in_progress", "completed", "incomplete"]
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMcpListToolsTool(TypedDict, total=False):
|
|
708
|
+
input_schema: Required[object]
|
|
709
|
+
|
|
710
|
+
name: Required[str]
|
|
711
|
+
|
|
712
|
+
annotations: object
|
|
713
|
+
|
|
714
|
+
description: str
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMcpListTools(TypedDict, total=False):
|
|
718
|
+
id: Required[str]
|
|
719
|
+
|
|
720
|
+
server_label: Required[str]
|
|
721
|
+
|
|
722
|
+
tools: Required[Iterable[InputUnionMember1OpenAITypesResponsesResponseInputParamMcpListToolsTool]]
|
|
723
|
+
|
|
724
|
+
type: Required[Literal["mcp_list_tools"]]
|
|
725
|
+
|
|
726
|
+
error: str
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMcpApprovalRequest(TypedDict, total=False):
|
|
730
|
+
id: Required[str]
|
|
731
|
+
|
|
732
|
+
arguments: Required[str]
|
|
733
|
+
|
|
734
|
+
name: Required[str]
|
|
735
|
+
|
|
736
|
+
server_label: Required[str]
|
|
737
|
+
|
|
738
|
+
type: Required[Literal["mcp_approval_request"]]
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMcpApprovalResponse(TypedDict, total=False):
|
|
742
|
+
approval_request_id: Required[str]
|
|
743
|
+
|
|
744
|
+
approve: Required[bool]
|
|
745
|
+
|
|
746
|
+
type: Required[Literal["mcp_approval_response"]]
|
|
747
|
+
|
|
748
|
+
id: str
|
|
749
|
+
|
|
750
|
+
reason: str
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamMcpCall(TypedDict, total=False):
|
|
754
|
+
id: Required[str]
|
|
755
|
+
|
|
756
|
+
arguments: Required[str]
|
|
757
|
+
|
|
758
|
+
name: Required[str]
|
|
759
|
+
|
|
760
|
+
server_label: Required[str]
|
|
761
|
+
|
|
762
|
+
type: Required[Literal["mcp_call"]]
|
|
763
|
+
|
|
764
|
+
error: str
|
|
765
|
+
|
|
766
|
+
output: str
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
class InputUnionMember1ResponseCustomToolCallOutputParam(TypedDict, total=False):
|
|
770
|
+
call_id: Required[str]
|
|
771
|
+
|
|
772
|
+
output: Required[str]
|
|
773
|
+
|
|
774
|
+
type: Required[Literal["custom_tool_call_output"]]
|
|
775
|
+
|
|
776
|
+
id: str
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
class InputUnionMember1ResponseCustomToolCallParam(TypedDict, total=False):
|
|
780
|
+
call_id: Required[str]
|
|
781
|
+
|
|
782
|
+
input: Required[str]
|
|
783
|
+
|
|
784
|
+
name: Required[str]
|
|
785
|
+
|
|
786
|
+
type: Required[Literal["custom_tool_call"]]
|
|
787
|
+
|
|
788
|
+
id: str
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
class InputUnionMember1OpenAITypesResponsesResponseInputParamItemReference(TypedDict, total=False):
|
|
792
|
+
id: Required[str]
|
|
793
|
+
|
|
794
|
+
type: Literal["item_reference"]
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
InputUnionMember1: TypeAlias = Union[
|
|
798
|
+
InputUnionMember1EasyInputMessageParam,
|
|
799
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMessage,
|
|
800
|
+
InputUnionMember1ResponseOutputMessageParam,
|
|
801
|
+
InputUnionMember1ResponseFileSearchToolCallParam,
|
|
802
|
+
InputUnionMember1ResponseComputerToolCallParam,
|
|
803
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamComputerCallOutput,
|
|
804
|
+
InputUnionMember1ResponseFunctionWebSearchParam,
|
|
805
|
+
InputUnionMember1ResponseFunctionToolCallParam,
|
|
806
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamFunctionCallOutput,
|
|
807
|
+
InputUnionMember1ResponseReasoningItemParam,
|
|
808
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamImageGenerationCall,
|
|
809
|
+
InputUnionMember1ResponseCodeInterpreterToolCallParam,
|
|
810
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCall,
|
|
811
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamLocalShellCallOutput,
|
|
812
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMcpListTools,
|
|
813
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMcpApprovalRequest,
|
|
814
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMcpApprovalResponse,
|
|
815
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamMcpCall,
|
|
816
|
+
InputUnionMember1ResponseCustomToolCallOutputParam,
|
|
817
|
+
InputUnionMember1ResponseCustomToolCallParam,
|
|
818
|
+
InputUnionMember1OpenAITypesResponsesResponseInputParamItemReference,
|
|
819
|
+
]
|