Skip to content

Commit 5f9b8bc

Browse files
feat: Accept and persist executor on schedule and integration create/update APIs
1 parent 1134f2b commit 5f9b8bc

3 files changed

Lines changed: 16 additions & 2 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: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-ba0eb0c9006df2bc1ad77d365586cdcc4ae62565aff5a7b746ba613fb3fe0889.yml
3-
openapi_spec_hash: 3ed3c07bf50eba4f02cbbbed358f5761
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-0610670bab7ee6c6c6630c94cf22162d57784544b4ff3acd7f1b9a9b405f71b4.yml
3+
openapi_spec_hash: 53fed4f8bfe081ebe46f892dd6f1f501
44
config_hash: b893614299dd99b07446072ade3737d1

src/resources/agent/schedules.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ export interface ScheduleCreateParams {
234234
*/
235235
agent_config?: AgentAPI.AmbientAgentConfig;
236236

237+
/**
238+
* Agent UID to use as the execution principal for this schedule. Only valid for
239+
* team-owned schedules.
240+
*/
241+
agent_uid?: string;
242+
237243
/**
238244
* Whether the schedule should be active immediately
239245
*/
@@ -273,6 +279,12 @@ export interface ScheduleUpdateParams {
273279
*/
274280
agent_config?: AgentAPI.AmbientAgentConfig;
275281

282+
/**
283+
* Agent UID to use as the execution principal for this schedule. Only valid for
284+
* team-owned schedules.
285+
*/
286+
agent_uid?: string;
287+
276288
/**
277289
* The prompt/instruction for the agent to execute. Required unless
278290
* agent_config.skill_spec is provided.

tests/api-resources/agent/schedules.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ describe('resource schedules', () => {
5151
skill_spec: 'skill_spec',
5252
worker_host: 'worker_host',
5353
},
54+
agent_uid: 'agent_uid',
5455
enabled: true,
5556
prompt: 'Review open pull requests and provide feedback',
5657
team: true,
@@ -114,6 +115,7 @@ describe('resource schedules', () => {
114115
skill_spec: 'skill_spec',
115116
worker_host: 'worker_host',
116117
},
118+
agent_uid: 'agent_uid',
117119
prompt: 'prompt',
118120
});
119121
});

0 commit comments

Comments
 (0)