|
1 | 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
2 | 2 |
|
3 | | -from typing import Union |
4 | | -from typing_extensions import Annotated, TypeAlias |
| 3 | +from typing import Union, Optional |
| 4 | +from typing_extensions import Literal, Annotated, TypeAlias |
5 | 5 |
|
6 | 6 | from .._utils import PropertyInfo |
| 7 | +from .._models import BaseModel |
7 | 8 | from .data_delta import DataDelta |
8 | 9 | from .text_delta import TextDelta |
9 | 10 | from .tool_request_delta import ToolRequestDelta |
10 | 11 | from .tool_response_delta import ToolResponseDelta |
11 | 12 |
|
12 | | -__all__ = ["TaskMessageDelta"] |
| 13 | +__all__ = ["TaskMessageDelta", "ReasoningSummaryDelta", "ReasoningContentDelta"] |
| 14 | + |
| 15 | + |
| 16 | +class ReasoningSummaryDelta(BaseModel): |
| 17 | + summary_index: int |
| 18 | + |
| 19 | + summary_delta: Optional[str] = None |
| 20 | + |
| 21 | + type: Optional[Literal["reasoning_summary"]] = None |
| 22 | + |
| 23 | + |
| 24 | +class ReasoningContentDelta(BaseModel): |
| 25 | + content_index: int |
| 26 | + |
| 27 | + content_delta: Optional[str] = None |
| 28 | + |
| 29 | + type: Optional[Literal["reasoning_content"]] = None |
| 30 | + |
13 | 31 |
|
14 | 32 | TaskMessageDelta: TypeAlias = Annotated[ |
15 | | - Union[TextDelta, DataDelta, ToolRequestDelta, ToolResponseDelta], PropertyInfo(discriminator="type") |
| 33 | + Union[TextDelta, DataDelta, ToolRequestDelta, ToolResponseDelta, ReasoningSummaryDelta, ReasoningContentDelta], |
| 34 | + PropertyInfo(discriminator="type"), |
16 | 35 | ] |
0 commit comments