Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Openai Openai python Response Reasoning Summary Text Done

From Leeroopedia
Knowledge Sources
Domains API_Types, Responses_API
Last Updated 2026-02-15 00:00 GMT

Overview

Concrete type for representing an event emitted when a reasoning summary text is fully completed during streaming, provided by the openai-python SDK.

Description

ResponseReasoningSummaryTextDoneEvent is a Pydantic model representing the response.reasoning_summary_text.done streaming event. It is emitted when the full text of a reasoning summary has been generated. The event provides the complete text of the summary, along with item_id, output_index, summary_index, and sequence_number for context.

Usage

Import this type when you need to capture the final, complete text of a reasoning summary part after streaming has finished delivering deltas.

Code Reference

Source Location

Signature

class ResponseReasoningSummaryTextDoneEvent(BaseModel):
    """Emitted when a reasoning summary text is completed."""

    item_id: str
    output_index: int
    sequence_number: int
    summary_index: int
    text: str
    type: Literal["response.reasoning_summary_text.done"]

Import

from openai.types.responses import ResponseReasoningSummaryTextDoneEvent

I/O Contract

Fields

Name Type Required Description
item_id str Yes The ID of the item this summary text is associated with.
output_index int Yes The index of the output item this summary text is associated with.
sequence_number int Yes The sequence number of this event.
summary_index int Yes The index of the summary part within the reasoning summary.
text str Yes The full text of the completed reasoning summary.
type Literal["response.reasoning_summary_text.done"] Yes The type of the event. Always response.reasoning_summary_text.done.

Usage Examples

import openai

client = openai.OpenAI()

stream = client.responses.create(
    model="o3-mini",
    input="Explain the halting problem.",
    stream=True,
)

for event in stream:
    if event.type == "response.reasoning_summary_text.done":
        print(f"Final summary [{event.summary_index}]: {event.text}")

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment