@@ -1282,7 +1282,25 @@ export type ResponseContent =
1282
1282
| ResponseInputFile
1283
1283
| ResponseInputAudio
1284
1284
| ResponseOutputText
1285
- | ResponseOutputRefusal ;
1285
+ | ResponseOutputRefusal
1286
+ | ResponseContent . ReasoningTextContent ;
1287
+
1288
+ export namespace ResponseContent {
1289
+ /**
1290
+ * Reasoning text from the model.
1291
+ */
1292
+ export interface ReasoningTextContent {
1293
+ /**
1294
+ * The reasoning text from the model.
1295
+ */
1296
+ text : string ;
1297
+
1298
+ /**
1299
+ * The type of the reasoning text. Always `reasoning_text`.
1300
+ */
1301
+ type : 'reasoning_text' ;
1302
+ }
1303
+ }
1286
1304
1287
1305
/**
1288
1306
* Emitted when a new content part is added.
@@ -1306,7 +1324,7 @@ export interface ResponseContentPartAddedEvent {
1306
1324
/**
1307
1325
* The content part that was added.
1308
1326
*/
1309
- part : ResponseOutputText | ResponseOutputRefusal ;
1327
+ part : ResponseOutputText | ResponseOutputRefusal | ResponseContentPartAddedEvent . ReasoningText ;
1310
1328
1311
1329
/**
1312
1330
* The sequence number of this event.
@@ -1319,6 +1337,23 @@ export interface ResponseContentPartAddedEvent {
1319
1337
type : 'response.content_part.added' ;
1320
1338
}
1321
1339
1340
+ export namespace ResponseContentPartAddedEvent {
1341
+ /**
1342
+ * Reasoning text from the model.
1343
+ */
1344
+ export interface ReasoningText {
1345
+ /**
1346
+ * The reasoning text from the model.
1347
+ */
1348
+ text : string ;
1349
+
1350
+ /**
1351
+ * The type of the reasoning text. Always `reasoning_text`.
1352
+ */
1353
+ type : 'reasoning_text' ;
1354
+ }
1355
+ }
1356
+
1322
1357
/**
1323
1358
* Emitted when a content part is done.
1324
1359
*/
@@ -1341,7 +1376,7 @@ export interface ResponseContentPartDoneEvent {
1341
1376
/**
1342
1377
* The content part that is done.
1343
1378
*/
1344
- part : ResponseOutputText | ResponseOutputRefusal ;
1379
+ part : ResponseOutputText | ResponseOutputRefusal | ResponseContentPartDoneEvent . ReasoningText ;
1345
1380
1346
1381
/**
1347
1382
* The sequence number of this event.
@@ -1354,6 +1389,23 @@ export interface ResponseContentPartDoneEvent {
1354
1389
type : 'response.content_part.done' ;
1355
1390
}
1356
1391
1392
+ export namespace ResponseContentPartDoneEvent {
1393
+ /**
1394
+ * Reasoning text from the model.
1395
+ */
1396
+ export interface ReasoningText {
1397
+ /**
1398
+ * The reasoning text from the model.
1399
+ */
1400
+ text : string ;
1401
+
1402
+ /**
1403
+ * The type of the reasoning text. Always `reasoning_text`.
1404
+ */
1405
+ type : 'reasoning_text' ;
1406
+ }
1407
+ }
1408
+
1357
1409
/**
1358
1410
* The conversation that this response belongs to.
1359
1411
*/
@@ -3940,6 +3992,9 @@ export interface ResponseReasoningItem {
3940
3992
}
3941
3993
3942
3994
export namespace ResponseReasoningItem {
3995
+ /**
3996
+ * A summary text from the model.
3997
+ */
3943
3998
export interface Summary {
3944
3999
/**
3945
4000
* A summary of the reasoning output from the model so far.
@@ -3952,14 +4007,17 @@ export namespace ResponseReasoningItem {
3952
4007
type : 'summary_text' ;
3953
4008
}
3954
4009
4010
+ /**
4011
+ * Reasoning text from the model.
4012
+ */
3955
4013
export interface Content {
3956
4014
/**
3957
- * Reasoning text output from the model.
4015
+ * The reasoning text from the model.
3958
4016
*/
3959
4017
text : string ;
3960
4018
3961
4019
/**
3962
- * The type of the object . Always `reasoning_text`.
4020
+ * The type of the reasoning text . Always `reasoning_text`.
3963
4021
*/
3964
4022
type : 'reasoning_text' ;
3965
4023
}
0 commit comments