Skip to content

feat: Include pagination in assistants search response#6526

Merged
hinthornw merged 5 commits intomainfrom
wfh/sdk_py/return_pagination
Dec 2, 2025
Merged

feat: Include pagination in assistants search response#6526
hinthornw merged 5 commits intomainfrom
wfh/sdk_py/return_pagination

Conversation

@hinthornw
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langgraph-docs-preview Ignored Ignored Preview Dec 2, 2025 2:25am

assistants: list[Assistant]
"""The assistants returned for the current search page."""
next: str | None
"""Pagination cursor from the ``X-Pagination-Next`` response header."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well include count too.

count: int
"""Page size from the ``X-Pagination-Total`` response header."""

(or call it size)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya I was considering hat. I think I'd prefer not though, since we actually only return max(len(assistants), limit + 1) and just kept the header set for backwards compat reasons. Since this is a net-new API, I'd prefer to avoid adding rn

Open to being overruled ofc

@hinthornw hinthornw force-pushed the wfh/sdk_py/return_pagination branch from eea4d92 to 3b585a9 Compare December 2, 2025 02:25
@hinthornw hinthornw merged commit 55ed7d4 into main Dec 2, 2025
65 checks passed
@hinthornw hinthornw deleted the wfh/sdk_py/return_pagination branch December 2, 2025 04:18
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