From c02959017f4f71bf69c8812ed522ff32ff193b71 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 22:25:12 +0000 Subject: [PATCH 1/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6758e4cf..9ce61676 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 34 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-b93c17faa52976d8e3be02251f4977f2c89a1c2bd89e913faffb3a7f6a53c231.yml -openapi_spec_hash: ea1ae484d9656349df4342a8f3db82f1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-2d5d5f305f93d156fe32fab5f46ada4514aeba6215fea99115aa17b3b6d2f9c9.yml +openapi_spec_hash: 964a5178dec5d5f4accf4dbf743853e3 config_hash: f6ec6016df1ff072b5b60cdf7b438361 From ad779b4ce6a9f21b4f69c88770269b404ac25818 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 22:57:44 +0000 Subject: [PATCH 2/4] feat(api): api update --- .stats.yml | 4 +-- src/agentex/types/task_message_content.py | 36 ++++++++++++++++--- .../types/task_message_content_param.py | 34 +++++++++++++++--- 3 files changed, 64 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9ce61676..153230de 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 34 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-2d5d5f305f93d156fe32fab5f46ada4514aeba6215fea99115aa17b3b6d2f9c9.yml -openapi_spec_hash: 964a5178dec5d5f4accf4dbf743853e3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-0f2236db4ff4adacf2e97ed9ad85269500786dbc4c6c83a2ac45b33fba43e259.yml +openapi_spec_hash: 43ad0cbb20696a241cdc83dd5f1366e2 config_hash: f6ec6016df1ff072b5b60cdf7b438361 diff --git a/src/agentex/types/task_message_content.py b/src/agentex/types/task_message_content.py index 126992b4..1d042525 100644 --- a/src/agentex/types/task_message_content.py +++ b/src/agentex/types/task_message_content.py @@ -1,16 +1,44 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Union -from typing_extensions import Annotated, TypeAlias +from typing import List, Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias from .._utils import PropertyInfo +from .._models import BaseModel from .data_content import DataContent from .text_content import TextContent +from .message_style import MessageStyle +from .message_author import MessageAuthor from .tool_request_content import ToolRequestContent from .tool_response_content import ToolResponseContent -__all__ = ["TaskMessageContent"] +__all__ = ["TaskMessageContent", "ReasoningContent"] + + +class ReasoningContent(BaseModel): + author: MessageAuthor + """ + The role of the messages author, in this case `system`, `user`, `assistant`, or + `tool`. + """ + + summary: List[str] + """A list of short reasoning summaries""" + + content: Optional[List[str]] = None + """The reasoning content or chain-of-thought text""" + + style: Optional[MessageStyle] = None + """The style of the message. + + This is used by the client to determine how to display the message. + """ + + type: Optional[Literal["reasoning"]] = None + """The type of the message, in this case `reasoning`.""" + TaskMessageContent: TypeAlias = Annotated[ - Union[TextContent, DataContent, ToolRequestContent, ToolResponseContent], PropertyInfo(discriminator="type") + Union[TextContent, ReasoningContent, DataContent, ToolRequestContent, ToolResponseContent], + PropertyInfo(discriminator="type"), ] diff --git a/src/agentex/types/task_message_content_param.py b/src/agentex/types/task_message_content_param.py index 6991c64e..77c1c03e 100644 --- a/src/agentex/types/task_message_content_param.py +++ b/src/agentex/types/task_message_content_param.py @@ -2,16 +2,42 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypeAlias +from typing import List, Union, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict +from .message_style import MessageStyle +from .message_author import MessageAuthor from .data_content_param import DataContentParam from .text_content_param import TextContentParam from .tool_request_content_param import ToolRequestContentParam from .tool_response_content_param import ToolResponseContentParam -__all__ = ["TaskMessageContentParam"] +__all__ = ["TaskMessageContentParam", "ReasoningContent"] + + +class ReasoningContent(TypedDict, total=False): + author: Required[MessageAuthor] + """ + The role of the messages author, in this case `system`, `user`, `assistant`, or + `tool`. + """ + + summary: Required[List[str]] + """A list of short reasoning summaries""" + + content: Optional[List[str]] + """The reasoning content or chain-of-thought text""" + + style: MessageStyle + """The style of the message. + + This is used by the client to determine how to display the message. + """ + + type: Literal["reasoning"] + """The type of the message, in this case `reasoning`.""" + TaskMessageContentParam: TypeAlias = Union[ - TextContentParam, DataContentParam, ToolRequestContentParam, ToolResponseContentParam + TextContentParam, ReasoningContent, DataContentParam, ToolRequestContentParam, ToolResponseContentParam ] From 9dc2f7511750884ec6754d91e6d27592f85b72e5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 22:59:08 +0000 Subject: [PATCH 3/4] feat(api): manual updates --- .stats.yml | 2 +- api.md | 1 + src/agentex/types/__init__.py | 2 ++ src/agentex/types/reasoning_content.py | 33 +++++++++++++++++ src/agentex/types/reasoning_content_param.py | 34 ++++++++++++++++++ src/agentex/types/task_message_content.py | 34 +++--------------- .../types/task_message_content_param.py | 35 +++---------------- 7 files changed, 80 insertions(+), 61 deletions(-) create mode 100644 src/agentex/types/reasoning_content.py create mode 100644 src/agentex/types/reasoning_content_param.py diff --git a/.stats.yml b/.stats.yml index 153230de..9614f3c1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 34 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-0f2236db4ff4adacf2e97ed9ad85269500786dbc4c6c83a2ac45b33fba43e259.yml openapi_spec_hash: 43ad0cbb20696a241cdc83dd5f1366e2 -config_hash: f6ec6016df1ff072b5b60cdf7b438361 +config_hash: c59262d25b94481ba4fe8f302e48e36d diff --git a/api.md b/api.md index 9c135dfa..e63cb04f 100644 --- a/api.md +++ b/api.md @@ -63,6 +63,7 @@ from agentex.types import ( DataContent, MessageAuthor, MessageStyle, + ReasoningContent, TaskMessage, TextContent, ToolRequestContent, diff --git a/src/agentex/types/__init__.py b/src/agentex/types/__init__.py index b502cb00..8ddda1c8 100644 --- a/src/agentex/types/__init__.py +++ b/src/agentex/types/__init__.py @@ -22,6 +22,7 @@ from .task_list_params import TaskListParams as TaskListParams from .agent_list_params import AgentListParams as AgentListParams from .event_list_params import EventListParams as EventListParams +from .reasoning_content import ReasoningContent as ReasoningContent from .state_list_params import StateListParams as StateListParams from .agent_rpc_response import AgentRpcResponse as AgentRpcResponse from .agent_task_tracker import AgentTaskTracker as AgentTaskTracker @@ -50,6 +51,7 @@ from .tool_response_content import ToolResponseContent as ToolResponseContent from .tracker_list_response import TrackerListResponse as TrackerListResponse from .tracker_update_params import TrackerUpdateParams as TrackerUpdateParams +from .reasoning_content_param import ReasoningContentParam as ReasoningContentParam from .agent_rpc_by_name_params import AgentRpcByNameParams as AgentRpcByNameParams from .task_message_content_param import TaskMessageContentParam as TaskMessageContentParam from .tool_request_content_param import ToolRequestContentParam as ToolRequestContentParam diff --git a/src/agentex/types/reasoning_content.py b/src/agentex/types/reasoning_content.py new file mode 100644 index 00000000..98b35aef --- /dev/null +++ b/src/agentex/types/reasoning_content.py @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from .._models import BaseModel +from .message_style import MessageStyle +from .message_author import MessageAuthor + +__all__ = ["ReasoningContent"] + + +class ReasoningContent(BaseModel): + author: MessageAuthor + """ + The role of the messages author, in this case `system`, `user`, `assistant`, or + `tool`. + """ + + summary: List[str] + """A list of short reasoning summaries""" + + content: Optional[List[str]] = None + """The reasoning content or chain-of-thought text""" + + style: Optional[MessageStyle] = None + """The style of the message. + + This is used by the client to determine how to display the message. + """ + + type: Optional[Literal["reasoning"]] = None + """The type of the message, in this case `reasoning`.""" diff --git a/src/agentex/types/reasoning_content_param.py b/src/agentex/types/reasoning_content_param.py new file mode 100644 index 00000000..f40a64c5 --- /dev/null +++ b/src/agentex/types/reasoning_content_param.py @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Optional +from typing_extensions import Literal, Required, TypedDict + +from .message_style import MessageStyle +from .message_author import MessageAuthor + +__all__ = ["ReasoningContentParam"] + + +class ReasoningContentParam(TypedDict, total=False): + author: Required[MessageAuthor] + """ + The role of the messages author, in this case `system`, `user`, `assistant`, or + `tool`. + """ + + summary: Required[List[str]] + """A list of short reasoning summaries""" + + content: Optional[List[str]] + """The reasoning content or chain-of-thought text""" + + style: MessageStyle + """The style of the message. + + This is used by the client to determine how to display the message. + """ + + type: Literal["reasoning"] + """The type of the message, in this case `reasoning`.""" diff --git a/src/agentex/types/task_message_content.py b/src/agentex/types/task_message_content.py index 1d042525..f180867b 100644 --- a/src/agentex/types/task_message_content.py +++ b/src/agentex/types/task_message_content.py @@ -1,42 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union, Optional -from typing_extensions import Literal, Annotated, TypeAlias +from typing import Union +from typing_extensions import Annotated, TypeAlias from .._utils import PropertyInfo -from .._models import BaseModel from .data_content import DataContent from .text_content import TextContent -from .message_style import MessageStyle -from .message_author import MessageAuthor +from .reasoning_content import ReasoningContent from .tool_request_content import ToolRequestContent from .tool_response_content import ToolResponseContent -__all__ = ["TaskMessageContent", "ReasoningContent"] - - -class ReasoningContent(BaseModel): - author: MessageAuthor - """ - The role of the messages author, in this case `system`, `user`, `assistant`, or - `tool`. - """ - - summary: List[str] - """A list of short reasoning summaries""" - - content: Optional[List[str]] = None - """The reasoning content or chain-of-thought text""" - - style: Optional[MessageStyle] = None - """The style of the message. - - This is used by the client to determine how to display the message. - """ - - type: Optional[Literal["reasoning"]] = None - """The type of the message, in this case `reasoning`.""" - +__all__ = ["TaskMessageContent"] TaskMessageContent: TypeAlias = Annotated[ Union[TextContent, ReasoningContent, DataContent, ToolRequestContent, ToolResponseContent], diff --git a/src/agentex/types/task_message_content_param.py b/src/agentex/types/task_message_content_param.py index 77c1c03e..6349e4e7 100644 --- a/src/agentex/types/task_message_content_param.py +++ b/src/agentex/types/task_message_content_param.py @@ -2,42 +2,17 @@ from __future__ import annotations -from typing import List, Union, Optional -from typing_extensions import Literal, Required, TypeAlias, TypedDict +from typing import Union +from typing_extensions import TypeAlias -from .message_style import MessageStyle -from .message_author import MessageAuthor from .data_content_param import DataContentParam from .text_content_param import TextContentParam +from .reasoning_content_param import ReasoningContentParam from .tool_request_content_param import ToolRequestContentParam from .tool_response_content_param import ToolResponseContentParam -__all__ = ["TaskMessageContentParam", "ReasoningContent"] - - -class ReasoningContent(TypedDict, total=False): - author: Required[MessageAuthor] - """ - The role of the messages author, in this case `system`, `user`, `assistant`, or - `tool`. - """ - - summary: Required[List[str]] - """A list of short reasoning summaries""" - - content: Optional[List[str]] - """The reasoning content or chain-of-thought text""" - - style: MessageStyle - """The style of the message. - - This is used by the client to determine how to display the message. - """ - - type: Literal["reasoning"] - """The type of the message, in this case `reasoning`.""" - +__all__ = ["TaskMessageContentParam"] TaskMessageContentParam: TypeAlias = Union[ - TextContentParam, ReasoningContent, DataContentParam, ToolRequestContentParam, ToolResponseContentParam + TextContentParam, ReasoningContentParam, DataContentParam, ToolRequestContentParam, ToolResponseContentParam ] From 98b59e8f71dfcfcaa4deeec1eda10deee8e568b5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 22:59:27 +0000 Subject: [PATCH 4/4] release: 0.3.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/agentex/_version.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 05994c50..6b7b74c5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.10" + ".": "0.3.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f817097..6f33d0ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.3.0 (2025-08-14) + +Full Changelog: [v0.2.10...v0.3.0](https://github.com/scaleapi/agentex-python/compare/v0.2.10...v0.3.0) + +### Features + +* **api:** api update ([ad779b4](https://github.com/scaleapi/agentex-python/commit/ad779b4ce6a9f21b4f69c88770269b404ac25818)) +* **api:** manual updates ([9dc2f75](https://github.com/scaleapi/agentex-python/commit/9dc2f7511750884ec6754d91e6d27592f85b72e5)) + ## 0.2.10 (2025-08-13) Full Changelog: [v0.2.9...v0.2.10](https://github.com/scaleapi/agentex-python/compare/v0.2.9...v0.2.10) diff --git a/pyproject.toml b/pyproject.toml index 8b349301..60be5118 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "agentex-sdk" -version = "0.2.10" +version = "0.3.0" description = "The official Python library for the agentex API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/agentex/_version.py b/src/agentex/_version.py index dc8fbba7..310ce27e 100644 --- a/src/agentex/_version.py +++ b/src/agentex/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "agentex" -__version__ = "0.2.10" # x-release-please-version +__version__ = "0.3.0" # x-release-please-version