Class WebTools.WebFetchTool

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

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

    • WebFetchTool

      public WebFetchTool()
    • WebFetchTool

      public WebFetchTool(HttpClient client)
      Creates a tool that uses a caller-supplied client (custom proxy, SSL, HTTP version, ...).
  • Method Details

    • webFetch

      @Tool(name="web_fetch", readOnly=true, description="Fetch content from an HTTP(S) URL and return a truncated text preview.") public String webFetch(@ToolParam(name="url",description="HTTP or HTTPS URL to fetch") String url, @ToolParam(name="max_chars",description="Max characters to return (default 20000)",required=false) Integer maxChars)