Skip to content

python(fix): expose page_size on resource list_ methods#548

Merged
wei-qlu merged 2 commits intomainfrom
python/add-list-page-size
Apr 30, 2026
Merged

python(fix): expose page_size on resource list_ methods#548
wei-qlu merged 2 commits intomainfrom
python/add-list-page-size

Conversation

@wei-qlu
Copy link
Copy Markdown
Contributor

@wei-qlu wei-qlu commented Apr 30, 2026

What was changed

  • Adds an optional page_size kwarg to resource list methods, forwarded to the existing low-level pagination plumbing.
  • Backwards compatible as an optional arg defaulting to None or the set default value.

Validation

  • Manual: traced RunsLowLevelClient.list_runs and called client.async_.runs.list_(page_size=2, limit=6). Saw three round trips at page_size=2. Default call still uses page_size=1000.

@wei-qlu wei-qlu marked this pull request as ready for review April 30, 2026 23:40
@wei-qlu wei-qlu merged commit f21de61 into main Apr 30, 2026
22 checks passed
@wei-qlu wei-qlu deleted the python/add-list-page-size branch April 30, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants