Code

cookbook/agent_concepts/tools/exa_tools.py
from agno.agent import Agent
from agno.tools.exa import ExaTools

agent = Agent(
    tools=[ExaTools(include_domains=["cnbc.com", "reuters.com", "bloomberg.com"])],
    show_tool_calls=True,
)
agent.print_response("Search for AAPL news", markdown=True)

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Set your API key

export EXA_API_KEY=xxx
3

Install libraries

pip install -U exa-py agno
4

Run Agent