Package dev.langchain4j.adaptiverag
Class WebSearchTool
java.lang.Object
dev.langchain4j.adaptiverag.WebSearchTool
public class WebSearchTool
extends Object
implements Function<String,List<dev.langchain4j.rag.content.Content>>
The `WebSearchTool` class provides a solution for performing web searches based on user queries.
It implements the Function<String, List<Content>> interface to define how queries are processed and results are returned.
The class utilizes an API key from Tavily to authenticate requests to their search engine.
- Since:
- 1.0
- Author:
- Your Name (if applicable)
-
Constructor Details
-
WebSearchTool
public WebSearchTool()
-
-
Method Details