File tree Expand file tree Collapse file tree
tests/api-resources/agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_endpoints : 14
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c098713ad7d0db50c26687968fc23fbb61b919a674a9f26bb3375af48ea816f1 .yml
3- openapi_spec_hash : 633a8a510fd3d0eb0c17c61522de6003
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-a931490557d2c27bcec6b9d7cb0502913f6a3969a5907c810a3c2073ca2ca9e0 .yml
3+ openapi_spec_hash : 632bc51224846da7edc3996983d35ff3
44config_hash : e894152aaebba5a2e65e27efaf2712e2
Original file line number Diff line number Diff line change @@ -185,6 +185,19 @@ export interface AmbientAgentConfig {
185185 */
186186 environment_id ?: string ;
187187
188+ /**
189+ * Agent harness to use for the agent run. Default (empty) uses Warp's built-in Oz
190+ * harness.
191+ */
192+ harness ?: string ;
193+
194+ /**
195+ * Number of minutes to keep the agent environment alive after task completion. If
196+ * not set, defaults to 10 minutes. Maximum allowed value is min(60,
197+ * floor(max_instance_runtime_seconds / 60) for your billing tier).
198+ */
199+ idle_timeout_minutes ?: number ;
200+
188201 /**
189202 * Map of MCP server configurations by name
190203 */
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ export type RunCancelResponse = string;
469469
470470export interface RunListParams {
471471 /**
472- * Filter runs by artifact type (PLAN or PULL_REQUEST)
472+ * Filter runs by artifact type
473473 */
474474 artifact_type ?: 'PLAN' | 'PULL_REQUEST' | 'SCREENSHOT' ;
475475
Original file line number Diff line number Diff line change @@ -94,8 +94,7 @@ export class Schedules extends APIResource {
9494 }
9595
9696 /**
97- * Pause a scheduled agent. The agent will not run until resumed. This sets the
98- * enabled flag to false.
97+ * Pause a scheduled agent. The agent will not run until resumed.
9998 *
10099 * @example
101100 * ```ts
@@ -109,7 +108,7 @@ export class Schedules extends APIResource {
109108
110109 /**
111110 * Resume a paused scheduled agent. The agent will start running according to its
112- * cron schedule. This sets the enabled flag to true.
111+ * cron schedule.
113112 *
114113 * @example
115114 * ```ts
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ describe('resource schedules', () => {
3232 base_prompt : 'base_prompt' ,
3333 computer_use_enabled : true ,
3434 environment_id : 'environment_id' ,
35+ harness : 'harness' ,
36+ idle_timeout_minutes : 1 ,
3537 mcp_servers : {
3638 foo : {
3739 args : [ 'string' ] ,
@@ -91,6 +93,8 @@ describe('resource schedules', () => {
9193 base_prompt : 'base_prompt' ,
9294 computer_use_enabled : true ,
9395 environment_id : 'environment_id' ,
96+ harness : 'harness' ,
97+ idle_timeout_minutes : 1 ,
9498 mcp_servers : {
9599 foo : {
96100 args : [ 'string' ] ,
You can’t perform that action at this time.
0 commit comments