Skip to content

Commit 7fc79ef

Browse files
feat(api): api update
1 parent c518876 commit 7fc79ef

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.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-29ad327e738bb7cfe141e7ddb412ac41db03891941ec2f85db6e5f31c5811e40.yml
3-
openapi_spec_hash: bb3d0180ebd64b039787660567c2473d
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)"""

0 commit comments

Comments
 (0)