@@ -75,6 +75,7 @@ def create(
75
75
* ,
76
76
assistant_id : str ,
77
77
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
78
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
78
79
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
79
80
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
80
81
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -100,6 +101,8 @@ def create(
100
101
is useful for modifying the behavior on a per-run basis without overriding other
101
102
instructions.
102
103
104
+ additional_messages: Adds additional messages to the thread before creating the run.
105
+
103
106
instructions: Overrides the
104
107
[instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
105
108
of the assistant. This is useful for modifying the behavior on a per-run basis.
@@ -143,6 +146,7 @@ def create(
143
146
assistant_id : str ,
144
147
stream : Literal [True ],
145
148
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
149
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
146
150
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
147
151
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
148
152
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -171,6 +175,8 @@ def create(
171
175
is useful for modifying the behavior on a per-run basis without overriding other
172
176
instructions.
173
177
178
+ additional_messages: Adds additional messages to the thread before creating the run.
179
+
174
180
instructions: Overrides the
175
181
[instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
176
182
of the assistant. This is useful for modifying the behavior on a per-run basis.
@@ -210,6 +216,7 @@ def create(
210
216
assistant_id : str ,
211
217
stream : bool ,
212
218
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
219
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
213
220
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
214
221
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
215
222
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -238,6 +245,8 @@ def create(
238
245
is useful for modifying the behavior on a per-run basis without overriding other
239
246
instructions.
240
247
248
+ additional_messages: Adds additional messages to the thread before creating the run.
249
+
241
250
instructions: Overrides the
242
251
[instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
243
252
of the assistant. This is useful for modifying the behavior on a per-run basis.
@@ -276,6 +285,7 @@ def create(
276
285
* ,
277
286
assistant_id : str ,
278
287
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
288
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
279
289
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
280
290
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
281
291
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -298,6 +308,7 @@ def create(
298
308
{
299
309
"assistant_id" : assistant_id ,
300
310
"additional_instructions" : additional_instructions ,
311
+ "additional_messages" : additional_messages ,
301
312
"instructions" : instructions ,
302
313
"metadata" : metadata ,
303
314
"model" : model ,
@@ -505,6 +516,7 @@ def create_and_poll(
505
516
* ,
506
517
assistant_id : str ,
507
518
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
519
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
508
520
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
509
521
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
510
522
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -528,6 +540,7 @@ def create_and_poll(
528
540
thread_id = thread_id ,
529
541
assistant_id = assistant_id ,
530
542
additional_instructions = additional_instructions ,
543
+ additional_messages = additional_messages ,
531
544
instructions = instructions ,
532
545
metadata = metadata ,
533
546
model = model ,
@@ -557,6 +570,7 @@ def create_and_stream(
557
570
* ,
558
571
assistant_id : str ,
559
572
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
573
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
560
574
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
561
575
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
562
576
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -580,6 +594,7 @@ def create_and_stream(
580
594
* ,
581
595
assistant_id : str ,
582
596
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
597
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
583
598
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
584
599
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
585
600
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -603,6 +618,7 @@ def create_and_stream(
603
618
* ,
604
619
assistant_id : str ,
605
620
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
621
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
606
622
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
607
623
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
608
624
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -634,6 +650,7 @@ def create_and_stream(
634
650
{
635
651
"assistant_id" : assistant_id ,
636
652
"additional_instructions" : additional_instructions ,
653
+ "additional_messages" : additional_messages ,
637
654
"instructions" : instructions ,
638
655
"metadata" : metadata ,
639
656
"model" : model ,
@@ -703,6 +720,7 @@ def stream(
703
720
* ,
704
721
assistant_id : str ,
705
722
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
723
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
706
724
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
707
725
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
708
726
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -725,6 +743,7 @@ def stream(
725
743
* ,
726
744
assistant_id : str ,
727
745
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
746
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
728
747
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
729
748
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
730
749
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -747,6 +766,7 @@ def stream(
747
766
* ,
748
767
assistant_id : str ,
749
768
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
769
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
750
770
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
751
771
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
752
772
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -778,6 +798,7 @@ def stream(
778
798
{
779
799
"assistant_id" : assistant_id ,
780
800
"additional_instructions" : additional_instructions ,
801
+ "additional_messages" : additional_messages ,
781
802
"instructions" : instructions ,
782
803
"metadata" : metadata ,
783
804
"model" : model ,
@@ -1100,6 +1121,7 @@ async def create(
1100
1121
* ,
1101
1122
assistant_id : str ,
1102
1123
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1124
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1103
1125
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1104
1126
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1105
1127
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1125,6 +1147,8 @@ async def create(
1125
1147
is useful for modifying the behavior on a per-run basis without overriding other
1126
1148
instructions.
1127
1149
1150
+ additional_messages: Adds additional messages to the thread before creating the run.
1151
+
1128
1152
instructions: Overrides the
1129
1153
[instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
1130
1154
of the assistant. This is useful for modifying the behavior on a per-run basis.
@@ -1168,6 +1192,7 @@ async def create(
1168
1192
assistant_id : str ,
1169
1193
stream : Literal [True ],
1170
1194
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1195
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1171
1196
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1172
1197
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1173
1198
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1196,6 +1221,8 @@ async def create(
1196
1221
is useful for modifying the behavior on a per-run basis without overriding other
1197
1222
instructions.
1198
1223
1224
+ additional_messages: Adds additional messages to the thread before creating the run.
1225
+
1199
1226
instructions: Overrides the
1200
1227
[instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
1201
1228
of the assistant. This is useful for modifying the behavior on a per-run basis.
@@ -1235,6 +1262,7 @@ async def create(
1235
1262
assistant_id : str ,
1236
1263
stream : bool ,
1237
1264
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1265
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1238
1266
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1239
1267
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1240
1268
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1263,6 +1291,8 @@ async def create(
1263
1291
is useful for modifying the behavior on a per-run basis without overriding other
1264
1292
instructions.
1265
1293
1294
+ additional_messages: Adds additional messages to the thread before creating the run.
1295
+
1266
1296
instructions: Overrides the
1267
1297
[instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
1268
1298
of the assistant. This is useful for modifying the behavior on a per-run basis.
@@ -1301,6 +1331,7 @@ async def create(
1301
1331
* ,
1302
1332
assistant_id : str ,
1303
1333
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1334
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1304
1335
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1305
1336
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1306
1337
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1323,6 +1354,7 @@ async def create(
1323
1354
{
1324
1355
"assistant_id" : assistant_id ,
1325
1356
"additional_instructions" : additional_instructions ,
1357
+ "additional_messages" : additional_messages ,
1326
1358
"instructions" : instructions ,
1327
1359
"metadata" : metadata ,
1328
1360
"model" : model ,
@@ -1530,6 +1562,7 @@ async def create_and_poll(
1530
1562
* ,
1531
1563
assistant_id : str ,
1532
1564
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1565
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1533
1566
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1534
1567
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1535
1568
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1553,6 +1586,7 @@ async def create_and_poll(
1553
1586
thread_id = thread_id ,
1554
1587
assistant_id = assistant_id ,
1555
1588
additional_instructions = additional_instructions ,
1589
+ additional_messages = additional_messages ,
1556
1590
instructions = instructions ,
1557
1591
metadata = metadata ,
1558
1592
model = model ,
@@ -1582,6 +1616,7 @@ def create_and_stream(
1582
1616
* ,
1583
1617
assistant_id : str ,
1584
1618
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1619
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1585
1620
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1586
1621
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1587
1622
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1605,6 +1640,7 @@ def create_and_stream(
1605
1640
* ,
1606
1641
assistant_id : str ,
1607
1642
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1643
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1608
1644
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1609
1645
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1610
1646
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1628,6 +1664,7 @@ def create_and_stream(
1628
1664
* ,
1629
1665
assistant_id : str ,
1630
1666
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1667
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1631
1668
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1632
1669
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1633
1670
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1661,6 +1698,7 @@ def create_and_stream(
1661
1698
{
1662
1699
"assistant_id" : assistant_id ,
1663
1700
"additional_instructions" : additional_instructions ,
1701
+ "additional_messages" : additional_messages ,
1664
1702
"instructions" : instructions ,
1665
1703
"metadata" : metadata ,
1666
1704
"model" : model ,
@@ -1730,6 +1768,7 @@ def stream(
1730
1768
* ,
1731
1769
assistant_id : str ,
1732
1770
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1771
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1733
1772
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1734
1773
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1735
1774
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1752,6 +1791,7 @@ def stream(
1752
1791
* ,
1753
1792
assistant_id : str ,
1754
1793
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1794
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1755
1795
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1756
1796
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1757
1797
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1774,6 +1814,7 @@ def stream(
1774
1814
* ,
1775
1815
assistant_id : str ,
1776
1816
additional_instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1817
+ additional_messages : Optional [Iterable [run_create_params .AdditionalMessage ]] | NotGiven = NOT_GIVEN ,
1777
1818
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1778
1819
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1779
1820
model : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -1807,6 +1848,7 @@ def stream(
1807
1848
{
1808
1849
"assistant_id" : assistant_id ,
1809
1850
"additional_instructions" : additional_instructions ,
1851
+ "additional_messages" : additional_messages ,
1810
1852
"instructions" : instructions ,
1811
1853
"metadata" : metadata ,
1812
1854
"model" : model ,
0 commit comments