File size: 389 Bytes
7516245 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from langchain_community.tools.tavily_search import TavilySearchResults
def get_search_tool(max_results=10):
"""
Create and return a TavilySearchResults tool
Args:
max_results (int): Maximum number of search results to return
Returns:
TavilySearchResults: Configured search tool
"""
return TavilySearchResults(max_results=max_results) |