Conversation
|
Cursor Agent can help with this pull request. Just |
Add intent-based extraction parameters: - Extract: query (str) and chunks_per_source (int) - Crawl: chunks_per_source (int) only
595aa31 to
8f63652
Compare
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| timeout: float = 150, | ||
| include_favicon: bool = None, | ||
| include_usage: bool = None, | ||
| chunks_per_source: int = None, |
There was a problem hiding this comment.
Bug: Missing query parameter in crawl methods
The PR description states that both query and chunks_per_source parameters should be added to extract and crawl methods. However, while chunks_per_source was added to the crawl methods, the query parameter was only added to the extract methods and is completely missing from _crawl and crawl in both tavily.py and async_tavily.py. This incomplete implementation means users cannot use intent-based content extraction with the crawl API.
Add
queryandchunks_per_sourceparameters to theextractandcrawlmethods to support intent-based content extraction and chunk selection.Note
Adds
queryandchunks_per_sourceparameters toextractandcrawlin both sync and async clients, wiring them through to API payloads.tavily.TavilyClientand asynctavily.AsyncTavilyClient):queryandchunks_per_sourceto method signatures; include in request payload to/extract.chunks_per_sourceto method signatures; include in request payload to/crawl.results,failed_results).Written by Cursor Bugbot for commit 8f63652. This will update automatically on new commits. Configure here.