From fa051d37a372f48a74ece7a74bd28a8ca68932e6 Mon Sep 17 00:00:00 2001 From: Siddarth Chalasani Date: Tue, 31 Mar 2026 13:08:00 -0700 Subject: [PATCH 1/2] fix(sdk): expose axon list pagination params in OO SDK --- src/runloop_api_client/sdk/_types.py | 5 +++++ src/runloop_api_client/sdk/async_.py | 12 +++++++++--- src/runloop_api_client/sdk/sync.py | 12 +++++++++--- uv.lock | 2 +- 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/runloop_api_client/sdk/_types.py b/src/runloop_api_client/sdk/_types.py index aa7e0208a..3a4e6a585 100644 --- a/src/runloop_api_client/sdk/_types.py +++ b/src/runloop_api_client/sdk/_types.py @@ -5,6 +5,7 @@ InputContext, ScenarioView, AgentListParams, + AxonListParams, AxonCreateParams, DevboxListParams, ObjectListParams, @@ -190,6 +191,10 @@ class SDKAgentListParams(AgentListParams, BaseRequestOptions): pass +class SDKAxonListParams(AxonListParams, BaseRequestOptions): + pass + + class SDKAxonCreateParams(AxonCreateParams, LongRequestOptions): pass diff --git a/src/runloop_api_client/sdk/async_.py b/src/runloop_api_client/sdk/async_.py index c2a237da8..2086d1650 100644 --- a/src/runloop_api_client/sdk/async_.py +++ b/src/runloop_api_client/sdk/async_.py @@ -14,6 +14,7 @@ BaseRequestOptions, LongRequestOptions, SDKAgentListParams, + SDKAxonListParams, SDKAxonCreateParams, SDKDevboxListParams, SDKObjectListParams, @@ -544,9 +545,14 @@ def from_id(self, axon_id: str) -> AsyncAxon: """Get an AsyncAxon instance for an existing axon ID.""" return AsyncAxon(self._client, axon_id) - async def list(self, **options: Unpack[BaseRequestOptions]) -> list[AsyncAxon]: - """[Beta] List all active axons.""" - result = await self._client.axons.list(**options) + async def list(self, **params: Unpack[SDKAxonListParams]) -> list[AsyncAxon]: + """[Beta] List all active axons. + + :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKAxonListParams` for available parameters + :return: Collection of axon wrappers + :rtype: list[AsyncAxon] + """ + result = await self._client.axons.list(**params) return [AsyncAxon(self._client, axon.id) for axon in result.axons] diff --git a/src/runloop_api_client/sdk/sync.py b/src/runloop_api_client/sdk/sync.py index 0fa9f8cea..d8d265f89 100644 --- a/src/runloop_api_client/sdk/sync.py +++ b/src/runloop_api_client/sdk/sync.py @@ -15,6 +15,7 @@ BaseRequestOptions, LongRequestOptions, SDKAgentListParams, + SDKAxonListParams, SDKAxonCreateParams, SDKDevboxListParams, SDKObjectListParams, @@ -539,9 +540,14 @@ def from_id(self, axon_id: str) -> Axon: """Get an Axon instance for an existing axon ID.""" return Axon(self._client, axon_id) - def list(self, **options: Unpack[BaseRequestOptions]) -> list[Axon]: - """[Beta] List all active axons.""" - result = self._client.axons.list(**options) + def list(self, **params: Unpack[SDKAxonListParams]) -> list[Axon]: + """[Beta] List all active axons. + + :param params: See :typeddict:`~runloop_api_client.sdk._types.SDKAxonListParams` for available parameters + :return: Collection of axon wrappers + :rtype: list[Axon] + """ + result = self._client.axons.list(**params) return [Axon(self._client, axon.id) for axon in result.axons] diff --git a/uv.lock b/uv.lock index bac2c9a14..536ecad8e 100644 --- a/uv.lock +++ b/uv.lock @@ -2386,7 +2386,7 @@ wheels = [ [[package]] name = "runloop-api-client" -version = "1.13.2" +version = "1.13.3" source = { editable = "." } dependencies = [ { name = "anyio" }, From bd276961e0c735396c1617b6cf9186b563bfec10 Mon Sep 17 00:00:00 2001 From: Siddarth Chalasani Date: Tue, 31 Mar 2026 14:23:28 -0700 Subject: [PATCH 2/2] formatting --- src/runloop_api_client/sdk/_types.py | 2 +- src/runloop_api_client/sdk/async_.py | 2 +- src/runloop_api_client/sdk/sync.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runloop_api_client/sdk/_types.py b/src/runloop_api_client/sdk/_types.py index 3a4e6a585..4d2accc46 100644 --- a/src/runloop_api_client/sdk/_types.py +++ b/src/runloop_api_client/sdk/_types.py @@ -4,8 +4,8 @@ from ..types import ( InputContext, ScenarioView, - AgentListParams, AxonListParams, + AgentListParams, AxonCreateParams, DevboxListParams, ObjectListParams, diff --git a/src/runloop_api_client/sdk/async_.py b/src/runloop_api_client/sdk/async_.py index 2086d1650..d02a6a9f1 100644 --- a/src/runloop_api_client/sdk/async_.py +++ b/src/runloop_api_client/sdk/async_.py @@ -11,10 +11,10 @@ import httpx from ._types import ( + SDKAxonListParams, BaseRequestOptions, LongRequestOptions, SDKAgentListParams, - SDKAxonListParams, SDKAxonCreateParams, SDKDevboxListParams, SDKObjectListParams, diff --git a/src/runloop_api_client/sdk/sync.py b/src/runloop_api_client/sdk/sync.py index d8d265f89..e6b672159 100644 --- a/src/runloop_api_client/sdk/sync.py +++ b/src/runloop_api_client/sdk/sync.py @@ -12,10 +12,10 @@ from .axon import Axon from .agent import Agent from ._types import ( + SDKAxonListParams, BaseRequestOptions, LongRequestOptions, SDKAgentListParams, - SDKAxonListParams, SDKAxonCreateParams, SDKDevboxListParams, SDKObjectListParams,