Skip to content
Merged
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"
}
6 changes: 3 additions & 3 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
config_hash: 2e4b423af3db79ebd8170c401ea9093a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-62a09183a027c64707ad1b9d7a5ccc66c8abf3965e6075282cb5ab72f742a2b3.yml
openapi_spec_hash: 47f43703822077a82e2edf82d4b7e0e5
config_hash: e9fb383df76f572ee9aefe7b876adc2f
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# 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))
* **api:** manual updates ([bbe3be3](https://github.com/scaleapi/agentex-python/commit/bbe3be30aa9fb8d7a677f0e9f0be4dd565563d6e))

## 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 README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Agentex Python API library

<!-- prettier-ignore -->
[![PyPI version](https://img.shields.io/pypi/v/agentex.svg?label=pypi%20(stable))](https://pypi.org/project/agentex/)
[![PyPI version](https://img.shields.io/pypi/v/agentex-sdk.svg?label=pypi%20(stable))](https://pypi.org/project/agentex-sdk/)

The Agentex Python library provides convenient access to the Agentex REST API from any Python 3.8+
application. The library includes type definitions for all request params and response fields,
Expand All @@ -21,7 +21,7 @@ pip install git+ssh://git@github.com/scaleapi/agentex-python.git
```

> [!NOTE]
> Once this package is [published to PyPI](https://www.stainless.com/docs/guides/publish), this will become: `pip install --pre agentex`
> Once this package is [published to PyPI](https://www.stainless.com/docs/guides/publish), this will become: `pip install --pre agentex-sdk`

## Usage

Expand Down Expand Up @@ -78,7 +78,7 @@ You can enable this by installing `aiohttp`:

```sh
# install from the production repo
pip install 'agentex[aiohttp] @ git+ssh://git@github.com/scaleapi/agentex-python.git'
pip install 'agentex-sdk[aiohttp] @ git+ssh://git@github.com/scaleapi/agentex-python.git'
```

Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
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
4 changes: 2 additions & 2 deletions 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"
name = "agentex-sdk"
version = "0.1.0-alpha.6"
description = "The official Python library for the agentex API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
16 changes: 8 additions & 8 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
aiohappyeyeballs==2.6.1
# via aiohttp
aiohttp==3.12.8
# via agentex
# via agentex-sdk
# via httpx-aiohttp
aiosignal==1.3.2
# via aiohttp
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via agentex
# via agentex-sdk
# via httpx
argcomplete==3.1.2
# via nox
Expand All @@ -37,7 +37,7 @@ dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
# via agentex
# via agentex-sdk
exceptiongroup==1.2.2
# via anyio
# via pytest
Expand All @@ -53,11 +53,11 @@ h11==0.16.0
httpcore==1.0.9
# via httpx
httpx==0.28.1
# via agentex
# via agentex-sdk
# via httpx-aiohttp
# via respx
httpx-aiohttp==0.1.8
# via agentex
# via agentex-sdk
idna==3.4
# via anyio
# via httpx
Expand Down Expand Up @@ -90,7 +90,7 @@ propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.10.3
# via agentex
# via agentex-sdk
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
Expand All @@ -113,14 +113,14 @@ setuptools==68.2.2
six==1.16.0
# via python-dateutil
sniffio==1.3.0
# via agentex
# via agentex-sdk
# via anyio
time-machine==2.9.0
tomli==2.0.2
# via mypy
# via pytest
typing-extensions==4.12.2
# via agentex
# via agentex-sdk
# via anyio
# via multidict
# via mypy
Expand Down
16 changes: 8 additions & 8 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
aiohappyeyeballs==2.6.1
# via aiohttp
aiohttp==3.12.8
# via agentex
# via agentex-sdk
# via httpx-aiohttp
aiosignal==1.3.2
# via aiohttp
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via agentex
# via agentex-sdk
# via httpx
async-timeout==5.0.1
# via aiohttp
Expand All @@ -30,7 +30,7 @@ certifi==2023.7.22
# via httpcore
# via httpx
distro==1.8.0
# via agentex
# via agentex-sdk
exceptiongroup==1.2.2
# via anyio
frozenlist==1.6.2
Expand All @@ -41,10 +41,10 @@ h11==0.16.0
httpcore==1.0.9
# via httpx
httpx==0.28.1
# via agentex
# via agentex-sdk
# via httpx-aiohttp
httpx-aiohttp==0.1.8
# via agentex
# via agentex-sdk
idna==3.4
# via anyio
# via httpx
Expand All @@ -56,14 +56,14 @@ propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.10.3
# via agentex
# via agentex-sdk
pydantic-core==2.27.1
# via pydantic
sniffio==1.3.0
# via agentex
# via agentex-sdk
# via anyio
typing-extensions==4.12.2
# via agentex
# via agentex-sdk
# via anyio
# via multidict
# via pydantic
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]
Loading
Loading