Skip to content

Commit 3714739

Browse files
feat(api): api update
1 parent 0bcea48 commit 3714739

8 files changed

Lines changed: 11 additions & 47 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-4caffe00bccb10ade46f9043bec5c13558c78c49b35fc5dfa3e0ac6258465ce2.yml
3-
openapi_spec_hash: ed3c519d0d108a9a9da06d0ff1bad9a9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c098713ad7d0db50c26687968fc23fbb61b919a674a9f26bb3375af48ea816f1.yml
3+
openapi_spec_hash: 633a8a510fd3d0eb0c17c61522de6003
44
config_hash: e894152aaebba5a2e65e27efaf2712e2

src/oz_agent_sdk/resources/agent/runs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def list(
118118
to `sort_by=updated_at` and `sort_order=desc`.
119119
120120
Args:
121-
artifact_type: Filter runs by artifact type
121+
artifact_type: Filter runs by artifact type (PLAN or PULL_REQUEST)
122122
123123
created_after: Filter runs created after this timestamp (RFC3339 format)
124124
@@ -333,7 +333,7 @@ async def list(
333333
to `sort_by=updated_at` and `sort_order=desc`.
334334
335335
Args:
336-
artifact_type: Filter runs by artifact type
336+
artifact_type: Filter runs by artifact type (PLAN or PULL_REQUEST)
337337
338338
created_after: Filter runs created after this timestamp (RFC3339 format)
339339

src/oz_agent_sdk/resources/agent/schedules.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def pause(
275275
) -> ScheduledAgentItem:
276276
"""Pause a scheduled agent.
277277
278-
The agent will not run until resumed.
278+
The agent will not run until resumed. This sets the
279+
enabled flag to false.
279280
280281
Args:
281282
extra_headers: Send extra headers
@@ -310,7 +311,7 @@ def resume(
310311
"""Resume a paused scheduled agent.
311312
312313
The agent will start running according to its
313-
cron schedule.
314+
cron schedule. This sets the enabled flag to true.
314315
315316
Args:
316317
extra_headers: Send extra headers
@@ -583,7 +584,8 @@ async def pause(
583584
) -> ScheduledAgentItem:
584585
"""Pause a scheduled agent.
585586
586-
The agent will not run until resumed.
587+
The agent will not run until resumed. This sets the
588+
enabled flag to false.
587589
588590
Args:
589591
extra_headers: Send extra headers
@@ -618,7 +620,7 @@ async def resume(
618620
"""Resume a paused scheduled agent.
619621
620622
The agent will start running according to its
621-
cron schedule.
623+
cron schedule. This sets the enabled flag to true.
622624
623625
Args:
624626
extra_headers: Send extra headers

src/oz_agent_sdk/types/agent/run_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class RunListParams(TypedDict, total=False):
1717
artifact_type: Literal["PLAN", "PULL_REQUEST", "SCREENSHOT"]
18-
"""Filter runs by artifact type"""
18+
"""Filter runs by artifact type (PLAN or PULL_REQUEST)"""
1919

2020
created_after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
2121
"""Filter runs created after this timestamp (RFC3339 format)"""

src/oz_agent_sdk/types/ambient_agent_config.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ class AmbientAgentConfig(BaseModel):
2525
environment_id: Optional[str] = None
2626
"""UID of the environment to run the agent in"""
2727

28-
harness: Optional[str] = None
29-
"""
30-
Agent harness to use for the agent run. Default (empty) uses Warp's built-in Oz
31-
harness.
32-
"""
33-
34-
idle_timeout_minutes: Optional[int] = None
35-
"""
36-
Number of minutes to keep the agent environment alive after task completion. If
37-
not set, defaults to 10 minutes. Maximum allowed value is min(60,
38-
floor(max_instance_runtime_seconds / 60) for your billing tier).
39-
"""
40-
4128
mcp_servers: Optional[Dict[str, McpServerConfig]] = None
4229
"""Map of MCP server configurations by name"""
4330

src/oz_agent_sdk/types/ambient_agent_config_param.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ class AmbientAgentConfigParam(TypedDict, total=False):
2525
environment_id: str
2626
"""UID of the environment to run the agent in"""
2727

28-
harness: str
29-
"""
30-
Agent harness to use for the agent run. Default (empty) uses Warp's built-in Oz
31-
harness.
32-
"""
33-
34-
idle_timeout_minutes: int
35-
"""
36-
Number of minutes to keep the agent environment alive after task completion. If
37-
not set, defaults to 10 minutes. Maximum allowed value is min(60,
38-
floor(max_instance_runtime_seconds / 60) for your billing tier).
39-
"""
40-
4128
mcp_servers: Dict[str, McpServerConfigParam]
4229
"""Map of MCP server configurations by name"""
4330

tests/api_resources/agent/test_schedules.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def test_method_create_with_all_params(self, client: OzAPI) -> None:
4040
"base_prompt": "base_prompt",
4141
"computer_use_enabled": True,
4242
"environment_id": "environment_id",
43-
"harness": "harness",
44-
"idle_timeout_minutes": 1,
4543
"mcp_servers": {
4644
"foo": {
4745
"args": ["string"],
@@ -156,8 +154,6 @@ def test_method_update_with_all_params(self, client: OzAPI) -> None:
156154
"base_prompt": "base_prompt",
157155
"computer_use_enabled": True,
158156
"environment_id": "environment_id",
159-
"harness": "harness",
160-
"idle_timeout_minutes": 1,
161157
"mcp_servers": {
162158
"foo": {
163159
"args": ["string"],
@@ -399,8 +395,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncOzAPI) ->
399395
"base_prompt": "base_prompt",
400396
"computer_use_enabled": True,
401397
"environment_id": "environment_id",
402-
"harness": "harness",
403-
"idle_timeout_minutes": 1,
404398
"mcp_servers": {
405399
"foo": {
406400
"args": ["string"],
@@ -515,8 +509,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncOzAPI) ->
515509
"base_prompt": "base_prompt",
516510
"computer_use_enabled": True,
517511
"environment_id": "environment_id",
518-
"harness": "harness",
519-
"idle_timeout_minutes": 1,
520512
"mcp_servers": {
521513
"foo": {
522514
"args": ["string"],

tests/api_resources/test_agent.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ def test_method_run_with_all_params(self, client: OzAPI) -> None:
123123
"base_prompt": "base_prompt",
124124
"computer_use_enabled": True,
125125
"environment_id": "environment_id",
126-
"harness": "harness",
127-
"idle_timeout_minutes": 1,
128126
"mcp_servers": {
129127
"foo": {
130128
"args": ["string"],
@@ -279,8 +277,6 @@ async def test_method_run_with_all_params(self, async_client: AsyncOzAPI) -> Non
279277
"base_prompt": "base_prompt",
280278
"computer_use_enabled": True,
281279
"environment_id": "environment_id",
282-
"harness": "harness",
283-
"idle_timeout_minutes": 1,
284280
"mcp_servers": {
285281
"foo": {
286282
"args": ["string"],

0 commit comments

Comments
 (0)