openai 4.28.4 → 4.29.0

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 (152) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +7 -10
  3. package/index.d.mts +1 -0
  4. package/index.d.ts +1 -0
  5. package/index.d.ts.map +1 -1
  6. package/index.js.map +1 -1
  7. package/index.mjs.map +1 -1
  8. package/lib/AbstractAssistantStreamRunner.d.ts +74 -0
  9. package/lib/AbstractAssistantStreamRunner.d.ts.map +1 -0
  10. package/lib/AbstractAssistantStreamRunner.js +246 -0
  11. package/lib/AbstractAssistantStreamRunner.js.map +1 -0
  12. package/lib/AbstractAssistantStreamRunner.mjs +242 -0
  13. package/lib/AbstractAssistantStreamRunner.mjs.map +1 -0
  14. package/lib/AssistantStream.d.ts +56 -0
  15. package/lib/AssistantStream.d.ts.map +1 -0
  16. package/lib/AssistantStream.js +526 -0
  17. package/lib/AssistantStream.js.map +1 -0
  18. package/lib/AssistantStream.mjs +499 -0
  19. package/lib/AssistantStream.mjs.map +1 -0
  20. package/lib/ChatCompletionRunFunctions.test.js +35 -0
  21. package/lib/ChatCompletionRunFunctions.test.js.map +1 -1
  22. package/lib/ChatCompletionRunFunctions.test.mjs +35 -0
  23. package/lib/ChatCompletionRunFunctions.test.mjs.map +1 -1
  24. package/lib/ChatCompletionStream.d.ts.map +1 -1
  25. package/lib/ChatCompletionStream.js +21 -3
  26. package/lib/ChatCompletionStream.js.map +1 -1
  27. package/lib/ChatCompletionStream.mjs +21 -3
  28. package/lib/ChatCompletionStream.mjs.map +1 -1
  29. package/package.json +1 -1
  30. package/resources/audio/speech.d.ts +3 -6
  31. package/resources/audio/speech.d.ts.map +1 -1
  32. package/resources/audio/speech.js.map +1 -1
  33. package/resources/audio/speech.mjs.map +1 -1
  34. package/resources/audio/transcriptions.d.ts +14 -4
  35. package/resources/audio/transcriptions.d.ts.map +1 -1
  36. package/resources/audio/transcriptions.js.map +1 -1
  37. package/resources/audio/transcriptions.mjs.map +1 -1
  38. package/resources/audio/translations.d.ts +2 -1
  39. package/resources/audio/translations.d.ts.map +1 -1
  40. package/resources/audio/translations.js.map +1 -1
  41. package/resources/audio/translations.mjs.map +1 -1
  42. package/resources/beta/assistants/assistants.d.ts +629 -60
  43. package/resources/beta/assistants/assistants.d.ts.map +1 -1
  44. package/resources/beta/assistants/assistants.js.map +1 -1
  45. package/resources/beta/assistants/assistants.mjs.map +1 -1
  46. package/resources/beta/assistants/index.d.ts +1 -1
  47. package/resources/beta/assistants/index.d.ts.map +1 -1
  48. package/resources/beta/assistants/index.js.map +1 -1
  49. package/resources/beta/assistants/index.mjs.map +1 -1
  50. package/resources/beta/beta.d.ts +12 -0
  51. package/resources/beta/beta.d.ts.map +1 -1
  52. package/resources/beta/beta.js.map +1 -1
  53. package/resources/beta/beta.mjs.map +1 -1
  54. package/resources/beta/index.d.ts +2 -2
  55. package/resources/beta/index.d.ts.map +1 -1
  56. package/resources/beta/index.js.map +1 -1
  57. package/resources/beta/index.mjs.map +1 -1
  58. package/resources/beta/threads/index.d.ts +3 -3
  59. package/resources/beta/threads/index.d.ts.map +1 -1
  60. package/resources/beta/threads/index.js +2 -2
  61. package/resources/beta/threads/index.js.map +1 -1
  62. package/resources/beta/threads/index.mjs +1 -1
  63. package/resources/beta/threads/index.mjs.map +1 -1
  64. package/resources/beta/threads/messages/index.d.ts +1 -1
  65. package/resources/beta/threads/messages/index.d.ts.map +1 -1
  66. package/resources/beta/threads/messages/index.js +2 -2
  67. package/resources/beta/threads/messages/index.js.map +1 -1
  68. package/resources/beta/threads/messages/index.mjs +1 -1
  69. package/resources/beta/threads/messages/index.mjs.map +1 -1
  70. package/resources/beta/threads/messages/messages.d.ts +289 -86
  71. package/resources/beta/threads/messages/messages.d.ts.map +1 -1
  72. package/resources/beta/threads/messages/messages.js +5 -5
  73. package/resources/beta/threads/messages/messages.js.map +1 -1
  74. package/resources/beta/threads/messages/messages.mjs +3 -3
  75. package/resources/beta/threads/messages/messages.mjs.map +1 -1
  76. package/resources/beta/threads/runs/index.d.ts +2 -2
  77. package/resources/beta/threads/runs/index.d.ts.map +1 -1
  78. package/resources/beta/threads/runs/index.js.map +1 -1
  79. package/resources/beta/threads/runs/index.mjs.map +1 -1
  80. package/resources/beta/threads/runs/runs.d.ts +153 -49
  81. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  82. package/resources/beta/threads/runs/runs.js +14 -7
  83. package/resources/beta/threads/runs/runs.js.map +1 -1
  84. package/resources/beta/threads/runs/runs.mjs +14 -7
  85. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  86. package/resources/beta/threads/runs/steps.d.ts +219 -5
  87. package/resources/beta/threads/runs/steps.d.ts.map +1 -1
  88. package/resources/beta/threads/runs/steps.js.map +1 -1
  89. package/resources/beta/threads/runs/steps.mjs.map +1 -1
  90. package/resources/beta/threads/threads.d.ts +144 -22
  91. package/resources/beta/threads/threads.d.ts.map +1 -1
  92. package/resources/beta/threads/threads.js +9 -4
  93. package/resources/beta/threads/threads.js.map +1 -1
  94. package/resources/beta/threads/threads.mjs +9 -4
  95. package/resources/beta/threads/threads.mjs.map +1 -1
  96. package/resources/chat/completions.d.ts +28 -18
  97. package/resources/chat/completions.d.ts.map +1 -1
  98. package/resources/chat/completions.js.map +1 -1
  99. package/resources/chat/completions.mjs.map +1 -1
  100. package/resources/completions.d.ts +2 -0
  101. package/resources/completions.d.ts.map +1 -1
  102. package/resources/completions.js.map +1 -1
  103. package/resources/completions.mjs.map +1 -1
  104. package/resources/files.d.ts +4 -4
  105. package/resources/images.d.ts +6 -3
  106. package/resources/images.d.ts.map +1 -1
  107. package/resources/images.js.map +1 -1
  108. package/resources/images.mjs.map +1 -1
  109. package/resources/moderations.d.ts +3 -5
  110. package/resources/moderations.d.ts.map +1 -1
  111. package/resources/moderations.js +1 -1
  112. package/resources/moderations.js.map +1 -1
  113. package/resources/moderations.mjs +1 -1
  114. package/resources/moderations.mjs.map +1 -1
  115. package/resources/shared.d.ts +6 -0
  116. package/resources/shared.d.ts.map +1 -1
  117. package/src/index.ts +1 -0
  118. package/src/lib/AbstractAssistantStreamRunner.ts +340 -0
  119. package/src/lib/AssistantStream.ts +698 -0
  120. package/src/lib/ChatCompletionRunFunctions.test.ts +52 -1
  121. package/src/lib/ChatCompletionStream.ts +29 -6
  122. package/src/resources/audio/speech.ts +3 -6
  123. package/src/resources/audio/transcriptions.ts +14 -4
  124. package/src/resources/audio/translations.ts +2 -1
  125. package/src/resources/beta/assistants/assistants.ts +768 -76
  126. package/src/resources/beta/assistants/index.ts +9 -0
  127. package/src/resources/beta/beta.ts +12 -0
  128. package/src/resources/beta/index.ts +12 -0
  129. package/src/resources/beta/threads/index.ts +30 -5
  130. package/src/resources/beta/threads/messages/index.ts +21 -5
  131. package/src/resources/beta/threads/messages/messages.ts +332 -94
  132. package/src/resources/beta/threads/runs/index.ts +18 -1
  133. package/src/resources/beta/threads/runs/runs.ts +225 -60
  134. package/src/resources/beta/threads/runs/steps.ts +254 -5
  135. package/src/resources/beta/threads/threads.ts +182 -25
  136. package/src/resources/chat/completions.ts +28 -18
  137. package/src/resources/completions.ts +2 -0
  138. package/src/resources/files.ts +4 -4
  139. package/src/resources/images.ts +6 -3
  140. package/src/resources/moderations.ts +3 -5
  141. package/src/resources/shared.ts +10 -0
  142. package/src/streaming.ts +31 -0
  143. package/src/version.ts +1 -1
  144. package/streaming.d.ts +2 -0
  145. package/streaming.d.ts.map +1 -1
  146. package/streaming.js +32 -1
  147. package/streaming.js.map +1 -1
  148. package/streaming.mjs +30 -0
  149. package/streaming.mjs.map +1 -1
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. package/version.mjs +1 -1
@@ -1,12 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
3
  import * as Core from "../../../../core";
