@@ -3690,7 +3690,7 @@ export interface ResponseReasoningItem {
3690
3690
id : string ;
3691
3691
3692
3692
/**
3693
- * Reasoning text contents .
3693
+ * Reasoning summary content .
3694
3694
*/
3695
3695
summary : Array < ResponseReasoningItem . Summary > ;
3696
3696
@@ -3699,6 +3699,11 @@ export interface ResponseReasoningItem {
3699
3699
*/
3700
3700
type : 'reasoning' ;
3701
3701
3702
+ /**
3703
+ * Reasoning text content.
3704
+ */
3705
+ content ?: Array < ResponseReasoningItem . Content > ;
3706
+
3702
3707
/**
3703
3708
* The encrypted content of the reasoning item - populated when a response is
3704
3709
* generated with `reasoning.encrypted_content` in the `include` parameter.
@@ -3715,7 +3720,7 @@ export interface ResponseReasoningItem {
3715
3720
export namespace ResponseReasoningItem {
3716
3721
export interface Summary {
3717
3722
/**
3718
- * A short summary of the reasoning used by the model when generating the response .
3723
+ * A summary of the reasoning output from the model so far .
3719
3724
*/
3720
3725
text : string ;
3721
3726
@@ -3724,77 +3729,18 @@ export namespace ResponseReasoningItem {
3724
3729
*/
3725
3730
type : 'summary_text' ;
3726
3731
}
3727
- }
3728
-
3729
- /**
3730
- * Emitted when there is a delta (partial update) to the reasoning summary content.
3731
- */
3732
- export interface ResponseReasoningSummaryDeltaEvent {
3733
- /**
3734
- * The partial update to the reasoning summary content.
3735
- */
3736
- delta : unknown ;
3737
-
3738
- /**
3739
- * The unique identifier of the item for which the reasoning summary is being
3740
- * updated.
3741
- */
3742
- item_id : string ;
3743
-
3744
- /**
3745
- * The index of the output item in the response's output array.
3746
- */
3747
- output_index : number ;
3748
-
3749
- /**
3750
- * The sequence number of this event.
3751
- */
3752
- sequence_number : number ;
3753
-
3754
- /**
3755
- * The index of the summary part within the output item.
3756
- */
3757
- summary_index : number ;
3758
-
3759
- /**
3760
- * The type of the event. Always 'response.reasoning_summary.delta'.
3761
- */
3762
- type : 'response.reasoning_summary.delta' ;
3763
- }
3764
-
3765
- /**
3766
- * Emitted when the reasoning summary content is finalized for an item.
3767
- */
3768
- export interface ResponseReasoningSummaryDoneEvent {
3769
- /**
3770
- * The unique identifier of the item for which the reasoning summary is finalized.
3771
- */
3772
- item_id : string ;
3773
3732
3774
- /**
3775
- * The index of the output item in the response's output array.
3776
- */
3777
- output_index : number ;
3778
-
3779
- /**
3780
- * The sequence number of this event.
3781
- */
3782
- sequence_number : number ;
3783
-
3784
- /**
3785
- * The index of the summary part within the output item.
3786
- */
3787
- summary_index : number ;
3788
-
3789
- /**
3790
- * The finalized reasoning summary text.
3791
- */
3792
- text : string ;
3733
+ export interface Content {
3734
+ /**
3735
+ * Reasoning text output from the model.
3736
+ */
3737
+ text : string ;
3793
3738
3794
- /**
3795
- * The type of the event. Always 'response.reasoning_summary.done'.
3796
- */
3797
- type : 'response.reasoning_summary.done' ;
3739
+ /**
3740
+ * The type of the object. Always `reasoning_text`.
3741
+ */
3742
+ type : 'reasoning_text' ;
3743
+ }
3798
3744
}
3799
3745
3800
3746
/**
@@ -3971,6 +3917,76 @@ export interface ResponseReasoningSummaryTextDoneEvent {
3971
3917
type : 'response.reasoning_summary_text.done' ;
3972
3918
}
3973
3919
3920
+ /**
3921
+ * Emitted when a delta is added to a reasoning text.
3922
+ */
3923
+ export interface ResponseReasoningTextDeltaEvent {
3924
+ /**
3925
+ * The index of the reasoning content part this delta is associated with.
3926
+ */
3927
+ content_index : number ;
3928
+
3929
+ /**
3930
+ * The text delta that was added to the reasoning content.
3931
+ */
3932
+ delta : string ;
3933
+
3934
+ /**
3935
+ * The ID of the item this reasoning text delta is associated with.
3936
+ */
3937
+ item_id : string ;
3938
+
3939
+ /**
3940
+ * The index of the output item this reasoning text delta is associated with.
3941
+ */
3942
+ output_index : number ;
3943
+
3944
+ /**
3945
+ * The sequence number of this event.
3946
+ */
3947
+ sequence_number : number ;
3948
+
3949
+ /**
3950
+ * The type of the event. Always `response.reasoning_text.delta`.
3951
+ */
3952
+ type : 'response.reasoning_text.delta' ;
3953
+ }
3954
+
3955
+ /**
3956
+ * Emitted when a reasoning text is completed.
3957
+ */
3958
+ export interface ResponseReasoningTextDoneEvent {
3959
+ /**
3960
+ * The index of the reasoning content part.
3961
+ */
3962
+ content_index : number ;
3963
+
3964
+ /**
3965
+ * The ID of the item this reasoning text is associated with.
3966
+ */
3967
+ item_id : string ;
3968
+
3969
+ /**
3970
+ * The index of the output item this reasoning text is associated with.
3971
+ */
3972
+ output_index : number ;
3973
+
3974
+ /**
3975
+ * The sequence number of this event.
3976
+ */
3977
+ sequence_number : number ;
3978
+
3979
+ /**
3980
+ * The full text of the completed reasoning content.
3981
+ */
3982
+ text : string ;
3983
+
3984
+ /**
3985
+ * The type of the event. Always `response.reasoning_text.done`.
3986
+ */
3987
+ type : 'response.reasoning_text.done' ;
3988
+ }
3989
+
3974
3990
/**
3975
3991
* Emitted when there is a partial refusal text.
3976
3992
*/
@@ -4079,6 +4095,8 @@ export type ResponseStreamEvent =
4079
4095
| ResponseReasoningSummaryPartDoneEvent
4080
4096
| ResponseReasoningSummaryTextDeltaEvent
4081
4097
| ResponseReasoningSummaryTextDoneEvent
4098
+ | ResponseReasoningTextDeltaEvent
4099
+ | ResponseReasoningTextDoneEvent
4082
4100
| ResponseRefusalDeltaEvent
4083
4101
| ResponseRefusalDoneEvent
4084
4102
| ResponseTextDeltaEvent
@@ -4099,9 +4117,7 @@ export type ResponseStreamEvent =
4099
4117
| ResponseMcpListToolsFailedEvent
4100
4118
| ResponseMcpListToolsInProgressEvent
4101
4119
| ResponseOutputTextAnnotationAddedEvent
4102
- | ResponseQueuedEvent
4103
- | ResponseReasoningSummaryDeltaEvent
4104
- | ResponseReasoningSummaryDoneEvent ;
4120
+ | ResponseQueuedEvent ;
4105
4121
4106
4122
/**
4107
4123
* Configuration options for a text response from the model. Can be plain text or
@@ -5148,12 +5164,12 @@ export declare namespace Responses {
5148
5164
type ResponsePrompt as ResponsePrompt ,
5149
5165
type ResponseQueuedEvent as ResponseQueuedEvent ,
5150
5166
type ResponseReasoningItem as ResponseReasoningItem ,
5151
- type ResponseReasoningSummaryDeltaEvent as ResponseReasoningSummaryDeltaEvent ,
5152
- type ResponseReasoningSummaryDoneEvent as ResponseReasoningSummaryDoneEvent ,
5153
5167
type ResponseReasoningSummaryPartAddedEvent as ResponseReasoningSummaryPartAddedEvent ,
5154
5168
type ResponseReasoningSummaryPartDoneEvent as ResponseReasoningSummaryPartDoneEvent ,
5155
5169
type ResponseReasoningSummaryTextDeltaEvent as ResponseReasoningSummaryTextDeltaEvent ,
5156
5170
type ResponseReasoningSummaryTextDoneEvent as ResponseReasoningSummaryTextDoneEvent ,
5171
+ type ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent ,
5172
+ type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent ,
5157
5173
type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent ,
5158
5174
type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent ,
5159
5175
type ResponseStatus as ResponseStatus ,
0 commit comments