Skip to content

Commit 2026d53

Browse files
feat(api): manual updates
1 parent 29ce19f commit 2026d53

12 files changed

+97
-85
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-721e6ccaa72205ee14c71f8163129920464fb814b95d3df9567a9476bbd9b7fb.yml
3-
openapi_spec_hash: 2115413a21df8b5bf9e4552a74df4312
4-
config_hash: 9606bb315a193bfd8da0459040143242
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d6a16b25b969c3e5382e7d413de15bf83d5f7534d5c3ecce64d3a7e847418f9e.yml
3+
openapi_spec_hash: 0c0bcf4aee9ca2a948dd14b890dfe728
4+
config_hash: aeff9289bd7f8c8482e4d738c3c2fde1

api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,12 +792,12 @@ from openai.types.responses import (
792792
ResponsePrompt,
793793
ResponseQueuedEvent,
794794
ResponseReasoningItem,
795-
ResponseReasoningSummaryDeltaEvent,
796-
ResponseReasoningSummaryDoneEvent,
797795
ResponseReasoningSummaryPartAddedEvent,
798796
ResponseReasoningSummaryPartDoneEvent,
799797
ResponseReasoningSummaryTextDeltaEvent,
800798
ResponseReasoningSummaryTextDoneEvent,
799+
ResponseReasoningTextDeltaEvent,
800+
ResponseReasoningTextDoneEvent,
801801
ResponseRefusalDeltaEvent,
802802
ResponseRefusalDoneEvent,
803803
ResponseStatus,

src/openai/types/responses/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,24 +94,20 @@
9494
from .response_function_tool_call_param import ResponseFunctionToolCallParam as ResponseFunctionToolCallParam
9595
from .response_mcp_call_completed_event import ResponseMcpCallCompletedEvent as ResponseMcpCallCompletedEvent
9696
from .response_function_web_search_param import ResponseFunctionWebSearchParam as ResponseFunctionWebSearchParam
97+
from .response_reasoning_text_done_event import ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent
9798
from .response_code_interpreter_tool_call import ResponseCodeInterpreterToolCall as ResponseCodeInterpreterToolCall
9899
from .response_input_message_content_list import ResponseInputMessageContentList as ResponseInputMessageContentList
99100
from .response_mcp_call_in_progress_event import ResponseMcpCallInProgressEvent as ResponseMcpCallInProgressEvent
101+
from .response_reasoning_text_delta_event import ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent
100102
from .response_audio_transcript_done_event import ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent
101103
from .response_file_search_tool_call_param import ResponseFileSearchToolCallParam as ResponseFileSearchToolCallParam
102104
from .response_mcp_list_tools_failed_event import ResponseMcpListToolsFailedEvent as ResponseMcpListToolsFailedEvent
103105
from .response_audio_transcript_delta_event import (
104106
ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent,
105107
)
106-
from .response_reasoning_summary_done_event import (
107-
ResponseReasoningSummaryDoneEvent as ResponseReasoningSummaryDoneEvent,
108-
)
109108
from .response_mcp_call_arguments_done_event import (
110109
ResponseMcpCallArgumentsDoneEvent as ResponseMcpCallArgumentsDoneEvent,
111110
)
112-
from .response_reasoning_summary_delta_event import (
113-
ResponseReasoningSummaryDeltaEvent as ResponseReasoningSummaryDeltaEvent,
114-
)
115111
from .response_computer_tool_call_output_item import (
116112
ResponseComputerToolCallOutputItem as ResponseComputerToolCallOutputItem,
117113
)

src/openai/types/responses/response_reasoning_item.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,38 @@
55

66
from ..._models import BaseModel
77

8-
__all__ = ["ResponseReasoningItem", "Summary"]
8+
__all__ = ["ResponseReasoningItem", "Summary", "Content"]
99

1010

1111
class Summary(BaseModel):
1212
text: str
13-
"""
14-
A short summary of the reasoning used by the model when generating the response.
15-
"""
13+
"""A summary of the reasoning output from the model so far."""
1614

1715
type: Literal["summary_text"]
1816
"""The type of the object. Always `summary_text`."""
1917

2018

19+
class Content(BaseModel):
20+
text: str
21+
"""Reasoning text output from the model."""
22+
23+
type: Literal["reasoning_text"]
24+
"""The type of the object. Always `reasoning_text`."""
25+
26+
2127
class ResponseReasoningItem(BaseModel):
2228
id: str
2329
"""The unique identifier of the reasoning content."""
2430

2531
summary: List[Summary]
26-
"""Reasoning text contents."""
32+
"""Reasoning summary content."""
2733

2834
type: Literal["reasoning"]
2935
"""The type of the object. Always `reasoning`."""
3036

37+
content: Optional[List[Content]] = None
38+
"""Reasoning text content."""
39+
3140
encrypted_content: Optional[str] = None
3241
"""
3342
The encrypted content of the reasoning item - populated when a response is

src/openai/types/responses/response_reasoning_item_param.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,38 @@
55
from typing import Iterable, Optional
66
from typing_extensions import Literal, Required, TypedDict
77

8-
__all__ = ["ResponseReasoningItemParam", "Summary"]
8+
__all__ = ["ResponseReasoningItemParam", "Summary", "Content"]
99

1010

1111
class Summary(TypedDict, total=False):
1212
text: Required[str]
13-
"""
14-
A short summary of the reasoning used by the model when generating the response.
15-
"""
13+
"""A summary of the reasoning output from the model so far."""
1614

1715
type: Required[Literal["summary_text"]]
1816
"""The type of the object. Always `summary_text`."""
1917

2018

19+
class Content(TypedDict, total=False):
20+
text: Required[str]
21+
"""Reasoning text output from the model."""
22+
23+
type: Required[Literal["reasoning_text"]]
24+
"""The type of the object. Always `reasoning_text`."""
25+
26+
2127
class ResponseReasoningItemParam(TypedDict, total=False):
2228
id: Required[str]
2329
"""The unique identifier of the reasoning content."""
2430

2531
summary: Required[Iterable[Summary]]
26-
"""Reasoning text contents."""
32+
"""Reasoning summary content."""
2733

2834
type: Required[Literal["reasoning"]]
2935
"""The type of the object. Always `reasoning`."""
3036

37+
content: Iterable[Content]
38+
"""Reasoning text content."""
39+
3140
encrypted_content: Optional[str]
3241
"""
3342
The encrypted content of the reasoning item - populated when a response is

src/openai/types/responses/response_reasoning_summary_delta_event.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/openai/types/responses/response_reasoning_summary_done_event.py

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing_extensions import Literal
4+
5+
from ..._models import BaseModel
6+
7+
__all__ = ["ResponseReasoningTextDeltaEvent"]
8+
9+
10+
class ResponseReasoningTextDeltaEvent(BaseModel):
11+
content_index: int
12+
"""The index of the reasoning content part this delta is associated with."""
13+
14+
delta: str
15+
"""The text delta that was added to the reasoning content."""
16+
17+
item_id: str
18+
"""The ID of the item this reasoning text delta is associated with."""
19+
20+
output_index: int
21+
"""The index of the output item this reasoning text delta is associated with."""
22+
23+
sequence_number: int
24+
"""The sequence number of this event."""
25+
26+
type: Literal["response.reasoning_text.delta"]
27+
"""The type of the event. Always `response.reasoning_text.delta`."""
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing_extensions import Literal
4+
5+
from ..._models import BaseModel
6+
7+
__all__ = ["ResponseReasoningTextDoneEvent"]
8+
9+
10+
class ResponseReasoningTextDoneEvent(BaseModel):
11+
content_index: int
12+
"""The index of the reasoning content part."""
13+
14+
item_id: str
15+
"""The ID of the item this reasoning text is associated with."""
16+
17+
output_index: int
18+
"""The index of the output item this reasoning text is associated with."""
19+
20+
sequence_number: int
21+
"""The sequence number of this event."""
22+
23+
text: str
24+
"""The full text of the completed reasoning content."""
25+
26+
type: Literal["response.reasoning_text.done"]
27+
"""The type of the event. Always `response.reasoning_text.done`."""

src/openai/types/responses/response_stream_event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
from .response_output_item_added_event import ResponseOutputItemAddedEvent
2424
from .response_content_part_added_event import ResponseContentPartAddedEvent
2525
from .response_mcp_call_completed_event import ResponseMcpCallCompletedEvent
26+
from .response_reasoning_text_done_event import ResponseReasoningTextDoneEvent
2627
from .response_mcp_call_in_progress_event import ResponseMcpCallInProgressEvent
28+
from .response_reasoning_text_delta_event import ResponseReasoningTextDeltaEvent
2729
from .response_audio_transcript_done_event import ResponseAudioTranscriptDoneEvent
2830
from .response_mcp_list_tools_failed_event import ResponseMcpListToolsFailedEvent
2931
from .response_audio_transcript_delta_event import ResponseAudioTranscriptDeltaEvent
30-
from .response_reasoning_summary_done_event import ResponseReasoningSummaryDoneEvent
3132
from .response_mcp_call_arguments_done_event import ResponseMcpCallArgumentsDoneEvent
32-
from .response_reasoning_summary_delta_event import ResponseReasoningSummaryDeltaEvent
3333
from .response_image_gen_call_completed_event import ResponseImageGenCallCompletedEvent
3434
from .response_mcp_call_arguments_delta_event import ResponseMcpCallArgumentsDeltaEvent
3535
from .response_mcp_list_tools_completed_event import ResponseMcpListToolsCompletedEvent
@@ -88,6 +88,8 @@
8888
ResponseReasoningSummaryPartDoneEvent,
8989
ResponseReasoningSummaryTextDeltaEvent,
9090
ResponseReasoningSummaryTextDoneEvent,
91+
ResponseReasoningTextDeltaEvent,
92+
ResponseReasoningTextDoneEvent,
9193
ResponseRefusalDeltaEvent,
9294
ResponseRefusalDoneEvent,
9395
ResponseTextDeltaEvent,
@@ -109,8 +111,6 @@
109111
ResponseMcpListToolsInProgressEvent,
110112
ResponseOutputTextAnnotationAddedEvent,
111113
ResponseQueuedEvent,
112-
ResponseReasoningSummaryDeltaEvent,
113-
ResponseReasoningSummaryDoneEvent,
114114
],
115115
PropertyInfo(discriminator="type"),
116116
]

0 commit comments

Comments
 (0)