4
+ import { APIPromise } from "../../../../core";
4
5
  import { APIResource } from "../../../../resource";
5
6
  import { isRequestOptions } from "../../../../core";
7
+ import { AssistantStream, RunCreateParamsBaseStream } from "../../../../lib/AssistantStream";
8
+ import { RunSubmitToolOutputsParamsStream } from "../../../../lib/AssistantStream";
6
9
  import * as RunsAPI from "./runs";
7
- import * as Shared from "../../../shared";
10
+ import * as AssistantsAPI from "../../assistants/assistants";
8
11
  import * as StepsAPI from "./steps";
9
12
  import { CursorPage, type CursorPageParams } from "../../../../pagination";
13
+ import { Stream } from "../../../../streaming";
10
14
 
11
15
  export class Runs extends APIResource {
12
16
  steps: StepsAPI.Steps = new StepsAPI.Steps(this._client);
@@ -14,12 +18,28 @@ export class Runs extends APIResource {
14
18
  /**
15
19
  * Create a run.
16
20
  */
17
- create(threadId: string, body: RunCreateParams, options?: Core.RequestOptions): Core.APIPromise<Run> {
21
+ create(threadId: string, body: RunCreateParamsNonStreaming, options?: Core.RequestOptions): APIPromise<Run>;
22
+ create(
23
+ threadId: string,
24
+ body: RunCreateParamsStreaming,
25
+ options?: Core.RequestOptions,
26
+ ): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
27
+ create(
28
+ threadId: string,
29
+ body: RunCreateParamsBase,
30
+ options?: Core.RequestOptions,
31
+ ): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | Run>;
32
+ create(
33
+ threadId: string,
34
+ body: RunCreateParams,
35
+ options?: Core.RequestOptions,
36
+ ): APIPromise<Run> | APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>> {
18
37
  return this._client.post(`/threads/${threadId}/runs`, {
19
38
  body,
20
39
  ...options,
21
40
  headers: { 'OpenAI-Beta': 'assistants=v1', ...options?.headers },
22
- });
41
+ stream: body.stream ?? false,
42
+ }) as APIPromise<Run> | APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
23
43
  }
24
44
 
25
45
  /**
@@ -82,23 +102,72 @@ export class Runs extends APIResource {
82
102
  });
83
103
  }
84
104
 
105
+ /**
106
+ * Create a Run stream
107
+ */
108
+ createAndStream(
109
+ threadId: string,
110
+ body: RunCreateParamsBaseStream,
111
+ options?: Core.RequestOptions,
112
+ ): AssistantStream {
113
+ return AssistantStream.createAssistantStream(threadId, this._client.beta.threads.runs, body, options);
114
+ }
115
+
85
116
  /**
86
117
  * When a run has the `status: "requires_action"` and `required_action.type` is
87
118
  * `submit_tool_outputs`, this endpoint can be used to submit the outputs from the
88
119
  * tool calls once they're all completed. All outputs must be submitted in a single
89
120
  * request.
90
121
  */
122
+ submitToolOutputs(
123
+ threadId: string,
124
+ runId: string,
125
+ body: RunSubmitToolOutputsParamsNonStreaming,
126
+ options?: Core.RequestOptions,
127
+ ): APIPromise<Run>;
128
+ submitToolOutputs(
129
+ threadId: string,
130
+ runId: string,
131
+ body: RunSubmitToolOutputsParamsStreaming,
132
+ options?: Core.RequestOptions,
133
+ ): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
134
+ submitToolOutputs(
135
+ threadId: string,
136
+ runId: string,
137
+ body: RunSubmitToolOutputsParamsBase,
138
+ options?: Core.RequestOptions,
139
+ ): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | Run>;
91
140
  submitToolOutputs(
92
141
  threadId: string,
93
142
  runId: string,
94
143
  body: RunSubmitToolOutputsParams,
95
144
  options?: Core.RequestOptions,
96
- ): Core.APIPromise<Run> {
145
+ ): APIPromise<Run> | APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>> {
97
146
  return this._client.post(`/threads/${threadId}/runs/${runId}/submit_tool_outputs`, {
98
147
  body,
99
148
  ...options,
100
149
  headers: { 'OpenAI-Beta': 'assistants=v1', ...options?.headers },
101
- });
150
+ stream: body.stream ?? false,
151
+ }) as APIPromise<Run> | APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
152
+ }
153
+
154
+ /**
155
+ * Submit the tool outputs from a previous run and stream the run to a terminal
156
+ * state.
157
+ */
158
+ submitToolOutputsStream(
159
+ threadId: string,
160
+ runId: string,
161
+ body: RunSubmitToolOutputsParamsStream,
162
+ options?: Core.RequestOptions,
163
+ ): AssistantStream {
164
+ return AssistantStream.createToolAssistantStream(
165
+ threadId,
166
+ runId,
167
+ this._client.beta.threads.runs,
168
+ body,
169
+ options,
170
+ );
102
171
  }
