类 WebSearchTool
java.lang.Object
dev.langchain4j.web.search.WebSearchTool
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static WebSearchToolfrom(WebSearchEngine searchEngine) Creates a new WebSearchTool with the specified web search engine.Runs a search query on the web search engine and returns a pretty-string representation of the search results.
-
构造器详细资料
-
WebSearchTool
-
-
方法详细资料
-
searchWeb
Runs a search query on the web search engine and returns a pretty-string representation of the search results.- 参数:
query- the search user query- 返回:
- a pretty-string representation of the search results
-
from
Creates a new WebSearchTool with the specified web search engine.- 参数:
searchEngine- the web search engine to use for searching the web- 返回:
- a new WebSearchTool
-