Skip to content

Commit 12c55bb

Browse files
feat(benchmark-runs): add state filter and multi-value benchmark_id support to listBenchmarkRuns (#8480)
1 parent 1f26406 commit 12c55bb

3 files changed

Lines changed: 8 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: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-c33fa67077f6f9cc8cb6d82a71657693f7288e1eff48b7b94099f2f11966b67b.yml
3-
openapi_spec_hash: 4329105152eb16bc5d2063038603ea61
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8ea4486cd6de6410a6648545710d617f175994f8d12753783585029ce22c225c.yml
3+
openapi_spec_hash: fcb07ce127f4290f1dac51db130365aa
44
config_hash: 6649774d90af30c3559d6a242b6cb4b0

src/resources/benchmark-runs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ export interface BenchmarkRunListParams extends BenchmarkRunsCursorIDPageParams
176176
* Filter by name
177177
*/
178178
name?: string;
179+
180+
/**
181+
* Filter by state
182+
*/
183+
state?: string;
179184
}
180185

181186
export interface BenchmarkRunListScenarioRunsParams extends BenchmarkRunsCursorIDPageParams {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('resource benchmarkRuns', () => {
5555
limit: 0,
5656
name: 'name',
5757
starting_after: 'starting_after',
58+
state: 'state',
5859
},
5960
{ path: '/_stainless_unknown_path' },
6061
),

0 commit comments

Comments
 (0)