Package dev.langchain4j.web.search
Interface WebSearchEngine
-
- All Implemented Interfaces:
public interface WebSearchEngineRepresents a web search engine that can be used to perform searches on the Web in response to a user query.
-
-
Method Summary
Modifier and Type Method Description WebSearchResultssearch(String query)Performs a search query on the web search engine and returns the search results. abstract WebSearchResultssearch(WebSearchRequest webSearchRequest)Performs a search request on the web search engine and returns the search results. -
-
Method Detail
-
search
WebSearchResults search(String query)
Performs a search query on the web search engine and returns the search results.
- Parameters:
query- the search query- Returns:
the search results
-
search
abstract WebSearchResults search(WebSearchRequest webSearchRequest)
Performs a search request on the web search engine and returns the search results.
- Parameters:
webSearchRequest- the search request- Returns:
the web search results
-
-
-
-