@@ -547,6 +547,8 @@ export type ResponseObjectStream =
547
547
| ResponseObjectStream . OpenAIResponseObjectStreamResponseMcpCallInProgress
548
548
| ResponseObjectStream . OpenAIResponseObjectStreamResponseMcpCallFailed
549
549
| ResponseObjectStream . OpenAIResponseObjectStreamResponseMcpCallCompleted
550
+ | ResponseObjectStream . OpenAIResponseObjectStreamResponseContentPartAdded
551
+ | ResponseObjectStream . OpenAIResponseObjectStreamResponseContentPartDone
550
552
| ResponseObjectStream . OpenAIResponseObjectStreamResponseCompleted ;
551
553
552
554
export namespace ResponseObjectStream {
@@ -1576,6 +1578,98 @@ export namespace ResponseObjectStream {
1576
1578
type : 'response.mcp_call.completed' ;
1577
1579
}
1578
1580
1581
+ /**
1582
+ * Streaming event for when a new content part is added to a response item.
1583
+ */
1584
+ export interface OpenAIResponseObjectStreamResponseContentPartAdded {
1585
+ /**
1586
+ * Unique identifier of the output item containing this content part
1587
+ */
1588
+ item_id : string ;
1589
+
1590
+ /**
1591
+ * The content part that was added
1592
+ */
1593
+ part :
1594
+ | OpenAIResponseObjectStreamResponseContentPartAdded . OpenAIResponseContentPartOutputText
1595
+ | OpenAIResponseObjectStreamResponseContentPartAdded . OpenAIResponseContentPartRefusal ;
1596
+
1597
+ /**
1598
+ * Unique identifier of the response containing this content
1599
+ */
1600
+ response_id : string ;
1601
+
1602
+ /**
1603
+ * Sequential number for ordering streaming events
1604
+ */
1605
+ sequence_number : number ;
1606
+
1607
+ /**
1608
+ * Event type identifier, always "response.content_part.added"
1609
+ */
1610
+ type : 'response.content_part.added' ;
1611
+ }
1612
+
1613
+ export namespace OpenAIResponseObjectStreamResponseContentPartAdded {
1614
+ export interface OpenAIResponseContentPartOutputText {
1615
+ text : string ;
1616
+
1617
+ type : 'output_text' ;
1618
+ }
1619
+
1620
+ export interface OpenAIResponseContentPartRefusal {
1621
+ refusal : string ;
1622
+
1623
+ type : 'refusal' ;
1624
+ }
1625
+ }
1626
+
1627
+ /**
1628
+ * Streaming event for when a content part is completed.
1629
+ */
1630
+ export interface OpenAIResponseObjectStreamResponseContentPartDone {
1631
+ /**
1632
+ * Unique identifier of the output item containing this content part
1633
+ */
1634
+ item_id : string ;
1635
+
1636
+ /**
1637
+ * The completed content part
1638
+ */
1639
+ part :
1640
+ | OpenAIResponseObjectStreamResponseContentPartDone . OpenAIResponseContentPartOutputText
1641
+ | OpenAIResponseObjectStreamResponseContentPartDone . OpenAIResponseContentPartRefusal ;
1642
+
1643
+ /**
1644
+ * Unique identifier of the response containing this content
1645
+ */
1646
+ response_id : string ;
1647
+
1648
+ /**
1649
+ * Sequential number for ordering streaming events
1650
+ */
1651
+ sequence_number : number ;
1652
+
1653
+ /**
1654
+ * Event type identifier, always "response.content_part.done"
1655
+ */
1656
+ type : 'response.content_part.done' ;
1657
+ }
1658
+
1659
+ export namespace OpenAIResponseObjectStreamResponseContentPartDone {
1660
+ export interface OpenAIResponseContentPartOutputText {
1661
+ text : string ;
1662
+
1663
+ type : 'output_text' ;
1664
+ }
1665
+
1666
+ export interface OpenAIResponseContentPartRefusal {
1667
+ refusal : string ;
1668
+
1669
+ type : 'refusal' ;
1670
+ }
1671
+ }
1672
+
1579
1673
/**
1580
1674
* Streaming event indicating a response has been completed.
1581
1675
*/
0 commit comments