diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8d63a17d..170d70a9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.26" + ".": "0.4.27" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a4548297..9b68d1bc 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-c34c0577d9716c22554633ecb41d091675248d1385e9d1cc7c19479d55b56cb1.yml -openapi_spec_hash: 3daaeab87b12b271ba2ee39e7dc166f2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-6803f43832a4ba37348dfc1daefe5f60f2472b76c73c286257ca370248d64e75.yml +openapi_spec_hash: 44d9bed4803ac9f98419df9e0ad1c485 config_hash: 6481ea6b42040f435dedcb00a98f35f8 diff --git a/CHANGELOG.md b/CHANGELOG.md index bb1c0391..9579fd33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.4.27 (2025-10-27) + +Full Changelog: [v0.4.26...v0.4.27](https://github.com/scaleapi/agentex-python/compare/v0.4.26...v0.4.27) + +### Features + +* **api:** api update ([f5e4fd2](https://github.com/scaleapi/agentex-python/commit/f5e4fd2f2fbb2c7e67e51795fba1f0b2e13048de)) + ## 0.4.26 (2025-10-21) Full Changelog: [v0.4.25...v0.4.26](https://github.com/scaleapi/agentex-python/compare/v0.4.25...v0.4.26) diff --git a/pyproject.toml b/pyproject.toml index 8797415c..58266b6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "agentex-sdk" -version = "0.4.26" +version = "0.4.27" 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 0b1244ab..8c2cf0d1 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.4.26" # x-release-please-version +__version__ = "0.4.27" # x-release-please-version diff --git a/src/agentex/resources/agents.py b/src/agentex/resources/agents.py index 781feabd..9f4cffee 100644 --- a/src/agentex/resources/agents.py +++ b/src/agentex/resources/agents.py @@ -92,6 +92,8 @@ def retrieve( def list( self, *, + limit: int | Omit = omit, + page_number: int | Omit = omit, task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -104,6 +106,10 @@ def list( List all registered agents, optionally filtered by query parameters. Args: + limit: Limit + + page_number: Page number + task_id: Task ID extra_headers: Send extra headers @@ -121,7 +127,14 @@ def list( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform({"task_id": task_id}, agent_list_params.AgentListParams), + query=maybe_transform( + { + "limit": limit, + "page_number": page_number, + "task_id": task_id, + }, + agent_list_params.AgentListParams, + ), ), cast_to=AgentListResponse, ) @@ -639,6 +652,8 @@ async def retrieve( async def list( self, *, + limit: int | Omit = omit, + page_number: int | Omit = omit, task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -651,6 +666,10 @@ async def list( List all registered agents, optionally filtered by query parameters. Args: + limit: Limit + + page_number: Page number + task_id: Task ID extra_headers: Send extra headers @@ -668,7 +687,14 @@ async def list( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=await async_maybe_transform({"task_id": task_id}, agent_list_params.AgentListParams), + query=await async_maybe_transform( + { + "limit": limit, + "page_number": page_number, + "task_id": task_id, + }, + agent_list_params.AgentListParams, + ), ), cast_to=AgentListResponse, ) diff --git a/src/agentex/resources/messages/messages.py b/src/agentex/resources/messages/messages.py index a3b856d9..08ebbbd1 100644 --- a/src/agentex/resources/messages/messages.py +++ b/src/agentex/resources/messages/messages.py @@ -180,7 +180,8 @@ def list( self, *, task_id: str, - limit: Optional[int] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -213,6 +214,7 @@ def list( { "task_id": task_id, "limit": limit, + "page_number": page_number, }, message_list_params.MessageListParams, ), @@ -367,7 +369,8 @@ async def list( self, *, task_id: str, - limit: Optional[int] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -400,6 +403,7 @@ async def list( { "task_id": task_id, "limit": limit, + "page_number": page_number, }, message_list_params.MessageListParams, ), diff --git a/src/agentex/resources/spans.py b/src/agentex/resources/spans.py index d88ed9e7..b896c74a 100644 --- a/src/agentex/resources/spans.py +++ b/src/agentex/resources/spans.py @@ -222,6 +222,8 @@ def update( def list( self, *, + limit: int | Omit = omit, + page_number: int | Omit = omit, trace_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -249,7 +251,14 @@ def list( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform({"trace_id": trace_id}, span_list_params.SpanListParams), + query=maybe_transform( + { + "limit": limit, + "page_number": page_number, + "trace_id": trace_id, + }, + span_list_params.SpanListParams, + ), ), cast_to=SpanListResponse, ) @@ -452,6 +461,8 @@ async def update( async def list( self, *, + limit: int | Omit = omit, + page_number: int | Omit = omit, trace_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -479,7 +490,14 @@ async def list( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=await async_maybe_transform({"trace_id": trace_id}, span_list_params.SpanListParams), + query=await async_maybe_transform( + { + "limit": limit, + "page_number": page_number, + "trace_id": trace_id, + }, + span_list_params.SpanListParams, + ), ), cast_to=SpanListResponse, ) diff --git a/src/agentex/resources/states.py b/src/agentex/resources/states.py index 3100adba..d98c2ddc 100644 --- a/src/agentex/resources/states.py +++ b/src/agentex/resources/states.py @@ -166,6 +166,8 @@ def list( self, *, agent_id: Optional[str] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -180,6 +182,10 @@ def list( Args: agent_id: Agent ID + limit: Limit + + page_number: Page number + task_id: Task ID extra_headers: Send extra headers @@ -200,6 +206,8 @@ def list( query=maybe_transform( { "agent_id": agent_id, + "limit": limit, + "page_number": page_number, "task_id": task_id, }, state_list_params.StateListParams, @@ -384,6 +392,8 @@ async def list( self, *, agent_id: Optional[str] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -398,6 +408,10 @@ async def list( Args: agent_id: Agent ID + limit: Limit + + page_number: Page number + task_id: Task ID extra_headers: Send extra headers @@ -418,6 +432,8 @@ async def list( query=await async_maybe_transform( { "agent_id": agent_id, + "limit": limit, + "page_number": page_number, "task_id": task_id, }, state_list_params.StateListParams, diff --git a/src/agentex/resources/tasks.py b/src/agentex/resources/tasks.py index 0a12e8c3..5d0547cd 100644 --- a/src/agentex/resources/tasks.py +++ b/src/agentex/resources/tasks.py @@ -84,6 +84,8 @@ def list( *, agent_id: Optional[str] | Omit = omit, agent_name: Optional[str] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -114,6 +116,8 @@ def list( { "agent_id": agent_id, "agent_name": agent_name, + "limit": limit, + "page_number": page_number, }, task_list_params.TaskListParams, ), @@ -349,6 +353,8 @@ async def list( *, agent_id: Optional[str] | Omit = omit, agent_name: Optional[str] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -379,6 +385,8 @@ async def list( { "agent_id": agent_id, "agent_name": agent_name, + "limit": limit, + "page_number": page_number, }, task_list_params.TaskListParams, ), diff --git a/src/agentex/resources/tracker.py b/src/agentex/resources/tracker.py index ddaf573a..11bec36f 100644 --- a/src/agentex/resources/tracker.py +++ b/src/agentex/resources/tracker.py @@ -131,6 +131,8 @@ def list( self, *, agent_id: Optional[str] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -145,6 +147,10 @@ def list( Args: agent_id: Agent ID + limit: Limit + + page_number: Page number + task_id: Task ID extra_headers: Send extra headers @@ -165,6 +171,8 @@ def list( query=maybe_transform( { "agent_id": agent_id, + "limit": limit, + "page_number": page_number, "task_id": task_id, }, tracker_list_params.TrackerListParams, @@ -281,6 +289,8 @@ async def list( self, *, agent_id: Optional[str] | Omit = omit, + limit: int | Omit = omit, + page_number: int | Omit = omit, task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -295,6 +305,10 @@ async def list( Args: agent_id: Agent ID + limit: Limit + + page_number: Page number + task_id: Task ID extra_headers: Send extra headers @@ -315,6 +329,8 @@ async def list( query=await async_maybe_transform( { "agent_id": agent_id, + "limit": limit, + "page_number": page_number, "task_id": task_id, }, tracker_list_params.TrackerListParams, diff --git a/src/agentex/types/agent_list_params.py b/src/agentex/types/agent_list_params.py index b432174a..a724de35 100644 --- a/src/agentex/types/agent_list_params.py +++ b/src/agentex/types/agent_list_params.py @@ -9,5 +9,11 @@ class AgentListParams(TypedDict, total=False): + limit: int + """Limit""" + + page_number: int + """Page number""" + task_id: Optional[str] """Task ID""" diff --git a/src/agentex/types/message_list_params.py b/src/agentex/types/message_list_params.py index 4911bfa9..977972e3 100644 --- a/src/agentex/types/message_list_params.py +++ b/src/agentex/types/message_list_params.py @@ -2,7 +2,6 @@ from __future__ import annotations -from typing import Optional from typing_extensions import Required, TypedDict __all__ = ["MessageListParams"] @@ -12,4 +11,6 @@ class MessageListParams(TypedDict, total=False): task_id: Required[str] """The task ID""" - limit: Optional[int] + limit: int + + page_number: int diff --git a/src/agentex/types/span_list_params.py b/src/agentex/types/span_list_params.py index 35218965..fc9280b0 100644 --- a/src/agentex/types/span_list_params.py +++ b/src/agentex/types/span_list_params.py @@ -9,4 +9,8 @@ class SpanListParams(TypedDict, total=False): + limit: int + + page_number: int + trace_id: Optional[str] diff --git a/src/agentex/types/state_list_params.py b/src/agentex/types/state_list_params.py index 6034d345..9a52c152 100644 --- a/src/agentex/types/state_list_params.py +++ b/src/agentex/types/state_list_params.py @@ -12,5 +12,11 @@ class StateListParams(TypedDict, total=False): agent_id: Optional[str] """Agent ID""" + limit: int + """Limit""" + + page_number: int + """Page number""" + task_id: Optional[str] """Task ID""" diff --git a/src/agentex/types/task_list_params.py b/src/agentex/types/task_list_params.py index f8bc3364..94be17f9 100644 --- a/src/agentex/types/task_list_params.py +++ b/src/agentex/types/task_list_params.py @@ -12,3 +12,7 @@ class TaskListParams(TypedDict, total=False): agent_id: Optional[str] agent_name: Optional[str] + + limit: int + + page_number: int diff --git a/src/agentex/types/tracker_list_params.py b/src/agentex/types/tracker_list_params.py index 47b4da7b..e90dbbb4 100644 --- a/src/agentex/types/tracker_list_params.py +++ b/src/agentex/types/tracker_list_params.py @@ -12,5 +12,11 @@ class TrackerListParams(TypedDict, total=False): agent_id: Optional[str] """Agent ID""" + limit: int + """Limit""" + + page_number: int + """Page number""" + task_id: Optional[str] """Task ID""" diff --git a/tests/api_resources/test_agents.py b/tests/api_resources/test_agents.py index 4f2c58d0..eec3eaa1 100644 --- a/tests/api_resources/test_agents.py +++ b/tests/api_resources/test_agents.py @@ -75,6 +75,8 @@ def test_method_list(self, client: Agentex) -> None: @parametrize def test_method_list_with_all_params(self, client: Agentex) -> None: agent = client.agents.list( + limit=1, + page_number=1, task_id="task_id", ) assert_matches_type(AgentListResponse, agent, path=["response"]) @@ -415,6 +417,8 @@ async def test_method_list(self, async_client: AsyncAgentex) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncAgentex) -> None: agent = await async_client.agents.list( + limit=1, + page_number=1, task_id="task_id", ) assert_matches_type(AgentListResponse, agent, path=["response"]) diff --git a/tests/api_resources/test_messages.py b/tests/api_resources/test_messages.py index 0c53d9b0..8a8e57c9 100644 --- a/tests/api_resources/test_messages.py +++ b/tests/api_resources/test_messages.py @@ -241,6 +241,7 @@ def test_method_list_with_all_params(self, client: Agentex) -> None: message = client.messages.list( task_id="task_id", limit=0, + page_number=0, ) assert_matches_type(MessageListResponse, message, path=["response"]) @@ -496,6 +497,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncAgentex) -> message = await async_client.messages.list( task_id="task_id", limit=0, + page_number=0, ) assert_matches_type(MessageListResponse, message, path=["response"]) diff --git a/tests/api_resources/test_spans.py b/tests/api_resources/test_spans.py index 3617debf..9e680966 100644 --- a/tests/api_resources/test_spans.py +++ b/tests/api_resources/test_spans.py @@ -185,6 +185,8 @@ def test_method_list(self, client: Agentex) -> None: @parametrize def test_method_list_with_all_params(self, client: Agentex) -> None: span = client.spans.list( + limit=0, + page_number=0, trace_id="trace_id", ) assert_matches_type(SpanListResponse, span, path=["response"]) @@ -383,6 +385,8 @@ async def test_method_list(self, async_client: AsyncAgentex) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncAgentex) -> None: span = await async_client.spans.list( + limit=0, + page_number=0, trace_id="trace_id", ) assert_matches_type(SpanListResponse, span, path=["response"]) diff --git a/tests/api_resources/test_states.py b/tests/api_resources/test_states.py index a1bc41d2..5ed19e8a 100644 --- a/tests/api_resources/test_states.py +++ b/tests/api_resources/test_states.py @@ -165,6 +165,8 @@ def test_method_list(self, client: Agentex) -> None: def test_method_list_with_all_params(self, client: Agentex) -> None: state = client.states.list( agent_id="agent_id", + limit=1, + page_number=1, task_id="task_id", ) assert_matches_type(StateListResponse, state, path=["response"]) @@ -386,6 +388,8 @@ async def test_method_list(self, async_client: AsyncAgentex) -> None: async def test_method_list_with_all_params(self, async_client: AsyncAgentex) -> None: state = await async_client.states.list( agent_id="agent_id", + limit=1, + page_number=1, task_id="task_id", ) assert_matches_type(StateListResponse, state, path=["response"]) diff --git a/tests/api_resources/test_tasks.py b/tests/api_resources/test_tasks.py index 86fe14a2..565ebb03 100644 --- a/tests/api_resources/test_tasks.py +++ b/tests/api_resources/test_tasks.py @@ -73,6 +73,8 @@ def test_method_list_with_all_params(self, client: Agentex) -> None: task = client.tasks.list( agent_id="agent_id", agent_name="agent_name", + limit=0, + page_number=0, ) assert_matches_type(TaskListResponse, task, path=["response"]) @@ -366,6 +368,8 @@ async def test_method_list_with_all_params(self, async_client: AsyncAgentex) -> task = await async_client.tasks.list( agent_id="agent_id", agent_name="agent_name", + limit=0, + page_number=0, ) assert_matches_type(TaskListResponse, task, path=["response"]) diff --git a/tests/api_resources/test_tracker.py b/tests/api_resources/test_tracker.py index af8a60dd..33e7e25d 100644 --- a/tests/api_resources/test_tracker.py +++ b/tests/api_resources/test_tracker.py @@ -124,6 +124,8 @@ def test_method_list(self, client: Agentex) -> None: def test_method_list_with_all_params(self, client: Agentex) -> None: tracker = client.tracker.list( agent_id="agent_id", + limit=1, + page_number=1, task_id="task_id", ) assert_matches_type(TrackerListResponse, tracker, path=["response"]) @@ -262,6 +264,8 @@ async def test_method_list(self, async_client: AsyncAgentex) -> None: async def test_method_list_with_all_params(self, async_client: AsyncAgentex) -> None: tracker = await async_client.tracker.list( agent_id="agent_id", + limit=1, + page_number=1, task_id="task_id", ) assert_matches_type(TrackerListResponse, tracker, path=["response"])