TavilySearchTool with AG2 Agents.
Configuring Your Tavily API Key
-
Create a Tavily Account:
- Visit Tavily AI
- Click
Sign Upand create an account
-
Get API Key:
- Navigate to Tavily API
- Generate API key under API Keys
-
Set Environment Variable:
Package Installation
To get started with theTavily Search integration in AG2, follow these
steps:
Install AG2 with openai extra since we use openai in our examples:
Note: If you have been usingYou’re all set! Now you can start using Tavily AI Search with AG2.autogenorag2, all you need to do is upgrade it using:orasautogen, andag2are aliases for the same PyPI package.
Implementation
TheTavilySearchTool enables agents to perform real time AI Powered
web search.