Skip to main content
The Exa Search tool lets an agent run neural web search and retrieve page contents through the Exa API.

Overview

The Exa Search tool is a tool that allows you to search the web and retrieve content using the Exa API.

How It Works

Getting Started

1

Simple Usage

  1. Install dependencies (see Overview above)
  2. Set required API keys in your environment
  3. Run the agent example in Overview
2

With Configuration

Use the same tool with an agent — see the Overview example, or pass env vars from the sections above.

Best Practices

Read the key with os.environ["EXA_API_KEY"] and set it in your shell or .env. Never hard-code it in the tool function.
search_and_contents accepts num_results=5. Keep it low so the agent processes fewer tokens — raising it retrieves full page text for every hit.
Exa returns HTTP 429 when the plan quota is exceeded. Wrap the call in try/except so the agent can fall back to another search tool instead of crashing.

Exa

Neural search (praisonai-tools)

Tavily

AI-powered search

Serper

Google search API