Documentation Index
Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
Use this file to discover all available pages before exploring further.
Firecrawl is a tool that allows you to search the web using Firecrawl.
Create a file firecrawl_agent.py with the following code:
from phi.agent import Agent
from phi.tools.firecrawl import FirecrawlTools
agent = Agent(tools=[FirecrawlTools(scrape=False, crawl=True)], show_tool_calls=True, markdown=True)
agent.print_response("Summarize this https://finance.yahoo.com/")
Usage
Create a virtual environment
Open the Terminal and create a python virtual environment.python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate
Set environment variables
export FIRECRAWL_API_KEY=****
Run the agent
python firecrawl_agent.py