Skip to content

Commit 9dc2f75

Browse files
feat(api): manual updates
1 parent ad779b4 commit 9dc2f75

File tree

7 files changed

+80
-61
lines changed

7 files changed

+80
-61
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 34
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-0f2236db4ff4adacf2e97ed9ad85269500786dbc4c6c83a2ac45b33fba43e259.yml
33
openapi_spec_hash: 43ad0cbb20696a241cdc83dd5f1366e2
4-
config_hash: f6ec6016df1ff072b5b60cdf7b438361
4+
config_hash: c59262d25b94481ba4fe8f302e48e36d

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ from agentex.types import (
6363
DataContent,
6464
MessageAuthor,
6565
MessageStyle,
66+
ReasoningContent,
6667
TaskMessage,
6768
TextContent,
6869
ToolRequestContent,

src/agentex/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from .task_list_params import TaskListParams as TaskListParams
2323
from .agent_list_params import AgentListParams as AgentListParams
2424
from .event_list_params import EventListParams as EventListParams
25+
from .reasoning_content import ReasoningContent as ReasoningContent
2526
from .state_list_params import StateListParams as StateListParams
2627
from .agent_rpc_response import AgentRpcResponse as AgentRpcResponse
2728
from .agent_task_tracker import AgentTaskTracker as AgentTaskTracker
@@ -50,6 +51,7 @@
5051
from .tool_response_content import ToolResponseContent as ToolResponseContent
5152
from .tracker_list_response import TrackerListResponse as TrackerListResponse
5253
from .tracker_update_params import TrackerUpdateParams as TrackerUpdateParams
54+
from .reasoning_content_param import ReasoningContentParam as ReasoningContentParam
5355
from .agent_rpc_by_name_params import AgentRpcByNameParams as AgentRpcByNameParams
5456
from .task_message_content_param import TaskMessageContentParam as TaskMessageContentParam
5557
from .tool_request_content_param import ToolRequestContentParam as ToolRequestContentParam
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import List, Optional
4+
from typing_extensions import Literal
5+
6+
from .._models import BaseModel
7+
from .message_style import MessageStyle
8+
from .message_author import MessageAuthor
9+
10+
__all__ = ["ReasoningContent"]
11+
12+
13+
class ReasoningContent(BaseModel):
14+
author: MessageAuthor
15+
"""
16+
The role of the messages author, in this case `system`, `user`, `assistant`, or
17+
`tool`.
18+
"""
19+
20+
summary: List[str]
21+
"""A list of short reasoning summaries"""
22+
23+
content: Optional[List[str]] = None
24+
"""The reasoning content or chain-of-thought text"""
25+
26+
style: Optional[MessageStyle] = None
27+
"""The style of the message.
28+
29+
This is used by the client to determine how to display the message.
30+
"""
31+
32+
type: Optional[Literal["reasoning"]] = None
33+
"""The type of the message, in this case `reasoning`."""
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing import List, Optional
6+
from typing_extensions import Literal, Required, TypedDict
7+
8+
from .message_style import MessageStyle
9+
from .message_author import MessageAuthor
10+
11+
__all__ = ["ReasoningContentParam"]
12+
13+
14+
class ReasoningContentParam(TypedDict, total=False):
15+
author: Required[MessageAuthor]
16+
"""
17+
The role of the messages author, in this case `system`, `user`, `assistant`, or
18+
`tool`.
19+
"""
20+
21+
summary: Required[List[str]]
22+
"""A list of short reasoning summaries"""
23+
24+
content: Optional[List[str]]
25+
"""The reasoning content or chain-of-thought text"""
26+
27+
style: MessageStyle
28+
"""The style of the message.
29+
30+
This is used by the client to determine how to display the message.
31+
"""
32+
33+
type: Literal["reasoning"]
34+
"""The type of the message, in this case `reasoning`."""

src/agentex/types/task_message_content.py

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,16 @@
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

66
from .._utils import PropertyInfo
7-
from .._models import BaseModel
87
from .data_content import DataContent
98
from .text_content import TextContent
10-
from .message_style import MessageStyle
11-
from .message_author import MessageAuthor
9+
from .reasoning_content import ReasoningContent
1210
from .tool_request_content import ToolRequestContent
1311
from .tool_response_content import ToolResponseContent
1412

15-
__all__ = ["TaskMessageContent", "ReasoningContent"]
16-
17-
18-
class ReasoningContent(BaseModel):
19-
author: MessageAuthor
20-
"""
21-
The role of the messages author, in this case `system`, `user`, `assistant`, or
22-
`tool`.
23-
"""
24-
25-
summary: List[str]
26-
"""A list of short reasoning summaries"""
27-
28-
content: Optional[List[str]] = None
29-
"""The reasoning content or chain-of-thought text"""
30-
31-
style: Optional[MessageStyle] = None
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: Optional[Literal["reasoning"]] = None
38-
"""The type of the message, in this case `reasoning`."""
39-
13+
__all__ = ["TaskMessageContent"]
4014

4115
TaskMessageContent: TypeAlias = Annotated[
4216
Union[TextContent, ReasoningContent, DataContent, ToolRequestContent, ToolResponseContent],

src/agentex/types/task_message_content_param.py

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,17 @@
22

33
from __future__ import annotations
44

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
77

8-
from .message_style import MessageStyle
9-
from .message_author import MessageAuthor
108
from .data_content_param import DataContentParam
119
from .text_content_param import TextContentParam
10+
from .reasoning_content_param import ReasoningContentParam
1211
from .tool_request_content_param import ToolRequestContentParam
1312
from .tool_response_content_param import ToolResponseContentParam
1413

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"]
4015

4116
TaskMessageContentParam: TypeAlias = Union[
42-
TextContentParam, ReasoningContent, DataContentParam, ToolRequestContentParam, ToolResponseContentParam
17+
TextContentParam, ReasoningContentParam, DataContentParam, ToolRequestContentParam, ToolResponseContentParam
4318
]

0 commit comments

Comments
 (0)