GeezerVison is showing github.com — feat!: remove the agent API and agent mounts · runloopai/api-client-python@26abd67
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -configured_endpoints: 94 | | 1 | +configured_endpoints: 88 |
Collapse file Copy file name to clipboardExpand all lines: api.md -24Lines changed: 0 additions & 24 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 | ```python | 4 | 4 | from runloop_api_client.types import ( | 5 | 5 | AfterIdle, | 6 | | - AgentMount, | 7 | | - AgentSource, | 8 | 6 | AuthMechanism, | 9 | 7 | BrokerMount, | 10 | 8 | CodeMountParameters, | @@ -30,28 +28,6 @@ Methods: | 30 | 28 |
| 31 | 29 | - <code title="get /v1/accounts/me">client.accounts.<a href="./src/runloop_api_client/resources/accounts.py">me</a>() -> <a href="./src/runloop_api_client/types/account_view.py">AccountView</a></code> | 32 | 30 |
| 33 | | -# Agents | 34 | | - | 35 | | -Types: | 36 | | - | 37 | | -```python | 38 | | -from runloop_api_client.types import ( | 39 | | - AgentCreateParameters, | 40 | | - AgentDevboxCountsView, | 41 | | - AgentListView, | 42 | | - AgentView, | 43 | | -) | 44 | | -``` | 45 | | - | 46 | | -Methods: | 47 | | - | 48 | | -- <code title="post /v1/agents">client.agents.<a href="./src/runloop_api_client/resources/agents.py">create</a>(\*\*<a href="src/runloop_api_client/types/agent_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/agent_view.py">AgentView</a></code> | 49 | | -- <code title="get /v1/agents/{id}">client.agents.<a href="./src/runloop_api_client/resources/agents.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/agent_view.py">AgentView</a></code> | 50 | | -- <code title="get /v1/agents">client.agents.<a href="./src/runloop_api_client/resources/agents.py">list</a>(\*\*<a href="src/runloop_api_client/types/agent_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/agent_view.py">SyncAgentsCursorIDPage[AgentView]</a></code> | 51 | | -- <code title="post /v1/agents/{id}/delete">client.agents.<a href="./src/runloop_api_client/resources/agents.py">delete</a>(id) -> object</code> | 52 | | -- <code title="get /v1/agents/devbox_counts">client.agents.<a href="./src/runloop_api_client/resources/agents.py">devbox_counts</a>() -> <a href="./src/runloop_api_client/types/agent_devbox_counts_view.py">AgentDevboxCountsView</a></code> | 53 | | -- <code title="get /v1/agents/list_public">client.agents.<a href="./src/runloop_api_client/resources/agents.py">list_public</a>(\*\*<a href="src/runloop_api_client/types/agent_list_public_params.py">params</a>) -> <a href="./src/runloop_api_client/types/agent_view.py">SyncAgentsCursorIDPage[AgentView]</a></code> | 54 | | - | 55 | 31 | # Axons | 56 | 32 |
| 57 | 33 | Types: | |
Collapse file Copy file name to clipboardExpand all lines: scripts/mock +1-1Lines changed: 1 addition & 1 deletion Large diffs are not rendered by default. Collapse file Copy file name to clipboardExpand all lines: src/runloop_api_client/_client.py -38Lines changed: 0 additions & 38 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 39 | 39 | from .resources import ( | 40 | 40 | pty, | 41 | 41 | axons, | 42 | | - agents, | 43 | 42 | apikeys, | 44 | 43 | objects, | 45 | 44 | secrets, | | 52 | 51 | network_policies, | 53 | 52 | ) | 54 | 53 | from .resources.pty import PtyResource, AsyncPtyResource | 55 | | - from .resources.agents import AgentsResource, AsyncAgentsResource | 56 | 54 | from .resources.apikeys import ApikeysResource, AsyncApikeysResource | 57 | 55 | from .resources.objects import ObjectsResource, AsyncObjectsResource | 58 | 56 | from .resources.secrets import SecretsResource, AsyncSecretsResource | @@ -153,12 +151,6 @@ def accounts(self) -> AccountsResource: | 153 | 151 |
| 154 | 152 | return AccountsResource(self) | 155 | 153 |
| 156 | | - @cached_property | 157 | | - def agents(self) -> AgentsResource: | 158 | | - from .resources.agents import AgentsResource | 159 | | - | 160 | | - return AgentsResource(self) | 161 | | - | 162 | 154 | @cached_property | 163 | 155 | def axons(self) -> AxonsResource: | 164 | 156 | from .resources.axons import AxonsResource | @@ -441,12 +433,6 @@ def accounts(self) -> AsyncAccountsResource: | 441 | 433 |
| 442 | 434 | return AsyncAccountsResource(self) | 443 | 435 |
| 444 | | - @cached_property | 445 | | - def agents(self) -> AsyncAgentsResource: | 446 | | - from .resources.agents import AsyncAgentsResource | 447 | | - | 448 | | - return AsyncAgentsResource(self) | 449 | | - | 450 | 436 | @cached_property | 451 | 437 | def axons(self) -> AsyncAxonsResource: | 452 | 438 | from .resources.axons import AsyncAxonsResource | @@ -656,12 +642,6 @@ def accounts(self) -> accounts.AccountsResourceWithRawResponse: | 656 | 642 |
| 657 | 643 | return AccountsResourceWithRawResponse(self._client.accounts) | 658 | 644 |
| 659 | | - @cached_property | 660 | | - def agents(self) -> agents.AgentsResourceWithRawResponse: | 661 | | - from .resources.agents import AgentsResourceWithRawResponse | 662 | | - | 663 | | - return AgentsResourceWithRawResponse(self._client.agents) | 664 | | - | 665 | 645 | @cached_property | 666 | 646 | def axons(self) -> axons.AxonsResourceWithRawResponse: | 667 | 647 | from .resources.axons import AxonsResourceWithRawResponse | @@ -741,12 +721,6 @@ def accounts(self) -> accounts.AsyncAccountsResourceWithRawResponse: | 741 | 721 |
| 742 | 722 | return AsyncAccountsResourceWithRawResponse(self._client.accounts) | 743 | 723 |
| 744 | | - @cached_property | 745 | | - def agents(self) -> agents.AsyncAgentsResourceWithRawResponse: | 746 | | - from .resources.agents import AsyncAgentsResourceWithRawResponse | 747 | | - | 748 | | - return AsyncAgentsResourceWithRawResponse(self._client.agents) | 749 | | - | 750 | 724 | @cached_property | 751 | 725 | def axons(self) -> axons.AsyncAxonsResourceWithRawResponse: | 752 | 726 | from .resources.axons import AsyncAxonsResourceWithRawResponse | @@ -826,12 +800,6 @@ def accounts(self) -> accounts.AccountsResourceWithStreamingResponse: | 826 | 800 |
| 827 | 801 | return AccountsResourceWithStreamingResponse(self._client.accounts) | 828 | 802 |
| 829 | | - @cached_property | 830 | | - def agents(self) -> agents.AgentsResourceWithStreamingResponse: | 831 | | - from .resources.agents import AgentsResourceWithStreamingResponse | 832 | | - | 833 | | - return AgentsResourceWithStreamingResponse(self._client.agents) | 834 | | - | 835 | 803 | @cached_property | 836 | 804 | def axons(self) -> axons.AxonsResourceWithStreamingResponse: | 837 | 805 | from .resources.axons import AxonsResourceWithStreamingResponse | @@ -911,12 +879,6 @@ def accounts(self) -> accounts.AsyncAccountsResourceWithStreamingResponse: | 911 | 879 |
| 912 | 880 | return AsyncAccountsResourceWithStreamingResponse(self._client.accounts) | 913 | 881 |
| 914 | | - @cached_property | 915 | | - def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse: | 916 | | - from .resources.agents import AsyncAgentsResourceWithStreamingResponse | 917 | | - | 918 | | - return AsyncAgentsResourceWithStreamingResponse(self._client.agents) | 919 | | - | 920 | 882 | @cached_property | 921 | 883 | def axons(self) -> axons.AsyncAxonsResourceWithStreamingResponse: | 922 | 884 | from .resources.axons import AsyncAxonsResourceWithStreamingResponse | |
Collapse file Copy file name to clipboardExpand all lines: src/runloop_api_client/pagination.py -75Lines changed: 0 additions & 75 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | "AsyncDevboxesCursorIDPage", | 13 | 13 | "SyncDiskSnapshotsCursorIDPage", | 14 | 14 | "AsyncDiskSnapshotsCursorIDPage", | 15 | | - "SyncAgentsCursorIDPage", | 16 | | - "AsyncAgentsCursorIDPage", | 17 | 15 | "SyncAxonsCursorIDPage", | 18 | 16 | "AsyncAxonsCursorIDPage", | 19 | 17 | "SyncObjectsCursorIDPage", | @@ -44,11 +42,6 @@ class DiskSnapshotsCursorIDPageItem(Protocol): | 44 | 42 | id: str | 45 | 43 |
| 46 | 44 |
| 47 | | -@runtime_checkable | 48 | | -class AgentsCursorIDPageItem(Protocol): | 49 | | - id: str | 50 | | - | 51 | | - | 52 | 45 | @runtime_checkable | 53 | 46 | class AxonsCursorIDPageItem(Protocol): | 54 | 47 | id: str | @@ -278,74 +271,6 @@ def next_page_info(self) -> Optional[PageInfo]: | 278 | 271 | return PageInfo(params={"starting_after": item.id}) | 279 | 272 |
| 280 | 273 |
| 281 | | -class SyncAgentsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]): | 282 | | - agents: List[_T] | 283 | | - has_more: Optional[bool] = None | 284 | | - total_count: Optional[int] = None | 285 | | - | 286 | | - @override | 287 | | - def _get_page_items(self) -> List[_T]: | 288 | | - agents = self.agents | 289 | | - if not agents: | 290 | | - return [] | 291 | | - return agents | 292 | | - | 293 | | - @override | 294 | | - def has_next_page(self) -> bool: | 295 | | - has_more = self.has_more | 296 | | - if has_more is not None and has_more is False: | 297 | | - return False | 298 | | - | 299 | | - return super().has_next_page() | 300 | | - | 301 | | - @override | 302 | | - def next_page_info(self) -> Optional[PageInfo]: | 303 | | - agents = self.agents | 304 | | - if not agents: | 305 | | - return None | 306 | | - | 307 | | - item = cast(Any, agents[-1]) | 308 | | - if not isinstance(item, AgentsCursorIDPageItem) or item.id is None: # pyright: ignore[reportUnnecessaryComparison] | 309 | | - # TODO emit warning log | 310 | | - return None | 311 | | - | 312 | | - return PageInfo(params={"starting_after": item.id}) | 313 | | - | 314 | | - | 315 | | -class AsyncAgentsCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]): | 316 | | - agents: List[_T] | 317 | | - has_more: Optional[bool] = None | 318 | | - total_count: Optional[int] = None | 319 | | - | 320 | | - @override | 321 | | - def _get_page_items(self) -> List[_T]: | 322 | | - agents = self.agents | 323 | | - if not agents: | 324 | | - return [] | 325 | | - return agents | 326 | | - | 327 | | - @override | 328 | | - def has_next_page(self) -> bool: | 329 | | - has_more = self.has_more | 330 | | - if has_more is not None and has_more is False: | 331 | | - return False | 332 | | - | 333 | | - return super().has_next_page() | 334 | | - | 335 | | - @override | 336 | | - def next_page_info(self) -> Optional[PageInfo]: | 337 | | - agents = self.agents | 338 | | - if not agents: | 339 | | - return None | 340 | | - | 341 | | - item = cast(Any, agents[-1]) | 342 | | - if not isinstance(item, AgentsCursorIDPageItem) or item.id is None: # pyright: ignore[reportUnnecessaryComparison] | 343 | | - # TODO emit warning log | 344 | | - return None | 345 | | - | 346 | | - return PageInfo(params={"starting_after": item.id}) | 347 | | - | 348 | | - | 349 | 274 | class SyncAxonsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]): | 350 | 275 | axons: List[_T] | 351 | 276 | has_more: Optional[bool] = None | |
Collapse file Copy file name to clipboardExpand all lines: src/runloop_api_client/resources/__init__.py -14Lines changed: 0 additions & 14 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | AxonsResourceWithStreamingResponse, | 17 | 17 | AsyncAxonsResourceWithStreamingResponse, | 18 | 18 | ) | 19 | | -from .agents import ( | 20 | | - AgentsResource, | 21 | | - AsyncAgentsResource, | 22 | | - AgentsResourceWithRawResponse, | 23 | | - AsyncAgentsResourceWithRawResponse, | 24 | | - AgentsResourceWithStreamingResponse, | 25 | | - AsyncAgentsResourceWithStreamingResponse, | 26 | | -) | 27 | 19 | from .apikeys import ( | 28 | 20 | ApikeysResource, | 29 | 21 | AsyncApikeysResource, | | 112 | 104 | "AsyncAccountsResourceWithRawResponse", | 113 | 105 | "AccountsResourceWithStreamingResponse", | 114 | 106 | "AsyncAccountsResourceWithStreamingResponse", | 115 | | - "AgentsResource", | 116 | | - "AsyncAgentsResource", | 117 | | - "AgentsResourceWithRawResponse", | 118 | | - "AsyncAgentsResourceWithRawResponse", | 119 | | - "AgentsResourceWithStreamingResponse", | 120 | | - "AsyncAgentsResourceWithStreamingResponse", | 121 | 107 | "AxonsResource", | 122 | 108 | "AsyncAxonsResource", | 123 | 109 | "AxonsResourceWithRawResponse", | |
|