Skip to content

Commit 64c6a1f

Browse files
feat: Create run for every local conversation and add filter
1 parent 0a7a253 commit 64c6a1f

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: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-d9e0c6bea8d4c2414ec2bcd18c2e748b43110079c81906aa6c79b350b408f96b.yml
3-
openapi_spec_hash: 598927b816525740620b414c6d147184
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-4d864538f582c11b4adf6bb3e3825561948c9957ab31157a7619f9af6aca04c2.yml
3+
openapi_spec_hash: 6b7198d57dc97873da35ef9c641bfe7b
44
config_hash: 1888db8b2f33dc16874aea51a90e78f7

src/resources/agent/runs.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,14 @@ export interface RunItem {
233233

234234
creator?: AgentAPI.UserProfile;
235235

236+
/**
237+
* Where the run executed:
238+
*
239+
* - LOCAL: Executed in the user's local Oz environment
240+
* - REMOTE: Executed by a remote/cloud worker
241+
*/
242+
execution_location?: 'LOCAL' | 'REMOTE';
243+
236244
/**
237245
* Whether the sandbox environment is currently running
238246
*/
@@ -482,6 +490,11 @@ export interface RunListParams extends RunsCursorPageParams {
482490
*/
483491
environment_id?: string;
484492

493+
/**
494+
* Filter by where the run executed
495+
*/
496+
execution_location?: 'LOCAL' | 'REMOTE';
497+
485498
/**
486499
* Filter by model ID
487500
*/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe('resource runs', () => {
4444
creator: 'creator',
4545
cursor: 'cursor',
4646
environment_id: 'environment_id',
47+
execution_location: 'LOCAL',
4748
limit: 1,
4849
model_id: 'model_id',
4950
name: 'name',

0 commit comments

Comments
 (0)