For the complete documentation index, see llms.txt. This page is also available as Markdown.

Web Search

Web search integration for AI agents - 5 providers, real-time internet access, RAG enhancement

Real-time internet search capabilities for AI agents. Give your agents the ability to browse the web, fact-check information, and access current data beyond their training knowledge.

Extend AI agents with live internet access:

  • πŸ“š Real-time Information - Access current news, prices, events

  • βœ… Fact Checking - Verify claims against live sources

  • πŸ” Research Tasks - Multi-source information gathering

  • 🧠 RAG Enhancement - Combine retrieved web content with vector memory

  • πŸ€– Agent Autonomy - Agents can independently search for information

πŸ”Œ Available Providers

Provider
API Key
Free Tier
Best For

HTTP

❌ None

βœ… Unlimited

Generic URL fetching, testing

Brave Search

βœ… BRAVE_API_KEY

2K/month

Privacy-focused search

Google Custom Search

βœ… GOOGLE_API_KEY

100/day

Large-scale deployments

Tavily

βœ… TAVILY_API_KEY

1K/month

AI-optimized search

Exa

βœ… EXA_API_KEY

Paid

Neural/semantic search

Current release includes 5 providers with a shared interface and normalized response format.

πŸ—οΈ Architecture

πŸš€ Quick Start

Async Search (Non-blocking)

With Agent

πŸ“Š Result Format

Every search returns results with a consistent 8-field format:

πŸ”‘ Getting Started

Step 1: Choose a Provider

  • No API Key Required β†’ Use "http" provider (default)

  • Quick Testing β†’ Use "http" with direct URLs

  • Production β†’ Choose Brave, Google, Tavily, or Exa

Step 2: Configure API Keys

Set environment variables or module settings:

🧰 Agent Tool Contract

When used as an agent tool, the auto-registered key is webSearch@bxai and maps to this method:

  • query: Search text the agent should run

  • provider: Optional provider override ("" uses configured default provider, HTTP by default)

  • maxResults: Optional cap (0 uses provider/module defaults)

πŸ“– Next Steps

πŸ’‘ Common Patterns

Fact Checking

Multi-Source Research

RAG Enhancement

⚠️ Rate Limiting & Costs

Provider
Rate Limit
Cost
Notes

HTTP

Unlimited

$0

No API key, basic results

Brave

2,000/month

Free tier only

$0 in free tier

Google

100/day

$5-25/month

Per 1K queries after free tier

Tavily

1,000/month

Free tier + paid

$0 in free tier

Exa

Varies

Paid

Premium semantic search

Best Practice: Start with free tier providers, implement rate limiting, and monitor costs:


πŸ”— References

Last updated