Skip to content

Commit 7f419fa

Browse files
feat(api): api update
1 parent b8e42cc commit 7f419fa

File tree

10 files changed

+4
-855
lines changed

10 files changed

+4
-855
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-3226a0810ae5de980509e31910138990d93d2843918730249caed1436e677ec3.yml
3-
openapi_spec_hash: 776a9087e0c342e9fcbd140e75936d75
4-
config_hash: c5fc921cc04f541a85f92299f365eba6
1+
configured_endpoints: 15
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-252ab435934e85d5f76957188c64906abf76a0351c5861383327cb1297a2ac8a.yml
3+
openapi_spec_hash: ed801bb30428c1c66cb0af97e3f6ee9c
4+
config_hash: 253e4b5ca01236d448980a78491c17c5

api.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,6 @@ Methods:
7272
- <code title="post /agent/schedules/{scheduleId}/pause">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">pause</a>(schedule_id) -> <a href="./src/oz_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
7373
- <code title="post /agent/schedules/{scheduleId}/resume">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">resume</a>(schedule_id) -> <a href="./src/oz_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
7474

75-
## Agent
76-
77-
Types:
78-
79-
```python
80-
from oz_agent_sdk.types.agent import (
81-
AgentResponse,
82-
CreateAgentRequest,
83-
ListAgentIdentitiesResponse,
84-
UpdateAgentRequest,
85-
)
86-
```
87-
88-
Methods:
89-
90-
- <code title="post /agent/identities">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">create</a>(\*\*<a href="src/oz_agent_sdk/types/agent/agent_create_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent/agent_response.py">AgentResponse</a></code>
91-
- <code title="put /agent/identities/{uid}">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">update</a>(uid, \*\*<a href="src/oz_agent_sdk/types/agent/agent_update_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent/agent_response.py">AgentResponse</a></code>
92-
- <code title="get /agent/identities">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">list</a>() -> <a href="./src/oz_agent_sdk/types/agent/list_agent_identities_response.py">ListAgentIdentitiesResponse</a></code>
93-
- <code title="delete /agent/identities/{uid}">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">delete</a>(uid) -> None</code>
94-
9575
## Sessions
9676

9777
Types:

src/oz_agent_sdk/resources/agent/agent.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import httpx
99

10-
from . import agent_ as agent
1110
from .runs import (
1211
RunsResource,
1312
AsyncRunsResource,
@@ -66,11 +65,6 @@ def schedules(self) -> SchedulesResource:
6665
"""Operations for creating and managing scheduled agents"""
6766
return SchedulesResource(self._client)
6867

69-
@cached_property
70-
def agent(self) -> agent.AgentResource:
71-
"""Operations for running and managing cloud agents"""
72-
return agent.AgentResource(self._client)
73-
7468
@cached_property
7569
def sessions(self) -> SessionsResource:
7670
"""Operations for running and managing cloud agents"""
@@ -344,11 +338,6 @@ def schedules(self) -> AsyncSchedulesResource:
344338
"""Operations for creating and managing scheduled agents"""
345339
return AsyncSchedulesResource(self._client)
346340

347-
@cached_property
348-
def agent(self) -> agent.AsyncAgentResource:
349-
"""Operations for running and managing cloud agents"""
350-
return agent.AsyncAgentResource(self._client)
351-
352341
@cached_property
353342
def sessions(self) -> AsyncSessionsResource:
354343
"""Operations for running and managing cloud agents"""
@@ -638,11 +627,6 @@ def schedules(self) -> SchedulesResourceWithRawResponse:
638627
"""Operations for creating and managing scheduled agents"""
639628
return SchedulesResourceWithRawResponse(self._agent.schedules)
640629

641-
@cached_property
642-
def agent(self) -> agent.AgentResourceWithRawResponse:
643-
"""Operations for running and managing cloud agents"""
644-
return agent.AgentResourceWithRawResponse(self._agent.agent)
645-
646630
@cached_property
647631
def sessions(self) -> SessionsResourceWithRawResponse:
648632
"""Operations for running and managing cloud agents"""
@@ -676,11 +660,6 @@ def schedules(self) -> AsyncSchedulesResourceWithRawResponse:
676660
"""Operations for creating and managing scheduled agents"""
677661
return AsyncSchedulesResourceWithRawResponse(self._agent.schedules)
678662

679-
@cached_property
680-
def agent(self) -> agent.AsyncAgentResourceWithRawResponse:
681-
"""Operations for running and managing cloud agents"""
682-
return agent.AsyncAgentResourceWithRawResponse(self._agent.agent)
683-
684663
@cached_property
685664
def sessions(self) -> AsyncSessionsResourceWithRawResponse:
686665
"""Operations for running and managing cloud agents"""
@@ -714,11 +693,6 @@ def schedules(self) -> SchedulesResourceWithStreamingResponse:
714693
"""Operations for creating and managing scheduled agents"""
715694
return SchedulesResourceWithStreamingResponse(self._agent.schedules)
716695

717-
@cached_property
718-
def agent(self) -> agent.AgentResourceWithStreamingResponse:
719-
"""Operations for running and managing cloud agents"""
720-
return agent.AgentResourceWithStreamingResponse(self._agent.agent)
721-
722696
@cached_property
723697
def sessions(self) -> SessionsResourceWithStreamingResponse:
724698
"""Operations for running and managing cloud agents"""
@@ -752,11 +726,6 @@ def schedules(self) -> AsyncSchedulesResourceWithStreamingResponse:
752726
"""Operations for creating and managing scheduled agents"""
753727
return AsyncSchedulesResourceWithStreamingResponse(self._agent.schedules)
754728

755-
@cached_property
756-
def agent(self) -> agent.AsyncAgentResourceWithStreamingResponse:
757-
"""Operations for running and managing cloud agents"""
758-
return agent.AsyncAgentResourceWithStreamingResponse(self._agent.agent)
759-
760729
@cached_property
761730
def sessions(self) -> AsyncSessionsResourceWithStreamingResponse:
762731
"""Operations for running and managing cloud agents"""

0 commit comments

Comments
 (0)