-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add a "total" field to All List APIs (HTTP & Python SDK) #7911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ge and page_size, at the top level of the response data.
|
Thanks, please make sure to pass API test in CI |
…he response dictionary using the correct key, matching the new API response structure.
|
@yingfeng Hey, the failed test cases have been updated; please give it another CI shot, thanks! |
|
All relevant test cases have been updated again. |
|
@yingfeng |
|
Appreciations! |
What problem does this PR solve?
Add a "total" field to all List APIs (HTTP & Python SDK) to resolve pagination inaccuracies when integrating with third-party systems.
1. HTTP API
All list endpoints (datasets, documents, chunks, chat assistants, agent sessions, chat sessions) now return a response with the following top-level fields:
2. Python SDK Updates
All list_* methods in the SDK (e.g., list_datasets, list_documents, list_chunks, list_chats, list_agents, list_sessions) now return a dictionary with:
3. Test Suite Updates
4. Documentation Updates
HTTP API Reference: All relevant list endpoint sections updated to show the new response structure, including example JSON responses and field descriptions.
Python API Reference:
Type of change