Skip to content

Commit 42f4b80

Browse files
feat: [REMOTE-1481] [3/N] Add executor filter to run list API
1 parent b7eae5e commit 42f4b80

3 files changed

Lines changed: 11 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: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-f5a88aa4f1991447272228b7024ebfbec99d31706b8806058917a3f90dd39d00.yml
3-
openapi_spec_hash: 1952fae99172f1adaf35d800b0d63936
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c115a70d043bb17e7591b51464aa8666f7124fb137334d422a4281b1d9ee373f.yml
3+
openapi_spec_hash: 66546de6547990d8367b531ab9e0302a
44
config_hash: 44a1e8f98607a5cf03815a63bae63453

src/resources/agent/runs.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ export interface RunItem {
345345
*/
346346
execution_location?: 'LOCAL' | 'REMOTE';
347347

348+
executor?: AgentAPI.UserProfile;
349+
348350
/**
349351
* Whether the sandbox environment is currently running
350352
*/
@@ -655,6 +657,12 @@ export interface RunListParams extends RunsCursorPageParams {
655657
*/
656658
execution_location?: 'LOCAL' | 'REMOTE';
657659

660+
/**
661+
* Filter by the user or agent that executed the run. This will often be the same
662+
* as the creator, but not always: users may delegate tasks to agents.
663+
*/
664+
executor?: string;
665+
658666
/**
659667
* Filter by model ID
660668
*/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('resource runs', () => {
4646
cursor: 'cursor',
4747
environment_id: 'environment_id',
4848
execution_location: 'LOCAL',
49+
executor: 'executor',
4950
limit: 1,
5051
model_id: 'model_id',
5152
name: 'name',

0 commit comments

Comments
 (0)