Skip to content

Commit 9e129ce

Browse files
authored
Merge pull request #26 from scaleapi/release-please--branches--main--changes--next
release: 0.2.0
2 parents 8aa2475 + c335b32 commit 9e129ce

File tree

12 files changed

+109
-47
lines changed

12 files changed

+109
-47
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.prism.log
2-
.vscode
32
_dev
43

54
__pycache__

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.1"
2+
".": "0.2.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 34
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-62a09183a027c64707ad1b9d7a5ccc66c8abf3965e6075282cb5ab72f742a2b3.yml
3-
openapi_spec_hash: 47f43703822077a82e2edf82d4b7e0e5
4-
config_hash: 8d5db979856e35045ae2cdc248ddae47
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-782d59cf134b51ddd5058ae6e1630057093a6034b1d90663ab67836802b67cc6.yml
3+
openapi_spec_hash: 3356926852d5d095d572b4fdce242836
4+
config_hash: 7c1f6794a184ee175dd94f2f7c2b496b

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.analysis.importFormat": "relative",
3+
}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.2.0 (2025-07-25)
4+
5+
Full Changelog: [v0.1.1...v0.2.0](https://github.com/scaleapi/agentex-python/compare/v0.1.1...v0.2.0)
6+
7+
### Features
8+
9+
* **api:** update typescript sdk with big changes ([2c75d64](https://github.com/scaleapi/agentex-python/commit/2c75d642348df727505778c347efa568930ea4f0))
10+
11+
12+
### Chores
13+
14+
* **project:** add settings file for vscode ([0f926cc](https://github.com/scaleapi/agentex-python/commit/0f926cce7df375de33627f8212caacf64f89b1ed))
15+
316
## 0.1.1 (2025-07-24)
417

518
Full Changelog: [v0.1.0...v0.1.1](https://github.com/scaleapi/agentex-python/compare/v0.1.0...v0.1.1)

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Types:
66
from agentex.types import (
77
AcpType,
88
Agent,
9-
AgentRpcParams,
109
AgentRpcRequest,
1110
AgentRpcResponse,
1211
AgentRpcResult,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentex-sdk"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
description = "The official Python library for the agentex API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/agentex/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "agentex"
4-
__version__ = "0.1.1" # x-release-please-version
4+
__version__ = "0.2.0" # x-release-please-version

src/agentex/resources/agents.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import httpx
99

10-
from ..types import AgentRpcParams, agent_rpc_params, agent_list_params, agent_rpc_by_name_params
10+
from ..types import agent_rpc_params, agent_list_params, agent_rpc_by_name_params
1111
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1212
from .._utils import maybe_transform, async_maybe_transform
1313
from .._compat import cached_property
@@ -20,7 +20,6 @@
2020
)
2121
from ..types.agent import Agent
2222
from .._base_client import make_request_options
23-
from ..types.agent_rpc_params import AgentRpcParams
2423
from ..types.agent_rpc_response import AgentRpcResponse
2524
from ..types.agent_list_response import AgentListResponse
2625

@@ -221,7 +220,7 @@ def rpc(
221220
agent_id: str,
222221
*,
223222
method: Literal["event/send", "task/create", "message/send", "task/cancel"],
224-
params: AgentRpcParams,
223+
params: agent_rpc_params.Params,
225224
id: Union[int, str, None] | NotGiven = NOT_GIVEN,
226225
jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN,
227226
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -269,7 +268,7 @@ def rpc_by_name(
269268
agent_name: str,
270269
*,
271270
method: Literal["event/send", "task/create", "message/send", "task/cancel"],
272-
params: AgentRpcParams,
271+
params: agent_rpc_by_name_params.Params,
273272
id: Union[int, str, None] | NotGiven = NOT_GIVEN,
274273
jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN,
275274
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -507,7 +506,7 @@ async def rpc(
507506
agent_id: str,
508507
*,
509508
method: Literal["event/send", "task/create", "message/send", "task/cancel"],
510-
params: AgentRpcParams,
509+
params: agent_rpc_params.Params,
511510
id: Union[int, str, None] | NotGiven = NOT_GIVEN,
512511
jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN,
513512
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -555,7 +554,7 @@ async def rpc_by_name(
555554
agent_name: str,
556555
*,
557556
method: Literal["event/send", "task/create", "message/send", "task/cancel"],
558-
params: AgentRpcParams,
557+
params: agent_rpc_by_name_params.Params,
559558
id: Union[int, str, None] | NotGiven = NOT_GIVEN,
560559
jsonrpc: Literal["2.0"] | NotGiven = NOT_GIVEN,
561560
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/agentex/types/agent_rpc_by_name_params.py

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,70 @@
22

33
from __future__ import annotations
44

5-
from typing import Union
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict, Union, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8-
from .agent_rpc_params import AgentRpcParams
8+
from .task_message_content_param import TaskMessageContentParam
99

10-
__all__ = ["AgentRpcByNameParams"]
10+
__all__ = [
11+
"AgentRpcByNameParams",
12+
"Params",
13+
"ParamsCreateTaskRequest",
14+
"ParamsCancelTaskRequest",
15+
"ParamsSendMessageRequest",
16+
"ParamsSendEventRequest",
17+
]
1118

1219

1320
class AgentRpcByNameParams(TypedDict, total=False):
1421
method: Required[Literal["event/send", "task/create", "message/send", "task/cancel"]]
1522

16-
params: Required[AgentRpcParams]
23+
params: Required[Params]
1724
"""The parameters for the agent RPC request"""
1825

1926
id: Union[int, str, None]
2027

2128
jsonrpc: Literal["2.0"]
29+
30+
31+
class ParamsCreateTaskRequest(TypedDict, total=False):
32+
name: Optional[str]
33+
"""The name of the task to create"""
34+
35+
params: Optional[Dict[str, object]]
36+
"""The parameters for the task"""
37+
38+
39+
class ParamsCancelTaskRequest(TypedDict, total=False):
40+
task_id: Optional[str]
41+
"""The ID of the task to cancel. Either this or task_name must be provided."""
42+
43+
task_name: Optional[str]
44+
"""The name of the task to cancel. Either this or task_id must be provided."""
45+
46+
47+
class ParamsSendMessageRequest(TypedDict, total=False):
48+
content: Required[TaskMessageContentParam]
49+
"""The message that was sent to the agent"""
50+
51+
stream: bool
52+
"""Whether to stream the response message back to the client"""
53+
54+
task_id: Optional[str]
55+
"""The ID of the task that the message was sent to"""
56+
57+
58+
class ParamsSendEventRequest(TypedDict, total=False):
59+
content: Optional[TaskMessageContentParam]
60+
"""The content to send to the event"""
61+
62+
task_id: Optional[str]
63+
"""The ID of the task that the event was sent to"""
64+
65+
task_name: Optional[str]
66+
"""The name of the task that the event was sent to"""
67+
68+
69+
Params: TypeAlias = Union[
70+
ParamsCreateTaskRequest, ParamsCancelTaskRequest, ParamsSendMessageRequest, ParamsSendEventRequest
71+
]

0 commit comments

Comments
 (0)