Class TavilyWebSearchEngine

java.lang.Object
dev.langchain4j.web.search.tavily.TavilyWebSearchEngine
All Implemented Interfaces:
WebSearchEngine

public class TavilyWebSearchEngine extends Object implements WebSearchEngine
Represents Tavily Search API as a WebSearchEngine. See more details here.
When includeRawContent is set to true, the raw content will appear in the WebSearchOrganicResult.content() field of each result.
When includeAnswer is set to true, the answer will appear in the WebSearchOrganicResult.snippet() field of the first result. In this case, the WebSearchOrganicResult.url() of the first result will always be "https://tavily.com/" and the WebSearchOrganicResult.title() will always be "Tavily Search API".