Skip to content

Commit 26abd67

Browse files
author
stlc-bot
committed
feat!: remove the agent API and agent mounts
Stainless-Generated-From: 7b983b4342fc1f989cf63b26a10e1b06adbfe4dc
1 parent 1484c74 commit 26abd67

25 files changed

Lines changed: 4 additions & 1799 deletions

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 94
1+
configured_endpoints: 88

‎api.md‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
```python
44
from runloop_api_client.types import (
55
AfterIdle,
6-
AgentMount,
7-
AgentSource,
86
AuthMechanism,
97
BrokerMount,
108
CodeMountParameters,
@@ -30,28 +28,6 @@ Methods:
3028

3129
- <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>
3230

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-
5531
# Axons
5632

5733
Types:

‎scripts/mock‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎src/runloop_api_client/_client.py‎

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
from .resources import (
4040
pty,
4141
axons,
42-
agents,
4342
apikeys,
4443
objects,
4544
secrets,
@@ -52,7 +51,6 @@
5251
network_policies,
5352
)
5453
from .resources.pty import PtyResource, AsyncPtyResource
55-
from .resources.agents import AgentsResource, AsyncAgentsResource
5654
from .resources.apikeys import ApikeysResource, AsyncApikeysResource
5755
from .resources.objects import ObjectsResource, AsyncObjectsResource
5856
from .resources.secrets import SecretsResource, AsyncSecretsResource
@@ -153,12 +151,6 @@ def accounts(self) -> AccountsResource:
153151

154152
return AccountsResource(self)
155153

156-
@cached_property
157-
def agents(self) -> AgentsResource:
158-
from .resources.agents import AgentsResource
159-
160-
return AgentsResource(self)
161-
162154
@cached_property
163155
def axons(self) -> AxonsResource:
164156
from .resources.axons import AxonsResource
@@ -441,12 +433,6 @@ def accounts(self) -> AsyncAccountsResource:
441433

442434
return AsyncAccountsResource(self)
443435

444-
@cached_property
445-
def agents(self) -> AsyncAgentsResource:
446-
from .resources.agents import AsyncAgentsResource
447-
448-
return AsyncAgentsResource(self)
449-
450436
@cached_property
451437
def axons(self) -> AsyncAxonsResource:
452438
from .resources.axons import AsyncAxonsResource
@@ -656,12 +642,6 @@ def accounts(self) -> accounts.AccountsResourceWithRawResponse:
656642

657643
return AccountsResourceWithRawResponse(self._client.accounts)
658644

659-
@cached_property
660-
def agents(self) -> agents.AgentsResourceWithRawResponse:
661-
from .resources.agents import AgentsResourceWithRawResponse
662-
663-
return AgentsResourceWithRawResponse(self._client.agents)
664-
665645
@cached_property
666646
def axons(self) -> axons.AxonsResourceWithRawResponse:
667647
from .resources.axons import AxonsResourceWithRawResponse
@@ -741,12 +721,6 @@ def accounts(self) -> accounts.AsyncAccountsResourceWithRawResponse:
741721

742722
return AsyncAccountsResourceWithRawResponse(self._client.accounts)
743723

744-
@cached_property
745-
def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
746-
from .resources.agents import AsyncAgentsResourceWithRawResponse
747-
748-
return AsyncAgentsResourceWithRawResponse(self._client.agents)
749-
750724
@cached_property
751725
def axons(self) -> axons.AsyncAxonsResourceWithRawResponse:
752726
from .resources.axons import AsyncAxonsResourceWithRawResponse
@@ -826,12 +800,6 @@ def accounts(self) -> accounts.AccountsResourceWithStreamingResponse:
826800

827801
return AccountsResourceWithStreamingResponse(self._client.accounts)
828802

829-
@cached_property
830-
def agents(self) -> agents.AgentsResourceWithStreamingResponse:
831-
from .resources.agents import AgentsResourceWithStreamingResponse
832-
833-
return AgentsResourceWithStreamingResponse(self._client.agents)
834-
835803
@cached_property
836804
def axons(self) -> axons.AxonsResourceWithStreamingResponse:
837805
from .resources.axons import AxonsResourceWithStreamingResponse
@@ -911,12 +879,6 @@ def accounts(self) -> accounts.AsyncAccountsResourceWithStreamingResponse:
911879

912880
return AsyncAccountsResourceWithStreamingResponse(self._client.accounts)
913881

914-
@cached_property
915-
def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
916-
from .resources.agents import AsyncAgentsResourceWithStreamingResponse
917-
918-
return AsyncAgentsResourceWithStreamingResponse(self._client.agents)
919-
920882
@cached_property
921883
def axons(self) -> axons.AsyncAxonsResourceWithStreamingResponse:
922884
from .resources.axons import AsyncAxonsResourceWithStreamingResponse

‎src/runloop_api_client/pagination.py‎

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"AsyncDevboxesCursorIDPage",
1313
"SyncDiskSnapshotsCursorIDPage",
1414
"AsyncDiskSnapshotsCursorIDPage",
15-
"SyncAgentsCursorIDPage",
16-
"AsyncAgentsCursorIDPage",
1715
"SyncAxonsCursorIDPage",
1816
"AsyncAxonsCursorIDPage",
1917
"SyncObjectsCursorIDPage",
@@ -44,11 +42,6 @@ class DiskSnapshotsCursorIDPageItem(Protocol):
4442
id: str
4543

4644

47-
@runtime_checkable
48-
class AgentsCursorIDPageItem(Protocol):
49-
id: str
50-
51-
5245
@runtime_checkable
5346
class AxonsCursorIDPageItem(Protocol):
5447
id: str
@@ -278,74 +271,6 @@ def next_page_info(self) -> Optional[PageInfo]:
278271
return PageInfo(params={"starting_after": item.id})
279272

280273

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-
349274
class SyncAxonsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
350275
axons: List[_T]
351276
has_more: Optional[bool] = None

‎src/runloop_api_client/resources/__init__.py‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
AxonsResourceWithStreamingResponse,
1717
AsyncAxonsResourceWithStreamingResponse,
1818
)
19-
from .agents import (
20-
AgentsResource,
21-
AsyncAgentsResource,
22-
AgentsResourceWithRawResponse,
23-
AsyncAgentsResourceWithRawResponse,
24-
AgentsResourceWithStreamingResponse,
25-
AsyncAgentsResourceWithStreamingResponse,
26-
)
2719
from .apikeys import (
2820
ApikeysResource,
2921
AsyncApikeysResource,
@@ -112,12 +104,6 @@
112104
"AsyncAccountsResourceWithRawResponse",
113105
"AccountsResourceWithStreamingResponse",
114106
"AsyncAccountsResourceWithStreamingResponse",
115-
"AgentsResource",
116-
"AsyncAgentsResource",
117-
"AgentsResourceWithRawResponse",
118-
"AsyncAgentsResourceWithRawResponse",
119-
"AgentsResourceWithStreamingResponse",
120-
"AsyncAgentsResourceWithStreamingResponse",
121107
"AxonsResource",
122108
"AsyncAxonsResource",
123109
"AxonsResourceWithRawResponse",

0 commit comments

Comments
 (0)