类的使用
dev.langchain4j.web.search.WebSearchInformationResult
-
dev.langchain4j.web.search中WebSearchInformationResult的使用
修饰符和类型方法说明static WebSearchInformationResultCreates a new WebSearchInformationResult with the specified total results.static WebSearchInformationResultCreates a new WebSearchInformationResult with the specified total results, page number, and metadata.WebSearchResults.searchInformation()Gets the information about the web search.修饰符和类型方法说明static WebSearchResultsWebSearchResults.from(WebSearchInformationResult searchInformation, List<WebSearchOrganicResult> results) Creates a new instance of WebSearchResults from the specified parameters.static WebSearchResultsWebSearchResults.from(Map<String, Object> searchMetadata, WebSearchInformationResult searchInformation, List<WebSearchOrganicResult> results) Creates a new instance of WebSearchResults from the specified parameters.限定符构造器说明WebSearchResults(WebSearchInformationResult searchInformation, List<WebSearchOrganicResult> results) Constructs a new instance of WebSearchResults.WebSearchResults(Map<String, Object> searchMetadata, WebSearchInformationResult searchInformation, List<WebSearchOrganicResult> results) Constructs a new instance of WebSearchResults.