Class WebFetchTool

java.lang.Object
com.alibaba.cloud.ai.graph.agent.tools.WebFetchTool
All Implemented Interfaces:
BiFunction<WebFetchTool.Request,org.springframework.ai.chat.model.ToolContext,String>

public class WebFetchTool extends Object implements BiFunction<WebFetchTool.Request,org.springframework.ai.chat.model.ToolContext,String>
Web fetch tool that retrieves content from URLs and processes it using an AI model for summarization.

Features:

  • Fetches HTML content and converts it to Markdown
  • Includes a 15-minute cache for faster repeated access
  • Automatic content truncation with configurable limits
  • Retry on network errors and 5xx server errors
See Also: