fix(tools): firecrawl-py no more accepts params kwargs #411
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tools
firecrawl_crawl_website_tool
,firecrawl_scrape_website_tool
,firecrawl_search_tool
are passingparams
to firecrawl Python SDK.crewAI-tools/crewai_tools/tools/firecrawl_scrape_website_tool/firecrawl_scrape_website_tool.py
Line 90 in d02d367
crewAI-tools/crewai_tools/tools/firecrawl_crawl_website_tool/firecrawl_crawl_website_tool.py
Line 102 in d02d367
crewAI-tools/crewai_tools/tools/firecrawl_search_tool/firecrawl_search_tool.py
Lines 102 to 105 in d02d367
This kwarg has been deprecated since firecrawl-py 2.0.0 for
crawl
andscrape
, seefirecrawl/firecrawl@29b36c5#diff-483c8de2767d25d6782630bce6706f6a8f3351729762c80b88ba21f93fe1be56
and also for
search
for now, seehttps://github.com/mendableai/firecrawl/blob/8b89470f3c817a24e5e8788c3b7ea2d31acc0c50/apps/python-sdk/firecrawl/firecrawl.py#L611-L623
I would suggest restrict firecrawl-py to <2.0.0 in optional dependencies. Otherwise the tool call results in Tool Error like