{{ message }}
Repository navigation
Commit 800899e
authored
feat(api): align beta pagination limits and non-null parameters (#4057)
## Summary
Aligns beta agent pagination with the API’s shared validation rules.
## Changes
Beta agent pagination now follows shared API validation: page sizes must
be 1–100 (default 20). Session, vault, and vault-credential listings
reject out-of-range limits with HTTP 400 instead of clamping them. Omit
optional pagination arguments to use defaults. List parameter
annotations no longer include `None` for the five list limits or the
artifact `after` cursor. Prefer omitting these arguments; existing
Python `None` serialization still omits them.
Affected beta resources: agents, sessions, session artifacts, vaults,
and vault credentials (`beta.agents`). The corresponding HTTP paths are
`/agents`, `/agents/sessions`,
`/agents/sessions/{session_id}/artifacts`, `/vaults`, and
`/vaults/{vault_id}/credentials`.
## Compatibility and migration
This follows the beta API’s move to shared pagination validation. Omit
`limit` to use 20, or supply an integer from 1 through 100. Omit `after`
to start at the first page. Artifact listing already enforced the
numeric range; the newly rejected out-of-range requests identified here
are session, vault, and vault-credential listings.
The change remains within the beta surface and does not use a
major-version marker.
Co-authored-by: jbeckwith-oai <269036200+jbeckwith-oai@users.noreply.github.com>1 parent b7a1990 commit 800899e
14 files changed
Lines changed: 121 additions & 150 deletions
File tree
- api_reference
- src/openai
- resources/beta/agents
- sessions
- vaults
- types/beta
- agents
- sessions
- vaults
- tests/api_resources/beta/agents
- vaults
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31155 | 31155 | | |
31156 | 31156 | | |
31157 | 31157 | | |
31158 | | - | |
31159 | | - | |
31160 | | - | |
| 31158 | + | |
31161 | 31159 | | |
31162 | 31160 | | |
31163 | | - | |
| 31161 | + | |
| 31162 | + | |
| 31163 | + | |
31164 | 31164 | | |
31165 | 31165 | | |
31166 | 31166 | | |
| |||
31964 | 31964 | | |
31965 | 31965 | | |
31966 | 31966 | | |
31967 | | - | |
31968 | | - | |
31969 | | - | |
| 31967 | + | |
31970 | 31968 | | |
31971 | 31969 | | |
31972 | | - | |
| 31970 | + | |
| 31971 | + | |
| 31972 | + | |
31973 | 31973 | | |
31974 | 31974 | | |
31975 | 31975 | | |
31976 | 31976 | | |
31977 | 31977 | | |
31978 | 31978 | | |
31979 | | - | |
31980 | | - | |
| 31979 | + | |
| 31980 | + | |
31981 | 31981 | | |
31982 | 31982 | | |
31983 | 31983 | | |
31984 | 31984 | | |
31985 | 31985 | | |
31986 | 31986 | | |
31987 | | - | |
31988 | | - | |
| 31987 | + | |
| 31988 | + | |
31989 | 31989 | | |
31990 | 31990 | | |
31991 | 31991 | | |
31992 | 31992 | | |
31993 | 31993 | | |
31994 | 31994 | | |
31995 | | - | |
| 31995 | + | |
31996 | 31996 | | |
31997 | 31997 | | |
31998 | 31998 | | |
| |||
32329 | 32329 | | |
32330 | 32330 | | |
32331 | 32331 | | |
| 32332 | + | |
| 32333 | + | |
| 32334 | + | |
| 32335 | + | |
| 32336 | + | |
| 32337 | + | |
| 32338 | + | |
| 32339 | + | |
| 32340 | + | |
| 32341 | + | |
32332 | 32342 | | |
32333 | 32343 | | |
32334 | 32344 | | |
32335 | 32345 | | |
32336 | 32346 | | |
32337 | | - | |
32338 | | - | |
| 32347 | + | |
| 32348 | + | |
| 32349 | + | |
32339 | 32350 | | |
32340 | 32351 | | |
32341 | 32352 | | |
32342 | | - | |
32343 | | - | |
32344 | | - | |
| 32353 | + | |
32345 | 32354 | | |
32346 | 32355 | | |
32347 | | - | |
32348 | | - | |
32349 | | - | |
32350 | | - | |
32351 | | - | |
32352 | | - | |
32353 | | - | |
32354 | | - | |
32355 | | - | |
32356 | | - | |
32357 | | - | |
32358 | | - | |
32359 | | - | |
| 32356 | + | |
| 32357 | + | |
32360 | 32358 | | |
32361 | 32359 | | |
32362 | 32360 | | |
| |||
32365 | 32363 | | |
32366 | 32364 | | |
32367 | 32365 | | |
32368 | | - | |
| 32366 | + | |
32369 | 32367 | | |
32370 | 32368 | | |
32371 | 32369 | | |
| |||
33227 | 33225 | | |
33228 | 33226 | | |
33229 | 33227 | | |
33230 | | - | |
33231 | | - | |
33232 | | - | |
33233 | | - | |
33234 | | - | |
33235 | | - | |
33236 | | - | |
33237 | 33228 | | |
33238 | 33229 | | |
33239 | 33230 | | |
33240 | 33231 | | |
33241 | | - | |
33242 | | - | |
33243 | | - | |
| 33232 | + | |
33244 | 33233 | | |
33245 | | - | |
33246 | | - | |
33247 | | - | |
| 33234 | + | |
| 33235 | + | |
| 33236 | + | |
| 33237 | + | |
| 33238 | + | |
33248 | 33239 | | |
33249 | 33240 | | |
33250 | 33241 | | |
33251 | | - | |
33252 | | - | |
| 33242 | + | |
| 33243 | + | |
| 33244 | + | |
33253 | 33245 | | |
33254 | 33246 | | |
33255 | 33247 | | |
| |||
33276 | 33268 | | |
33277 | 33269 | | |
33278 | 33270 | | |
| 33271 | + | |
| 33272 | + | |
| 33273 | + | |
| 33274 | + | |
| 33275 | + | |
| 33276 | + | |
33279 | 33277 | | |
33280 | 33278 | | |
33281 | 33279 | | |
| |||
33603 | 33601 | | |
33604 | 33602 | | |
33605 | 33603 | | |
33606 | | - | |
33607 | | - | |
33608 | | - | |
33609 | | - | |
33610 | | - | |
33611 | | - | |
33612 | | - | |
33613 | 33604 | | |
33614 | 33605 | | |
33615 | 33606 | | |
33616 | 33607 | | |
33617 | | - | |
33618 | | - | |
33619 | | - | |
| 33608 | + | |
33620 | 33609 | | |
33621 | | - | |
33622 | | - | |
33623 | | - | |
| 33610 | + | |
| 33611 | + | |
| 33612 | + | |
| 33613 | + | |
| 33614 | + | |
33624 | 33615 | | |
33625 | 33616 | | |
33626 | 33617 | | |
33627 | | - | |
33628 | | - | |
| 33618 | + | |
| 33619 | + | |
| 33620 | + | |
33629 | 33621 | | |
33630 | 33622 | | |
33631 | 33623 | | |
| |||
33652 | 33644 | | |
33653 | 33645 | | |
33654 | 33646 | | |
| 33647 | + | |
| 33648 | + | |
| 33649 | + | |
| 33650 | + | |
| 33651 | + | |
| 33652 | + | |
33655 | 33653 | | |
33656 | 33654 | | |
33657 | 33655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||

0 commit comments