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.
π― Why Web Search?
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
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
Simple Web Search
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 URLsProduction β Choose Brave, Google, Tavily, or Exa
Step 2: Configure API Keys
Set environment variables or module settings:
Step 3: Execute Search
π§° 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 runprovider: Optional provider override (""uses configured default provider, HTTP by default)maxResults: Optional cap (0uses provider/module defaults)
π Next Steps
π Getting Started - Detailed usage patterns
π§ Providers Reference - Complete provider documentation
π€ Agent Integration - Using web search with agents
π‘οΈ Security - Security best practices for web search
π‘ Common Patterns
Fact Checking
Multi-Source Research
RAG Enhancement
β οΈ Rate Limiting & Costs
HTTP
Unlimited
$0
No API key, basic results
Brave
2,000/month
Free tier only
$0 in free tier
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