Overview
Advanced web search using the Tavily API.Basic Usage
Advanced Search
Parameters
Function Parameters:api_key(str): Your Tavily API key (required)
query(str): The search querysearch_deep(str): Search depth - ‘basic’ or ‘advanced’ (default: ‘basic’)topic(str): Search category - ‘general’ or ‘news’ (default: ‘general’)time_range(str): Time filter - ‘day’, ‘week’, ‘month’, ‘year’, ‘d’, ‘w’, ‘m’, ‘y’ (optional)
Result Format
Search results are returned as a list of dictionaries:Getting an API Key
- Sign up at https://app.tavily.com/home
- Get your API key from the dashboard
- Use it in the
tavily_search_toolfunction

