Skip to content

Commit a6d82f1

Browse files
feat(api): api update
1 parent b9872f2 commit a6d82f1

11 files changed

Lines changed: 5 additions & 306 deletions

File tree

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-f0355372540013156ff6e59d0c3789492855d5438b4672cf7812025a41ed15be.yml
3-
openapi_spec_hash: e7c9330454695ffbef5704cfba5acac6
4-
config_hash: 253e4b5ca01236d448980a78491c17c5
1+
configured_endpoints: 14
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-8f9c749573846b07a55a3131b66456f0a592838c6bfc986ab30948df66cd6f11.yml
3+
openapi_spec_hash: 59f1ac98ad6cf13b12c59196bcecffd7
4+
config_hash: 60052b2c1c0862014416821aba875574

api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ from oz_agent_sdk.types import (
77
AgentSkill,
88
AmbientAgentConfig,
99
AwsProviderConfig,
10-
CloudEnvironment,
1110
CloudEnvironmentConfig,
1211
Error,
1312
ErrorCode,
@@ -17,7 +16,6 @@ from oz_agent_sdk.types import (
1716
UserProfile,
1817
AgentListResponse,
1918
AgentGetArtifactResponse,
20-
AgentListEnvironmentsResponse,
2119
AgentRunResponse,
2220
)
2321
```
@@ -26,7 +24,6 @@ Methods:
2624

2725
- <code title="get /agent">client.agent.<a href="./src/oz_agent_sdk/resources/agent/agent.py">list</a>(\*\*<a href="src/oz_agent_sdk/types/agent_list_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent_list_response.py">AgentListResponse</a></code>
2826
- <code title="get /agent/artifacts/{artifactUid}">client.agent.<a href="./src/oz_agent_sdk/resources/agent/agent.py">get_artifact</a>(artifact_uid) -> <a href="./src/oz_agent_sdk/types/agent_get_artifact_response.py">AgentGetArtifactResponse</a></code>
29-
- <code title="get /agent/environments">client.agent.<a href="./src/oz_agent_sdk/resources/agent/agent.py">list_environments</a>(\*\*<a href="src/oz_agent_sdk/types/agent_list_environments_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent_list_environments_response.py">AgentListEnvironmentsResponse</a></code>
3027
- <code title="post /agent/runs">client.agent.<a href="./src/oz_agent_sdk/resources/agent/agent.py">run</a>(\*\*<a href="src/oz_agent_sdk/types/agent_run_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent_run_response.py">AgentRunResponse</a></code>
3128

3229
## Runs

src/oz_agent_sdk/resources/agent/agent.py

Lines changed: 1 addition & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
RunsResourceWithStreamingResponse,
1616
AsyncRunsResourceWithStreamingResponse,
1717
)
18-
from ...types import agent_run_params, agent_list_params, agent_list_environments_params
18+
from ...types import agent_run_params, agent_list_params
1919
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
2020
from ..._utils import path_template, maybe_transform, async_maybe_transform
2121
from .sessions import (
@@ -47,7 +47,6 @@
4747
from ...types.agent_list_response import AgentListResponse
4848
from ...types.ambient_agent_config_param import AmbientAgentConfigParam
4949
from ...types.agent_get_artifact_response import AgentGetArtifactResponse
50-
from ...types.agent_list_environments_response import AgentListEnvironmentsResponse
5150

5251
__all__ = ["AgentResource", "AsyncAgentResource"]
5352

@@ -191,49 +190,6 @@ def get_artifact(
191190
),
192191
)
193192

194-
def list_environments(
195-
self,
196-
*,
197-
sort_by: Literal["name", "last_updated"] | Omit = omit,
198-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
199-
# The extra values given here take precedence over values defined on the client or passed to this method.
200-
extra_headers: Headers | None = None,
201-
extra_query: Query | None = None,
202-
extra_body: Body | None = None,
203-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
204-
) -> AgentListEnvironmentsResponse:
205-
"""Retrieve cloud environments accessible to the authenticated principal.
206-
207-
Returns
208-
environments the caller owns, has been granted guest access to, or has accessed
209-
via link sharing.
210-
211-
Args:
212-
sort_by: Sort order for the returned environments.
213-
214-
- `name`: alphabetical by environment name
215-
- `last_updated`: most recently updated first (default)
216-
217-
extra_headers: Send extra headers
218-
219-
extra_query: Add additional query parameters to the request
220-
221-
extra_body: Add additional JSON properties to the request
222-
223-
timeout: Override the client-level default timeout for this request, in seconds
224-
"""
225-
return self._get(
226-
"/agent/environments",
227-
options=make_request_options(
228-
extra_headers=extra_headers,
229-
extra_query=extra_query,
230-
extra_body=extra_body,
231-
timeout=timeout,
232-
query=maybe_transform({"sort_by": sort_by}, agent_list_environments_params.AgentListEnvironmentsParams),
233-
),
234-
cast_to=AgentListEnvironmentsResponse,
235-
)
236-
237193
def run(
238194
self,
239195
*,
@@ -463,51 +419,6 @@ async def get_artifact(
463419
),
464420
)
465421

466-
async def list_environments(
467-
self,
468-
*,
469-
sort_by: Literal["name", "last_updated"] | Omit = omit,
470-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
471-
# The extra values given here take precedence over values defined on the client or passed to this method.
472-
extra_headers: Headers | None = None,
473-
extra_query: Query | None = None,
474-
extra_body: Body | None = None,
475-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
476-
) -> AgentListEnvironmentsResponse:
477-
"""Retrieve cloud environments accessible to the authenticated principal.
478-
479-
Returns
480-
environments the caller owns, has been granted guest access to, or has accessed
481-
via link sharing.
482-
483-
Args:
484-
sort_by: Sort order for the returned environments.
485-
486-
- `name`: alphabetical by environment name
487-
- `last_updated`: most recently updated first (default)
488-
489-
extra_headers: Send extra headers
490-
491-
extra_query: Add additional query parameters to the request
492-
493-
extra_body: Add additional JSON properties to the request
494-
495-
timeout: Override the client-level default timeout for this request, in seconds
496-
"""
497-
return await self._get(
498-
"/agent/environments",
499-
options=make_request_options(
500-
extra_headers=extra_headers,
501-
extra_query=extra_query,
502-
extra_body=extra_body,
503-
timeout=timeout,
504-
query=await async_maybe_transform(
505-
{"sort_by": sort_by}, agent_list_environments_params.AgentListEnvironmentsParams
506-
),
507-
),
508-
cast_to=AgentListEnvironmentsResponse,
509-
)
510-
511422
async def run(
512423
self,
513424
*,
@@ -608,9 +519,6 @@ def __init__(self, agent: AgentResource) -> None:
608519
self.get_artifact = to_raw_response_wrapper(
609520
agent.get_artifact,
610521
)
611-
self.list_environments = to_raw_response_wrapper(
612-
agent.list_environments,
613-
)
614522
self.run = to_raw_response_wrapper(
615523
agent.run,
616524
)
@@ -641,9 +549,6 @@ def __init__(self, agent: AsyncAgentResource) -> None:
641549
self.get_artifact = async_to_raw_response_wrapper(
642550
agent.get_artifact,
643551
)
644-
self.list_environments = async_to_raw_response_wrapper(
645-
agent.list_environments,
646-
)
647552
self.run = async_to_raw_response_wrapper(
648553
agent.run,
649554
)
@@ -674,9 +579,6 @@ def __init__(self, agent: AgentResource) -> None:
674579
self.get_artifact = to_streamed_response_wrapper(
675580
agent.get_artifact,
676581
)
677-
self.list_environments = to_streamed_response_wrapper(
678-
agent.list_environments,
679-
)
680582
self.run = to_streamed_response_wrapper(
681583
agent.run,
682584
)
@@ -707,9 +609,6 @@ def __init__(self, agent: AsyncAgentResource) -> None:
707609
self.get_artifact = async_to_streamed_response_wrapper(
708610
agent.get_artifact,
709611
)
710-
self.list_environments = async_to_streamed_response_wrapper(
711-
agent.list_environments,
712-
)
713612
self.run = async_to_streamed_response_wrapper(
714613
agent.run,
715614
)

src/oz_agent_sdk/resources/agent/runs.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def retrieve(
8787
def list(
8888
self,
8989
*,
90-
ancestor_run_id: str | Omit = omit,
9190
artifact_type: Literal["PLAN", "PULL_REQUEST", "SCREENSHOT", "FILE"] | Omit = omit,
9291
created_after: Union[str, datetime] | Omit = omit,
9392
created_before: Union[str, datetime] | Omit = omit,
@@ -120,9 +119,6 @@ def list(
120119
to `sort_by=updated_at` and `sort_order=desc`.
121120
122121
Args:
123-
ancestor_run_id: Filter runs by ancestor run ID. The referenced run must exist and be accessible
124-
to the caller.
125-
126122
artifact_type: Filter runs by artifact type
127123
128124
created_after: Filter runs created after this timestamp (RFC3339 format)
@@ -186,7 +182,6 @@ def list(
186182
timeout=timeout,
187183
query=maybe_transform(
188184
{
189-
"ancestor_run_id": ancestor_run_id,
190185
"artifact_type": artifact_type,
191186
"created_after": created_after,
192187
"created_before": created_before,
@@ -312,7 +307,6 @@ async def retrieve(
312307
def list(
313308
self,
314309
*,
315-
ancestor_run_id: str | Omit = omit,
316310
artifact_type: Literal["PLAN", "PULL_REQUEST", "SCREENSHOT", "FILE"] | Omit = omit,
317311
created_after: Union[str, datetime] | Omit = omit,
318312
created_before: Union[str, datetime] | Omit = omit,
@@ -345,9 +339,6 @@ def list(
345339
to `sort_by=updated_at` and `sort_order=desc`.
346340
347341
Args:
348-
ancestor_run_id: Filter runs by ancestor run ID. The referenced run must exist and be accessible
349-
to the caller.
350-
351342
artifact_type: Filter runs by artifact type
352343
353344
created_after: Filter runs created after this timestamp (RFC3339 format)
@@ -411,7 +402,6 @@ def list(
411402
timeout=timeout,
412403
query=maybe_transform(
413404
{
414-
"ancestor_run_id": ancestor_run_id,
415405
"artifact_type": artifact_type,
416406
"created_after": created_after,
417407
"created_before": created_before,

src/oz_agent_sdk/types/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from .user_profile import UserProfile as UserProfile
99
from .agent_run_params import AgentRunParams as AgentRunParams
1010
from .agent_list_params import AgentListParams as AgentListParams
11-
from .cloud_environment import CloudEnvironment as CloudEnvironment
1211
from .mcp_server_config import McpServerConfig as McpServerConfig
1312
from .agent_run_response import AgentRunResponse as AgentRunResponse
1413
from .agent_list_response import AgentListResponse as AgentListResponse
@@ -19,5 +18,3 @@
1918
from .cloud_environment_config import CloudEnvironmentConfig as CloudEnvironmentConfig
2019
from .ambient_agent_config_param import AmbientAgentConfigParam as AmbientAgentConfigParam
2120
from .agent_get_artifact_response import AgentGetArtifactResponse as AgentGetArtifactResponse
22-
from .agent_list_environments_params import AgentListEnvironmentsParams as AgentListEnvironmentsParams
23-
from .agent_list_environments_response import AgentListEnvironmentsResponse as AgentListEnvironmentsResponse

src/oz_agent_sdk/types/agent/run_list_params.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414

1515

1616
class RunListParams(TypedDict, total=False):
17-
ancestor_run_id: str
18-
"""Filter runs by ancestor run ID.
19-
20-
The referenced run must exist and be accessible to the caller.
21-
"""
22-
2317
artifact_type: Literal["PLAN", "PULL_REQUEST", "SCREENSHOT", "FILE"]
2418
"""Filter runs by artifact type"""
2519

src/oz_agent_sdk/types/agent_list_environments_params.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/oz_agent_sdk/types/agent_list_environments_response.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/oz_agent_sdk/types/cloud_environment.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

tests/api_resources/agent/test_runs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def test_method_list(self, client: OzAPI) -> None:
7171
@parametrize
7272
def test_method_list_with_all_params(self, client: OzAPI) -> None:
7373
run = client.agent.runs.list(
74-
ancestor_run_id="ancestor_run_id",
7574
artifact_type="PLAN",
7675
created_after=parse_datetime("2019-12-27T18:11:19.117Z"),
7776
created_before=parse_datetime("2019-12-27T18:11:19.117Z"),
@@ -216,7 +215,6 @@ async def test_method_list(self, async_client: AsyncOzAPI) -> None:
216215
@parametrize
217216
async def test_method_list_with_all_params(self, async_client: AsyncOzAPI) -> None:
218217
run = await async_client.agent.runs.list(
219-
ancestor_run_id="ancestor_run_id",
220218
artifact_type="PLAN",
221219
created_after=parse_datetime("2019-12-27T18:11:19.117Z"),
222220
created_before=parse_datetime("2019-12-27T18:11:19.117Z"),

0 commit comments

Comments
 (0)