|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import List, Union, Optional |
6 | | -from typing_extensions import Literal, Required, TypeAlias, TypedDict |
| 5 | +from typing import Union |
| 6 | +from typing_extensions import TypeAlias |
7 | 7 |
|
8 | | -from .message_style import MessageStyle |
9 | | -from .message_author import MessageAuthor |
10 | 8 | from .data_content_param import DataContentParam |
11 | 9 | from .text_content_param import TextContentParam |
| 10 | +from .reasoning_content_param import ReasoningContentParam |
12 | 11 | from .tool_request_content_param import ToolRequestContentParam |
13 | 12 | from .tool_response_content_param import ToolResponseContentParam |
14 | 13 |
|
15 | | -__all__ = ["TaskMessageContentParam", "ReasoningContent"] |
16 | | - |
17 | | - |
18 | | -class ReasoningContent(TypedDict, total=False): |
19 | | - author: Required[MessageAuthor] |
20 | | - """ |
21 | | - The role of the messages author, in this case `system`, `user`, `assistant`, or |
22 | | - `tool`. |
23 | | - """ |
24 | | - |
25 | | - summary: Required[List[str]] |
26 | | - """A list of short reasoning summaries""" |
27 | | - |
28 | | - content: Optional[List[str]] |
29 | | - """The reasoning content or chain-of-thought text""" |
30 | | - |
31 | | - style: MessageStyle |
32 | | - """The style of the message. |
33 | | -
|
34 | | - This is used by the client to determine how to display the message. |
35 | | - """ |
36 | | - |
37 | | - type: Literal["reasoning"] |
38 | | - """The type of the message, in this case `reasoning`.""" |
39 | | - |
| 14 | +__all__ = ["TaskMessageContentParam"] |
40 | 15 |
|
41 | 16 | TaskMessageContentParam: TypeAlias = Union[ |
42 | | - TextContentParam, ReasoningContent, DataContentParam, ToolRequestContentParam, ToolResponseContentParam |
| 17 | + TextContentParam, ReasoningContentParam, DataContentParam, ToolRequestContentParam, ToolResponseContentParam |
43 | 18 | ] |
0 commit comments