@@ -1282,7 +1282,25 @@ export type ResponseContent =
12821282 | ResponseInputFile
12831283 | ResponseInputAudio
12841284 | 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+ }
12861304
12871305/**
12881306 * Emitted when a new content part is added.
@@ -1306,7 +1324,7 @@ export interface ResponseContentPartAddedEvent {
13061324 /**
13071325 * The content part that was added.
13081326 */
1309- part : ResponseOutputText | ResponseOutputRefusal ;
1327+ part : ResponseOutputText | ResponseOutputRefusal | ResponseContentPartAddedEvent . ReasoningText ;
13101328
13111329 /**
13121330 * The sequence number of this event.
@@ -1319,6 +1337,23 @@ export interface ResponseContentPartAddedEvent {
13191337 type : 'response.content_part.added' ;
13201338}
13211339
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+
13221357/**
13231358 * Emitted when a content part is done.
13241359 */
@@ -1341,7 +1376,7 @@ export interface ResponseContentPartDoneEvent {
13411376 /**
13421377 * The content part that is done.
13431378 */
1344- part : ResponseOutputText | ResponseOutputRefusal ;
1379+ part : ResponseOutputText | ResponseOutputRefusal | ResponseContentPartDoneEvent . ReasoningText ;
13451380
13461381 /**
13471382 * The sequence number of this event.
@@ -1354,6 +1389,23 @@ export interface ResponseContentPartDoneEvent {
13541389 type : 'response.content_part.done' ;
13551390}
13561391
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+
13571409/**
13581410 * The conversation that this response belongs to.
13591411 */
@@ -3940,6 +3992,9 @@ export interface ResponseReasoningItem {
39403992}
39413993
39423994export namespace ResponseReasoningItem {
3995+ /**
3996+ * A summary text from the model.
3997+ */
39433998 export interface Summary {
39443999 /**
39454000 * A summary of the reasoning output from the model so far.
@@ -3952,14 +4007,17 @@ export namespace ResponseReasoningItem {
39524007 type : 'summary_text' ;
39534008 }
39544009
4010+ /**
4011+ * Reasoning text from the model.
4012+ */
39554013 export interface Content {
39564014 /**
3957- * Reasoning text output from the model.
4015+ * The reasoning text from the model.
39584016 */
39594017 text : string ;
39604018
39614019 /**
3962- * The type of the object . Always `reasoning_text`.
4020+ * The type of the reasoning text . Always `reasoning_text`.
39634021 */
39644022 type : 'reasoning_text' ;
39654023 }
0 commit comments