GitHub
/tavily-ai/tavily-cookbook/agent-toolkitPyPI
tavily-agent-toolkitWhat Is the Agent Toolkit?
The Tavily Agent Toolkit is a Python library that gives your agents optimized research primitives on top of the Tavily API. Instead of wiring up raw API calls, managing token limits, deduplicating sources, and formatting results for LLMs yourself, the toolkit handles all of that so your agent can focus on reasoning. It provides three layers:Installation
Available Tools
Tools Reference
Full documentation for every tool: parameters, output shapes, and usage examples.
Pre-Built Agents
hybrid_research
Combines your internal knowledge base with real-time web research. You provide a RAG function that queries your internal data — the agent identifies gaps and fills them with web research.
Two modes:
Hybrid Research
Deep dive into
hybrid_research: modes, structured output, custom synthesis, and data enrichment patterns.Model Configuration
All tools accept aModelConfig for LLM operations. Use the "provider:model" format:
init_chat_model: OpenAI, Anthropic, Google, Groq, Mistral, Cohere, Together, Fireworks, AWS Bedrock, Azure, and more.
Use-Case Recipes
Production-ready agent implementations. Each is available in both Anthropic SDK and LangGraph flavors.Chatbot
Routes between quick search and deep research based on query complexity.
Company Intelligence
Crawls websites and searches the web for comprehensive company research.
Social Media Research
Searches across TikTok, Reddit, X, LinkedIn, and more for any topic.
Hybrid Research
Combines internal data with web research for comprehensive reports.