Skip to content

Commit 220e7b7

Browse files
feat: Include agent UID in scheduled agent API responses
1 parent 059f1e3 commit 220e7b7

3 files changed

Lines changed: 9 additions & 4 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: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-c58f2ee13e97acdf607650e199cb1377d2767c6bd6183b5f1212fa2666bb5f04.yml
3-
openapi_spec_hash: 19295b9e19b2ab3093087d9b11a6095f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-1fecc5f5d6ee664d804b81bd1aa6eec4d3f170ffa788d214fead4f7e95ab9d4e.yml
3+
openapi_spec_hash: 82990b03bd5a93e45bfc79db56ae7fc0
44
config_hash: f52e7636f248f25c4ea0b086e7326816

src/resources/agent/schedules.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ export interface ScheduledAgentItem {
178178
*/
179179
agent_config?: AgentAPI.AmbientAgentConfig;
180180

181+
/**
182+
* UID of the agent that this schedule runs as
183+
*/
184+
agent_uid?: string;
185+
181186
created_by?: AgentAPI.UserProfile;
182187

183188
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('resource schedules', () => {
5151
skill_spec: 'skill_spec',
5252
worker_host: 'worker_host',
5353
},
54-
agent_uid: 'agent_uid',
54+
agent_uid: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
5555
enabled: true,
5656
mode: 'normal',
5757
prompt: 'Review open pull requests and provide feedback',
@@ -116,7 +116,7 @@ describe('resource schedules', () => {
116116
skill_spec: 'skill_spec',
117117
worker_host: 'worker_host',
118118
},
119-
agent_uid: 'agent_uid',
119+
agent_uid: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
120120
mode: 'normal',
121121
prompt: 'prompt',
122122
});

0 commit comments

Comments
 (0)