-
Notifications
You must be signed in to change notification settings - Fork 57
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
[TF-3443] Add pagination example #111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a JS version
We currently do not have JS version of the pagination in SDK, shall we first land the pagination in python SDK along with its docs and then docs for JS after? |
Hmm, IIRC it was agreed there would be parity between the two SDKs to keep them evolving alongside each other. cc @frankfeng98 @paveldudka is this feature launch ready before implementation in the JS SDK? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall! If we could add more comments about pagination in the script. that will be great
from playwright.sync_api import sync_playwright | ||
|
||
import agentql | ||
from agentql.tools.sync_api import paginate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment here about importing paginate
module?
} | ||
} | ||
""" | ||
paginated_data = paginate(page, QUERY, 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, can we add some comments to describe / introduce the method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.