11# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
3- from typing import List , Union , Optional
4- from typing_extensions import Literal , Annotated , TypeAlias
3+ from typing import Union
4+ from typing_extensions import Annotated , TypeAlias
55
66from ..._utils import PropertyInfo
7- from ..._models import BaseModel
87from .response_output_message import ResponseOutputMessage
8+ from .response_reasoning_item import ResponseReasoningItem
99from .response_computer_tool_call import ResponseComputerToolCall
1010from .response_function_tool_call import ResponseFunctionToolCall
1111from .response_function_web_search import ResponseFunctionWebSearch
1212from .response_file_search_tool_call import ResponseFileSearchToolCall
1313
14- __all__ = ["ResponseOutputItem" , "Reasoning" , "ReasoningContent" ]
15-
16-
17- class ReasoningContent (BaseModel ):
18- text : str
19- """
20- A short summary of the reasoning used by the model when generating the response.
21- """
22-
23- type : Literal ["reasoning_summary" ]
24- """The type of the object. Always `text`."""
25-
26-
27- class Reasoning (BaseModel ):
28- id : str
29- """The unique identifier of the reasoning content."""
30-
31- content : List [ReasoningContent ]
32- """Reasoning text contents."""
33-
34- type : Literal ["reasoning" ]
35- """The type of the object. Always `reasoning`."""
36-
37- status : Optional [Literal ["in_progress" , "completed" , "incomplete" ]] = None
38- """The status of the item.
39-
40- One of `in_progress`, `completed`, or `incomplete`. Populated when items are
41- returned via API.
42- """
43-
14+ __all__ = ["ResponseOutputItem" ]
4415
4516ResponseOutputItem : TypeAlias = Annotated [
4617 Union [
@@ -49,7 +20,7 @@ class Reasoning(BaseModel):
4920 ResponseFunctionToolCall ,
5021 ResponseFunctionWebSearch ,
5122 ResponseComputerToolCall ,
52- Reasoning ,
23+ ResponseReasoningItem ,
5324 ],
5425 PropertyInfo (discriminator = "type" ),
5526]
0 commit comments