103
172
  }
104
173
 
@@ -180,7 +249,7 @@ export interface Run {
180
249
  /**
181
250
  * The Unix timestamp (in seconds) for when the run will expire.
182
251
  */
183
- expires_at: number;
252
+ expires_at: number | null;
184
253
 
185
254
  /**
186
255
  * The Unix timestamp (in seconds) for when the run failed.
@@ -255,7 +324,7 @@ export interface Run {
255
324
  * [assistant](https://platform.openai.com/docs/api-reference/assistants) used for
256
325
  * this run.
257
326
  */
258
- tools: Array<Run.AssistantToolsCode | Run.AssistantToolsRetrieval | Run.AssistantToolsFunction>;
327
+ tools: Array<AssistantsAPI.AssistantTool>;
259
328
 
260
329
  /**
261
330
  * Usage statistics related to the run. This value will be `null` if the run is not
@@ -270,9 +339,9 @@ export namespace Run {
270
339
  */
271
340
  export interface LastError {
272
341
  /**
273
- * One of `server_error` or `rate_limit_exceeded`.
342
+ * One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.
274
343
  */
275
- code: 'server_error' | 'rate_limit_exceeded';
344
+ code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt';
276
345
 
277
346
  /**
278
347
  * A human-readable description of the error.
@@ -308,29 +377,6 @@ export namespace Run {
308
377
  }
309
378
  }
310
379
 
311
- export interface AssistantToolsCode {
312
- /**
313
- * The type of tool being defined: `code_interpreter`
314
- */
315
- type: 'code_interpreter';
316
- }
317
-
318
- export interface AssistantToolsRetrieval {
319
- /**
320
- * The type of tool being defined: `retrieval`
321
- */
322
- type: 'retrieval';
323
- }
324
-
325
- export interface AssistantToolsFunction {
326
- function: Shared.FunctionDefinition;
327
-
328
- /**
329
- * The type of tool being defined: `function`
330
- */
331
- type: 'function';
332
- }
333
-
334
380
  /**
335
381
  * Usage statistics related to the run. This value will be `null` if the run is not
336
382
  * in a terminal state (i.e. `in_progress`, `queued`, etc.).
@@ -368,7 +414,9 @@ export type RunStatus =
368
414
  | 'completed'
369
415
  | 'expired';
370
416
 
371
- export interface RunCreateParams {
417
+ export type RunCreateParams = RunCreateParamsNonStreaming | RunCreateParamsStreaming;
418
+
419
+ export interface RunCreateParamsBase {
372
420
  /**
373
421
  * The ID of the
374
422
  * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to
@@ -406,40 +454,41 @@ export interface RunCreateParams {
406
454
  */
407
455
  model?: string | null;
408
456
 
457
+ /**
458
+ * If `true`, returns a stream of events that happen during the Run as server-sent
459
+ * events, terminating when the Run enters a terminal state with a `data: [DONE]`
460
+ * message.
461
+ */
462
+ stream?: boolean | null;
463
+
409
464
  /**
410
465
  * Override the tools the assistant can use for this run. This is useful for
411
466
  * modifying the behavior on a per-run basis.
412
467
  */
413
- tools?: Array<
414
- | RunCreateParams.AssistantToolsCode
415
- | RunCreateParams.AssistantToolsRetrieval
416
- | RunCreateParams.AssistantToolsFunction
417
- > | null;
468
+ tools?: Array<AssistantsAPI.AssistantTool> | null;
418
469
  }
