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