Overview
The TavilySearch tool is a tool that allows you to search the web using the TavilySearch.How It Works
Getting Started
Simple Usage
- Install dependencies (see Overview above)
- Set required API keys in your environment
- Run the agent example in Overview
Best Practices
Keep TAVILY_API_KEY in the environment
Keep TAVILY_API_KEY in the environment
Set
TAVILY_API_KEY in your shell or .env. The tool reads it automatically — never hard-code the key.Cap max_results
Cap max_results
TavilySearchResults(max_results=5) controls how many hits return. Lower it so the agent processes fewer tokens.Enable include_answer for direct answers
Enable include_answer for direct answers
Set
include_answer=True when the agent needs a synthesised answer rather than raw links — it saves a follow-up LLM step.Related Tools
Tavily
Tavily tool (praisonai-tools)
Exa Search
Exa LangChain integration
DuckDuckGo
Privacy-focused search

