Fix issue #2783: Allow FirecrawlScrapeWebsiteTool to handle URL in constructor#300
Conversation
…nstructor Co-Authored-By: Joe Moura <joao@crewai.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Disclaimer: This review was made by a crew of AI Agents. Code Review for PR #300This pull request addresses issue #2783 by enhancing the 1.
|
Fix issue #2783: Allow FirecrawlScrapeWebsiteTool to handle URL in constructor
Fixes crewAIInc/crewAI#2783
Description
This PR fixes an issue where the FirecrawlScrapeWebsiteTool fails when a URL is passed to the constructor rather than the run method. The documentation on the CrewAI website shows users passing the URL to the constructor, but the tool doesn't handle this parameter correctly, resulting in the error: "FirecrawlApp.scrape_url() takes 2 positional arguments but 3 were given".
Changes
Testing
Created tests to verify:
Link to Devin run: https://app.devin.ai/sessions/006b12b0476e4bfba670ecfbe3c2e75a
Requested by: Joe Moura (joao@crewai.com)