Package dev.langchain4j.web.search
Interface WebSearchEngine
- All Known Implementing Classes:
GoogleCustomWebSearchEngine
,SearchApiWebSearchEngine
,TavilyWebSearchEngine
public interface WebSearchEngine
Represents a web search engine that can be used to perform searches on the Web in response to a user query.
-
Method Summary
Modifier and TypeMethodDescriptionsearch
(WebSearchRequest webSearchRequest) Performs a search request on the web search engine and returns the search results.default WebSearchResults
Performs a search query on the web search engine and returns the search results.
-
Method Details
-
search
Performs a search query on the web search engine and returns the search results.- Parameters:
query
- the search query- Returns:
- the search results
-
search
Performs a search request on the web search engine and returns the search results.- Parameters:
webSearchRequest
- the search request- Returns:
- the web search results
-