Package io.agentscope.harness.agent.tool
Class WebTools.WebSearchTool
java.lang.Object
io.agentscope.harness.agent.tool.WebTools.WebSearchTool
- Enclosing class:
- WebTools
-
Constructor Summary
ConstructorsConstructorDescriptionWebSearchTool(HttpClient client) Creates a tool that uses a caller-supplied client (custom proxy, SSL, HTTP version, ...). -
Method Summary
-
Constructor Details
-
WebSearchTool
public WebSearchTool() -
WebSearchTool
Creates a tool that uses a caller-supplied client (custom proxy, SSL, HTTP version, ...).
-
-
Method Details
-
webSearch
@Tool(name="web_search", readOnly=true, description="Search the web for information. Requires TAVILY_API_KEY. Returns titles, URLs and snippets.") public String webSearch(@ToolParam(name="query",description="Search query") String query, @ToolParam(name="max_results",description="Maximum results (default 5)",required=false) Integer maxResults)
-