@@ -3690,7 +3690,7 @@ export interface ResponseReasoningItem {
36903690 id : string ;
36913691
36923692 /**
3693- * Reasoning text contents .
3693+ * Reasoning summary content .
36943694 */
36953695 summary : Array < ResponseReasoningItem . Summary > ;
36963696
@@ -3699,6 +3699,11 @@ export interface ResponseReasoningItem {
36993699 */
37003700 type : 'reasoning' ;
37013701
3702+ /**
3703+ * Reasoning text content.
3704+ */
3705+ content ?: Array < ResponseReasoningItem . Content > ;
3706+
37023707 /**
37033708 * The encrypted content of the reasoning item - populated when a response is
37043709 * generated with `reasoning.encrypted_content` in the `include` parameter.
@@ -3715,7 +3720,7 @@ export interface ResponseReasoningItem {
37153720export namespace ResponseReasoningItem {
37163721 export interface Summary {
37173722 /**
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 .
37193724 */
37203725 text : string ;
37213726
@@ -3724,77 +3729,18 @@ export namespace ResponseReasoningItem {
37243729 */
37253730 type : 'summary_text' ;
37263731 }
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 ;
37733732
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 ;
37933738
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+ }
37983744}
37993745
38003746/**
@@ -3971,6 +3917,76 @@ export interface ResponseReasoningSummaryTextDoneEvent {
39713917 type : 'response.reasoning_summary_text.done' ;
39723918}
39733919
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+
39743990/**
39753991 * Emitted when there is a partial refusal text.
39763992 */
@@ -4079,6 +4095,8 @@ export type ResponseStreamEvent =
40794095 | ResponseReasoningSummaryPartDoneEvent
40804096 | ResponseReasoningSummaryTextDeltaEvent
40814097 | ResponseReasoningSummaryTextDoneEvent
4098+ | ResponseReasoningTextDeltaEvent
4099+ | ResponseReasoningTextDoneEvent
40824100 | ResponseRefusalDeltaEvent
40834101 | ResponseRefusalDoneEvent
40844102 | ResponseTextDeltaEvent
@@ -4099,9 +4117,7 @@ export type ResponseStreamEvent =
40994117 | ResponseMcpListToolsFailedEvent
41004118 | ResponseMcpListToolsInProgressEvent
41014119 | ResponseOutputTextAnnotationAddedEvent
4102- | ResponseQueuedEvent
4103- | ResponseReasoningSummaryDeltaEvent
4104- | ResponseReasoningSummaryDoneEvent ;
4120+ | ResponseQueuedEvent ;
41054121
41064122/**
41074123 * Configuration options for a text response from the model. Can be plain text or
@@ -5148,12 +5164,12 @@ export declare namespace Responses {
51485164 type ResponsePrompt as ResponsePrompt ,
51495165 type ResponseQueuedEvent as ResponseQueuedEvent ,
51505166 type ResponseReasoningItem as ResponseReasoningItem ,
5151- type ResponseReasoningSummaryDeltaEvent as ResponseReasoningSummaryDeltaEvent ,
5152- type ResponseReasoningSummaryDoneEvent as ResponseReasoningSummaryDoneEvent ,
51535167 type ResponseReasoningSummaryPartAddedEvent as ResponseReasoningSummaryPartAddedEvent ,
51545168 type ResponseReasoningSummaryPartDoneEvent as ResponseReasoningSummaryPartDoneEvent ,
51555169 type ResponseReasoningSummaryTextDeltaEvent as ResponseReasoningSummaryTextDeltaEvent ,
51565170 type ResponseReasoningSummaryTextDoneEvent as ResponseReasoningSummaryTextDoneEvent ,
5171+ type ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent ,
5172+ type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent ,
51575173 type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent ,
51585174 type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent ,
51595175 type ResponseStatus as ResponseStatus ,
0 commit comments