Repository navigation
feat(drivers-web-search-firecrawl): add FirecrawlWebSearchDriver - #2367
Open
JuampiHernandez wants to merge 1 commit into
Open
JuampiHernandez wants to merge 1 commit into
JuampiHernandez wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hey, I'm Juampi from the Firecrawl team.
Describe your changes
Adds a FirecrawlWebSearchDriver for the Firecrawl Search API, following the other web search drivers: attrs class, lazy optional-dependency client,
results_countmapped tolimit, andparamsand kwargs passed through toFirecrawl.search. It returns a ListArtifact of JsonArtifacts with title, url and description. Whenscrape_optionsis set, each result also carries the page content (markdown, summary or json).api_urlcan point at a self-hosted Firecrawl.The extra pins
firecrawl-py>=4.46.0, the first release whose client takes anoriginargument; the driver sets it togriptape.Includes the drivers-web-search-firecrawl extra, unit tests, and a docs section with an example. The example reads
FIRECRAWL_API_KEY, so I added it to the docs integration workflow env next to the other keys. It needs anINTEG_FIRECRAWL_API_KEYsecret, and I'm happy to provide a key for it.Tested against the live API: plain search, search with
scrape_options(markdown and summary), and an Agent using WebSearchTool with this driver (OpenAiChatPromptDriver).Issue ticket number and link
Discussion: https://github.com/orgs/griptape-ai/discussions/2366
📚 Documentation preview 📚: https://griptape--2367.org.readthedocs.build//2367/