Skip to content

Service

TAVILY_SEARCH_TOOL_DESCRIPTION = 'A search engine optimized for comprehensive, accurate, and trusted results. Useful for when you need to answer questions about current events. Input should be a search query.\nBe relatively specific in the question when possible. Several sources of information will be returned for each query.' module-attribute

MyTavilySearchTool

Bases: TavilySearchResults

Thin wrapper around the langchain implementation of the Tavily Search Tool.

api_wrapper instance-attribute

args_schema = TavilySearchArgs class-attribute instance-attribute

description = TAVILY_SEARCH_TOOL_DESCRIPTION class-attribute instance-attribute

name = ToolNames.TAVILY_SEARCH class-attribute instance-attribute

TavilySearchArgs

Bases: BaseModel

query = Field(min_length=10, max_length=500) class-attribute instance-attribute

get_tavily_client(fake=False)

get_tavily_tool(client, fake=False)

search(tavily_client, query) async

Search Tavily for a query.