Skip to content

Commit 4bd524f

Browse files
refactor: undeprecate total_count from pagination API, remove remaining_count (#8084)
1 parent dd8fe60 commit 4bd524f

File tree

68 files changed

+415
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+415
-61
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b56067b06cdf0eb4150f81d8f53e46d9c79b8cbecba6f8c0ee82f798d8cd2447.yml
3-
openapi_spec_hash: 4e0020f255cd31baa79227a5888e1eac
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-3d441e9c2074aef7bd1e87b2ebfbe5c25e340084dbdfeed8a2e4dc9384561e3b.yml
3+
openapi_spec_hash: 250bfdf2c2270ade53c058419e23c5dc
44
config_hash: de99cfce88e2d1f02246dc6c2f43bc6c

src/runloop_api_client/resources/agents.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def retrieve(
137137
def list(
138138
self,
139139
*,
140+
include_total_count: bool | Omit = omit,
140141
is_public: bool | Omit = omit,
141142
limit: int | Omit = omit,
142143
name: str | Omit = omit,
@@ -154,6 +155,9 @@ def list(
154155
List all Agents for the authenticated account with pagination support.
155156
156157
Args:
158+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
159+
the count query for better performance on large datasets.
160+
157161
is_public: Filter agents by public visibility.
158162
159163
limit: The limit of items to return. Default is 20. Max is 5000.
@@ -184,6 +188,7 @@ def list(
184188
timeout=timeout,
185189
query=maybe_transform(
186190
{
191+
"include_total_count": include_total_count,
187192
"is_public": is_public,
188193
"limit": limit,
189194
"name": name,
@@ -310,6 +315,7 @@ async def retrieve(
310315
def list(
311316
self,
312317
*,
318+
include_total_count: bool | Omit = omit,
313319
is_public: bool | Omit = omit,
314320
limit: int | Omit = omit,
315321
name: str | Omit = omit,
@@ -327,6 +333,9 @@ def list(
327333
List all Agents for the authenticated account with pagination support.
328334
329335
Args:
336+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
337+
the count query for better performance on large datasets.
338+
330339
is_public: Filter agents by public visibility.
331340
332341
limit: The limit of items to return. Default is 20. Max is 5000.
@@ -357,6 +366,7 @@ def list(
357366
timeout=timeout,
358367
query=maybe_transform(
359368
{
369+
"include_total_count": include_total_count,
360370
"is_public": is_public,
361371
"limit": limit,
362372
"name": name,

src/runloop_api_client/resources/benchmark_jobs.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def retrieve(
131131
def list(
132132
self,
133133
*,
134+
include_total_count: bool | Omit = omit,
134135
limit: int | Omit = omit,
135136
name: str | Omit = omit,
136137
starting_after: str | Omit = omit,
@@ -145,6 +146,9 @@ def list(
145146
[Beta] List all BenchmarkJobs matching filter.
146147
147148
Args:
149+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
150+
the count query for better performance on large datasets.
151+
148152
limit: The limit of items to return. Default is 20. Max is 5000.
149153
150154
name: Filter by name
@@ -168,6 +172,7 @@ def list(
168172
timeout=timeout,
169173
query=maybe_transform(
170174
{
175+
"include_total_count": include_total_count,
171176
"limit": limit,
172177
"name": name,
173178
"starting_after": starting_after,
@@ -286,6 +291,7 @@ async def retrieve(
286291
async def list(
287292
self,
288293
*,
294+
include_total_count: bool | Omit = omit,
289295
limit: int | Omit = omit,
290296
name: str | Omit = omit,
291297
starting_after: str | Omit = omit,
@@ -300,6 +306,9 @@ async def list(
300306
[Beta] List all BenchmarkJobs matching filter.
301307
302308
Args:
309+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
310+
the count query for better performance on large datasets.
311+
303312
limit: The limit of items to return. Default is 20. Max is 5000.
304313
305314
name: Filter by name
@@ -323,6 +332,7 @@ async def list(
323332
timeout=timeout,
324333
query=await async_maybe_transform(
325334
{
335+
"include_total_count": include_total_count,
326336
"limit": limit,
327337
"name": name,
328338
"starting_after": starting_after,

src/runloop_api_client/resources/benchmark_runs.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def list(
8282
self,
8383
*,
8484
benchmark_id: str | Omit = omit,
85+
include_total_count: bool | Omit = omit,
8586
limit: int | Omit = omit,
8687
name: str | Omit = omit,
8788
starting_after: str | Omit = omit,
@@ -98,6 +99,9 @@ def list(
9899
Args:
99100
benchmark_id: The Benchmark ID to filter by.
100101
102+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
103+
the count query for better performance on large datasets.
104+
101105
limit: The limit of items to return. Default is 20. Max is 5000.
102106
103107
name: Filter by name
@@ -123,6 +127,7 @@ def list(
123127
query=maybe_transform(
124128
{
125129
"benchmark_id": benchmark_id,
130+
"include_total_count": include_total_count,
126131
"limit": limit,
127132
"name": name,
128133
"starting_after": starting_after,
@@ -220,6 +225,7 @@ def list_scenario_runs(
220225
self,
221226
id: str,
222227
*,
228+
include_total_count: bool | Omit = omit,
223229
limit: int | Omit = omit,
224230
starting_after: str | Omit = omit,
225231
state: Literal["running", "scoring", "scored", "completed", "canceled", "timeout", "failed"] | Omit = omit,
@@ -234,6 +240,9 @@ def list_scenario_runs(
234240
List started scenario runs for a benchmark run.
235241
236242
Args:
243+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
244+
the count query for better performance on large datasets.
245+
237246
limit: The limit of items to return. Default is 20. Max is 5000.
238247
239248
starting_after: Load the next page of data starting after the item with the given ID.
@@ -260,6 +269,7 @@ def list_scenario_runs(
260269
timeout=timeout,
261270
query=maybe_transform(
262271
{
272+
"include_total_count": include_total_count,
263273
"limit": limit,
264274
"starting_after": starting_after,
265275
"state": state,
@@ -328,6 +338,7 @@ def list(
328338
self,
329339
*,
330340
benchmark_id: str | Omit = omit,
341+
include_total_count: bool | Omit = omit,
331342
limit: int | Omit = omit,
332343
name: str | Omit = omit,
333344
starting_after: str | Omit = omit,
@@ -344,6 +355,9 @@ def list(
344355
Args:
345356
benchmark_id: The Benchmark ID to filter by.
346357
358+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
359+
the count query for better performance on large datasets.
360+
347361
limit: The limit of items to return. Default is 20. Max is 5000.
348362
349363
name: Filter by name
@@ -369,6 +383,7 @@ def list(
369383
query=maybe_transform(
370384
{
371385
"benchmark_id": benchmark_id,
386+
"include_total_count": include_total_count,
372387
"limit": limit,
373388
"name": name,
374389
"starting_after": starting_after,
@@ -466,6 +481,7 @@ def list_scenario_runs(
466481
self,
467482
id: str,
468483
*,
484+
include_total_count: bool | Omit = omit,
469485
limit: int | Omit = omit,
470486
starting_after: str | Omit = omit,
471487
state: Literal["running", "scoring", "scored", "completed", "canceled", "timeout", "failed"] | Omit = omit,
@@ -480,6 +496,9 @@ def list_scenario_runs(
480496
List started scenario runs for a benchmark run.
481497
482498
Args:
499+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
500+
the count query for better performance on large datasets.
501+
483502
limit: The limit of items to return. Default is 20. Max is 5000.
484503
485504
starting_after: Load the next page of data starting after the item with the given ID.
@@ -506,6 +525,7 @@ def list_scenario_runs(
506525
timeout=timeout,
507526
query=maybe_transform(
508527
{
528+
"include_total_count": include_total_count,
509529
"limit": limit,
510530
"starting_after": starting_after,
511531
"state": state,

src/runloop_api_client/resources/benchmarks.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def update(
244244
def list(
245245
self,
246246
*,
247+
include_total_count: bool | Omit = omit,
247248
limit: int | Omit = omit,
248249
name: str | Omit = omit,
249250
starting_after: str | Omit = omit,
@@ -258,6 +259,9 @@ def list(
258259
List all Benchmarks matching filter.
259260
260261
Args:
262+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
263+
the count query for better performance on large datasets.
264+
261265
limit: The limit of items to return. Default is 20. Max is 5000.
262266
263267
name: Filter by name
@@ -282,6 +286,7 @@ def list(
282286
timeout=timeout,
283287
query=maybe_transform(
284288
{
289+
"include_total_count": include_total_count,
285290
"limit": limit,
286291
"name": name,
287292
"starting_after": starting_after,
@@ -344,6 +349,7 @@ def definitions(
344349
def list_public(
345350
self,
346351
*,
352+
include_total_count: bool | Omit = omit,
347353
limit: int | Omit = omit,
348354
starting_after: str | Omit = omit,
349355
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -357,6 +363,9 @@ def list_public(
357363
List all public benchmarks matching filter.
358364
359365
Args:
366+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
367+
the count query for better performance on large datasets.
368+
360369
limit: The limit of items to return. Default is 20. Max is 5000.
361370
362371
starting_after: Load the next page of data starting after the item with the given ID.
@@ -379,6 +388,7 @@ def list_public(
379388
timeout=timeout,
380389
query=maybe_transform(
381390
{
391+
"include_total_count": include_total_count,
382392
"limit": limit,
383393
"starting_after": starting_after,
384394
},
@@ -709,6 +719,7 @@ async def update(
709719
def list(
710720
self,
711721
*,
722+
include_total_count: bool | Omit = omit,
712723
limit: int | Omit = omit,
713724
name: str | Omit = omit,
714725
starting_after: str | Omit = omit,
@@ -723,6 +734,9 @@ def list(
723734
List all Benchmarks matching filter.
724735
725736
Args:
737+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
738+
the count query for better performance on large datasets.
739+
726740
limit: The limit of items to return. Default is 20. Max is 5000.
727741
728742
name: Filter by name
@@ -747,6 +761,7 @@ def list(
747761
timeout=timeout,
748762
query=maybe_transform(
749763
{
764+
"include_total_count": include_total_count,
750765
"limit": limit,
751766
"name": name,
752767
"starting_after": starting_after,
@@ -809,6 +824,7 @@ async def definitions(
809824
def list_public(
810825
self,
811826
*,
827+
include_total_count: bool | Omit = omit,
812828
limit: int | Omit = omit,
813829
starting_after: str | Omit = omit,
814830
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -822,6 +838,9 @@ def list_public(
822838
List all public benchmarks matching filter.
823839
824840
Args:
841+
include_total_count: If true (default), includes total_count in the response. Set to false to skip
842+
the count query for better performance on large datasets.
843+
825844
limit: The limit of items to return. Default is 20. Max is 5000.
826845
827846
starting_after: Load the next page of data starting after the item with the given ID.
@@ -844,6 +863,7 @@ def list_public(
844863
timeout=timeout,
845864
query=maybe_transform(
846865
{
866+
"include_total_count": include_total_count,
847867
"limit": limit,
848868
"starting_after": starting_after,
849869
},

0 commit comments

Comments
 (0)