419
470
 
420
471
  export namespace RunCreateParams {
421
- export interface AssistantToolsCode {
422
- /**
423
- * The type of tool being defined: `code_interpreter`
424
- */
425
- type: 'code_interpreter';
426
- }
427
-
428
- export interface AssistantToolsRetrieval {
429
- /**
430
- * The type of tool being defined: `retrieval`
431
- */
432
- type: 'retrieval';
433
- }
472
+ export type RunCreateParamsNonStreaming = RunsAPI.RunCreateParamsNonStreaming;
473
+ export type RunCreateParamsStreaming = RunsAPI.RunCreateParamsStreaming;
474
+ }
434
475
 
435
- export interface AssistantToolsFunction {
436
- function: Shared.FunctionDefinition;
476
+ export interface RunCreateParamsNonStreaming extends RunCreateParamsBase {
477
+ /**
478
+ * If `true`, returns a stream of events that happen during the Run as server-sent
479
+ * events, terminating when the Run enters a terminal state with a `data: [DONE]`
480
+ * message.
481
+ */
482
+ stream?: false | null;
483
+ }
437
484
 
438
- /**
439
- * The type of tool being defined: `function`
440
- */
441
- type: 'function';
442
- }
485
+ export interface RunCreateParamsStreaming extends RunCreateParamsBase {
486
+ /**
487
+ * If `true`, returns a stream of events that happen during the Run as server-sent
488
+ * events, terminating when the Run enters a terminal state with a `data: [DONE]`
489
+ * message.
490
+ */
491
+ stream: true;
443
492
  }
