Class TavilyWebSearchEngine
java.lang.Object
dev.langchain4j.web.search.tavily.TavilyWebSearchEngine
- All Implemented Interfaces:
WebSearchEngine
Represents Tavily Search API as a
When
When
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".-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()search(WebSearchRequest webSearchRequest) static TavilyWebSearchEnginewithApiKey(String apiKey) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WebSearchEngine
search
-
Constructor Details
-
TavilyWebSearchEngine
-
-
Method Details
-
builder
-
search
- Specified by:
searchin interfaceWebSearchEngine
-
withApiKey
-