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

public class GrepTool extends Object implements BiFunction<GrepTool.GrepRequest,org.springframework.ai.chat.model.ToolContext,String>
Tool for searching text patterns in files.
  • Field Details

  • Constructor Details

    • GrepTool

      public GrepTool()
  • Method Details

    • apply

      public String apply(GrepTool.GrepRequest request, org.springframework.ai.chat.model.ToolContext toolContext)
      Specified by:
      apply in interface BiFunction<GrepTool.GrepRequest,org.springframework.ai.chat.model.ToolContext,String>
    • createGrepToolCallback

      public static org.springframework.ai.tool.ToolCallback createGrepToolCallback(String description)