Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.5"
".": "0.1.0-alpha.6"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 34
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-1d08fb2290b5310c91801d7575d356628d372fd5434e15d3b9cead48eadb893f.yml
openapi_spec_hash: c07c588fb8429fbf024189df62f20fa4
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-62a09183a027c64707ad1b9d7a5ccc66c8abf3965e6075282cb5ab72f742a2b3.yml
openapi_spec_hash: 47f43703822077a82e2edf82d4b7e0e5
config_hash: 2e4b423af3db79ebd8170c401ea9093a
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.1.0-alpha.6 (2025-07-23)

Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/scaleapi/agentex-python/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)

### Features

* **api:** api update ([af18034](https://github.com/scaleapi/agentex-python/commit/af18034e4173794ebf42eff688f26d64caca4e64))
* **api:** api update ([be9b603](https://github.com/scaleapi/agentex-python/commit/be9b60326817566d5c5edcbd7b7babb6db07e539))

## 0.1.0-alpha.5 (2025-07-23)

Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/scaleapi/agentex-python/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
Expand Down
6 changes: 3 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ Methods:
Types:

```python
from agentex.types import Task, TaskListResponse
from agentex.types import Task, TaskListResponse, TaskDeleteResponse, TaskDeleteByNameResponse
```

Methods:

- <code title="get /tasks/{task_id}">client.tasks.<a href="./src/agentex/resources/tasks.py">retrieve</a>(task_id) -> <a href="./src/agentex/types/task.py">Task</a></code>
- <code title="get /tasks">client.tasks.<a href="./src/agentex/resources/tasks.py">list</a>() -> <a href="./src/agentex/types/task_list_response.py">TaskListResponse</a></code>
- <code title="delete /tasks/{task_id}">client.tasks.<a href="./src/agentex/resources/tasks.py">delete</a>(task_id) -> <a href="./src/agentex/types/task.py">Task</a></code>
- <code title="delete /tasks/name/{task_name}">client.tasks.<a href="./src/agentex/resources/tasks.py">delete_by_name</a>(task_name) -> <a href="./src/agentex/types/task.py">Task</a></code>
- <code title="delete /tasks/{task_id}">client.tasks.<a href="./src/agentex/resources/tasks.py">delete</a>(task_id) -> <a href="./src/agentex/types/task_delete_response.py">TaskDeleteResponse</a></code>
- <code title="delete /tasks/name/{task_name}">client.tasks.<a href="./src/agentex/resources/tasks.py">delete_by_name</a>(task_name) -> <a href="./src/agentex/types/task_delete_by_name_response.py">TaskDeleteByNameResponse</a></code>
- <code title="get /tasks/name/{task_name}">client.tasks.<a href="./src/agentex/resources/tasks.py">retrieve_by_name</a>(task_name) -> <a href="./src/agentex/types/task.py">Task</a></code>
- <code title="get /tasks/{task_id}/stream">client.tasks.<a href="./src/agentex/resources/tasks.py">stream_events</a>(task_id) -> object</code>
- <code title="get /tasks/name/{task_name}/stream">client.tasks.<a href="./src/agentex/resources/tasks.py">stream_events_by_name</a>(task_name) -> object</code>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "agentex"
version = "0.1.0-alpha.5"
version = "0.1.0-alpha.6"
description = "The official Python library for the agentex API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/agentex/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "agentex"
__version__ = "0.1.0-alpha.5" # x-release-please-version
__version__ = "0.1.0-alpha.6" # x-release-please-version
18 changes: 10 additions & 8 deletions src/agentex/resources/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from ..types.task import Task
from .._base_client import make_request_options
from ..types.task_list_response import TaskListResponse
from ..types.task_delete_response import TaskDeleteResponse
from ..types.task_delete_by_name_response import TaskDeleteByNameResponse

__all__ = ["TasksResource", "AsyncTasksResource"]

Expand Down Expand Up @@ -103,7 +105,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Task:
) -> TaskDeleteResponse:
"""
Delete a task by its unique ID.

Expand All @@ -123,7 +125,7 @@ def delete(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=Task,
cast_to=TaskDeleteResponse,
)

def delete_by_name(
Expand All @@ -136,7 +138,7 @@ def delete_by_name(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Task:
) -> TaskDeleteByNameResponse:
"""
Delete a task by its unique name.

Expand All @@ -156,7 +158,7 @@ def delete_by_name(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=Task,
cast_to=TaskDeleteByNameResponse,
)

def retrieve_by_name(
Expand Down Expand Up @@ -345,7 +347,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Task:
) -> TaskDeleteResponse:
"""
Delete a task by its unique ID.

Expand All @@ -365,7 +367,7 @@ async def delete(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=Task,
cast_to=TaskDeleteResponse,
)

async def delete_by_name(
Expand All @@ -378,7 +380,7 @@ async def delete_by_name(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Task:
) -> TaskDeleteByNameResponse:
"""
Delete a task by its unique name.

Expand All @@ -398,7 +400,7 @@ async def delete_by_name(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=Task,
cast_to=TaskDeleteByNameResponse,
)

async def retrieve_by_name(
Expand Down
2 changes: 2 additions & 0 deletions src/agentex/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from .state_update_params import StateUpdateParams as StateUpdateParams
from .tool_response_delta import ToolResponseDelta as ToolResponseDelta
from .tracker_list_params import TrackerListParams as TrackerListParams
from .task_delete_response import TaskDeleteResponse as TaskDeleteResponse
from .task_message_content import TaskMessageContent as TaskMessageContent
from .tool_request_content import ToolRequestContent as ToolRequestContent
from .message_create_params import MessageCreateParams as MessageCreateParams
Expand All @@ -52,3 +53,4 @@
from .task_message_content_param import TaskMessageContentParam as TaskMessageContentParam
from .tool_request_content_param import ToolRequestContentParam as ToolRequestContentParam
from .tool_response_content_param import ToolResponseContentParam as ToolResponseContentParam
from .task_delete_by_name_response import TaskDeleteByNameResponse as TaskDeleteByNameResponse
8 changes: 8 additions & 0 deletions src/agentex/types/task_delete_by_name_response.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict
from typing_extensions import TypeAlias

__all__ = ["TaskDeleteByNameResponse"]

TaskDeleteByNameResponse: TypeAlias = Dict[str, str]
8 changes: 8 additions & 0 deletions src/agentex/types/task_delete_response.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict
from typing_extensions import TypeAlias

__all__ = ["TaskDeleteResponse"]

TaskDeleteResponse: TypeAlias = Dict[str, str]
26 changes: 13 additions & 13 deletions tests/api_resources/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from agentex import Agentex, AsyncAgentex
from tests.utils import assert_matches_type
from agentex.types import Task, TaskListResponse
from agentex.types import Task, TaskListResponse, TaskDeleteResponse, TaskDeleteByNameResponse

base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")

Expand Down Expand Up @@ -93,7 +93,7 @@ def test_method_delete(self, client: Agentex) -> None:
task = client.tasks.delete(
"task_id",
)
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -105,7 +105,7 @@ def test_raw_response_delete(self, client: Agentex) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
task = response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -117,7 +117,7 @@ def test_streaming_response_delete(self, client: Agentex) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

task = response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteResponse, task, path=["response"])

assert cast(Any, response.is_closed) is True

Expand All @@ -135,7 +135,7 @@ def test_method_delete_by_name(self, client: Agentex) -> None:
task = client.tasks.delete_by_name(
"task_name",
)
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteByNameResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -147,7 +147,7 @@ def test_raw_response_delete_by_name(self, client: Agentex) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
task = response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteByNameResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -159,7 +159,7 @@ def test_streaming_response_delete_by_name(self, client: Agentex) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

task = response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteByNameResponse, task, path=["response"])

assert cast(Any, response.is_closed) is True

Expand Down Expand Up @@ -377,7 +377,7 @@ async def test_method_delete(self, async_client: AsyncAgentex) -> None:
task = await async_client.tasks.delete(
"task_id",
)
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -389,7 +389,7 @@ async def test_raw_response_delete(self, async_client: AsyncAgentex) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
task = await response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -401,7 +401,7 @@ async def test_streaming_response_delete(self, async_client: AsyncAgentex) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

task = await response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteResponse, task, path=["response"])

assert cast(Any, response.is_closed) is True

Expand All @@ -419,7 +419,7 @@ async def test_method_delete_by_name(self, async_client: AsyncAgentex) -> None:
task = await async_client.tasks.delete_by_name(
"task_name",
)
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteByNameResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -431,7 +431,7 @@ async def test_raw_response_delete_by_name(self, async_client: AsyncAgentex) ->
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
task = await response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteByNameResponse, task, path=["response"])

@pytest.mark.skip()
@parametrize
Expand All @@ -443,7 +443,7 @@ async def test_streaming_response_delete_by_name(self, async_client: AsyncAgente
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

task = await response.parse()
assert_matches_type(Task, task, path=["response"])
assert_matches_type(TaskDeleteByNameResponse, task, path=["response"])

assert cast(Any, response.is_closed) is True

Expand Down
Loading