Package io.agentscope.harness.agent.tool
Class WebTools.WebFetchTool
java.lang.Object
io.agentscope.harness.agent.tool.WebTools.WebFetchTool
- Enclosing class:
- WebTools
-
Constructor Summary
ConstructorsConstructorDescriptionWebFetchTool(HttpClient client) Creates a tool that uses a caller-supplied client (custom proxy, SSL, HTTP version, ...). -
Method Summary
-
Constructor Details
-
WebFetchTool
public WebFetchTool() -
WebFetchTool
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)
-