444
493
 
445
494
  export interface RunUpdateParams {
@@ -468,11 +517,67 @@ export interface RunListParams extends CursorPageParams {
468
517
  order?: 'asc' | 'desc';
469
518
  }
470
519
 
471
- export interface RunSubmitToolOutputsParams {
520
+ export interface RunCreateAndStreamParams {
521
+ /**
522
+ * The ID of the
523
+ * [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to
524
+ * execute this run.
525
+ */
526
+ assistant_id: string;
527
+
528
+ /**
529
+ * Appends additional instructions at the end of the instructions for the run. This
530
+ * is useful for modifying the behavior on a per-run basis without overriding other
531
+ * instructions.
532
+ */
533
+ additional_instructions?: string | null;
534
+
535
+ /**
536
+ * Overrides the
537
+ * [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
538
+ * of the assistant. This is useful for modifying the behavior on a per-run basis.
539
+ */
540
+ instructions?: string | null;
541
+
542
+ /**
543
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
544
+ * for storing additional information about the object in a structured format. Keys
545
+ * can be a maximum of 64 characters long and values can be a maxium of 512
546
+ * characters long.
547
+ */
548
+ metadata?: unknown | null;
549
+
550
+ /**
551
+ * The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to
552
+ * be used to execute this run. If a value is provided here, it will override the
553
+ * model associated with the assistant. If not, the model associated with the
554
+ * assistant will be used.
555
+ */
556
+ model?: string | null;
557
+
558
+ /**
559
+ * Override the tools the assistant can use for this run. This is useful for
560
+ * modifying the behavior on a per-run basis.
561
+ */
562
+ tools?: Array<AssistantsAPI.AssistantTool> | null;
563
+ }
564
+
565
+ export type RunSubmitToolOutputsParams =
566
+ | RunSubmitToolOutputsParamsNonStreaming
567
+ | RunSubmitToolOutputsParamsStreaming;
568
+
569
+ export interface RunSubmitToolOutputsParamsBase {
472
570
  /**
473
571
  * A list of tools for which the outputs are being submitted.
474
572
  */
475
573
  tool_outputs: Array<RunSubmitToolOutputsParams.ToolOutput>;
574
+
575
+ /**
576
+ * If `true`, returns a stream of events that happen during the Run as server-sent
577
+ * events, terminating when the Run enters a terminal state with a `data: [DONE]`
578
+ * message.
579
+ */
580
+ stream?: boolean | null;
476
581
  }
477
582
 
478
583
  export namespace RunSubmitToolOutputsParams {
@@ -488,6 +593,49 @@ export namespace RunSubmitToolOutputsParams {
488
593
  */
489
594
  tool_call_id?: string;
490
595
  }
596
+
597
+ export type RunSubmitToolOutputsParamsNonStreaming = RunsAPI.RunSubmitToolOutputsParamsNonStreaming;
598
+ export type RunSubmitToolOutputsParamsStreaming = RunsAPI.RunSubmitToolOutputsParamsStreaming;
599
+ }
600
+
601
+ export interface RunSubmitToolOutputsParamsNonStreaming extends RunSubmitToolOutputsParamsBase {
602
+ /**
603
+ * If `true`, returns a stream of events that happen during the Run as server-sent
604
+ * events, terminating when the Run enters a terminal state with a `data: [DONE]`
605
+ * message.
606
+ */
607
+ stream?: false | null;
608
+ }
609
+
610
+ export interface RunSubmitToolOutputsParamsStreaming extends RunSubmitToolOutputsParamsBase {
611
+ /**
612
+ * If `true`, returns a stream of events that happen during the Run as server-sent
613
+ * events, terminating when the Run enters a terminal state with a `data: [DONE]`
614
+ * message.
615
+ */
616
+ stream: true;
617
+ }
618
+
619
+ export interface RunSubmitToolOutputsStreamParams {
620
+ /**
621
+ * A list of tools for which the outputs are being submitted.
622
+ */
623
+ tool_outputs: Array<RunSubmitToolOutputsStreamParams.ToolOutput>;
624
+ }
625
+
626
+ export namespace RunSubmitToolOutputsStreamParams {
627
+ export interface ToolOutput {
628
+ /**
629
+ * The output of the tool call to be submitted to continue the run.
630
+ */
631
+ output?: string;
632
+
633
+ /**
634
+ * The ID of the tool call in the `required_action` object within the run object
635
+ * the output is being submitted for.
636
+ */
637
+ tool_call_id?: string;
638
+ }
491
639
  }
492
640
 
493
641
  export namespace Runs {
@@ -496,15 +644,32 @@ export namespace Runs {
496
644
  export import RunStatus = RunsAPI.RunStatus;
497
645
  export import RunsPage = RunsAPI.RunsPage;
498
646
  export import RunCreateParams = RunsAPI.RunCreateParams;
647
+ export import RunCreateParamsNonStreaming = RunsAPI.RunCreateParamsNonStreaming;
648
+ export import RunCreateParamsStreaming = RunsAPI.RunCreateParamsStreaming;
499
649
  export import RunUpdateParams = RunsAPI.RunUpdateParams;
500
650
  export import RunListParams = RunsAPI.RunListParams;
651
+ export import RunCreateAndStreamParams = RunsAPI.RunCreateAndStreamParams;
501
652
  export import RunSubmitToolOutputsParams = RunsAPI.RunSubmitToolOutputsParams;
653
+ export import RunSubmitToolOutputsParamsNonStreaming = RunsAPI.RunSubmitToolOutputsParamsNonStreaming;
654
+ export import RunSubmitToolOutputsParamsStreaming = RunsAPI.RunSubmitToolOutputsParamsStreaming;
655
+ export import RunSubmitToolOutputsStreamParams = RunsAPI.RunSubmitToolOutputsStreamParams;
502
656
  export import Steps = StepsAPI.Steps;
503
- export import CodeToolCall = StepsAPI.CodeToolCall;
657
+ export import CodeInterpreterLogs = StepsAPI.CodeInterpreterLogs;
658
+ export import CodeInterpreterOutputImage = StepsAPI.CodeInterpreterOutputImage;
659
+ export import CodeInterpreterToolCall = StepsAPI.CodeInterpreterToolCall;
660
+ export import CodeInterpreterToolCallDelta = StepsAPI.CodeInterpreterToolCallDelta;
504
661
  export import FunctionToolCall = StepsAPI.FunctionToolCall;
662
+ export import FunctionToolCallDelta = StepsAPI.FunctionToolCallDelta;
505
663
  export import MessageCreationStepDetails = StepsAPI.MessageCreationStepDetails;
506
664
  export import RetrievalToolCall = StepsAPI.RetrievalToolCall;
665
+ export import RetrievalToolCallDelta = StepsAPI.RetrievalToolCallDelta;
507
666
  export import RunStep = StepsAPI.RunStep;
667
+ export import RunStepDelta = StepsAPI.RunStepDelta;
668
+ export import RunStepDeltaEvent = StepsAPI.RunStepDeltaEvent;
669
+ export import RunStepDeltaMessageDelta = StepsAPI.RunStepDeltaMessageDelta;
670
+ export import ToolCall = StepsAPI.ToolCall;
671
+ export import ToolCallDelta = StepsAPI.ToolCallDelta;
672
+ export import ToolCallDeltaObject = StepsAPI.ToolCallDeltaObject;
508
673
  export import ToolCallsStepDetails = StepsAPI.ToolCallsStepDetails;
509
674
  export import RunStepsPage = StepsAPI.RunStepsPage;
510
675
  export import StepListParams = StepsAPI.StepListParams;