Class WebTools.WebSearchTool

java.lang.Object
io.agentscope.harness.agent.tool.WebTools.WebSearchTool
Enclosing class:
WebTools

public static final class WebTools.WebSearchTool extends Object
  • Constructor Details

    • WebSearchTool

      public WebSearchTool()
    • WebSearchTool

      public WebSearchTool(HttpClient client)
      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)