Class GrepTool
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRequest structure for grep search. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(GrepTool.GrepRequest request, org.springframework.ai.chat.model.ToolContext toolContext) static org.springframework.ai.tool.ToolCallbackcreateGrepToolCallback(String description) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
DESCRIPTION
- See Also:
-
-
Constructor Details
-
GrepTool
public GrepTool()
-
-
Method Details
-
apply
public String apply(GrepTool.GrepRequest request, org.springframework.ai.chat.model.ToolContext toolContext) - Specified by:
applyin interfaceBiFunction<GrepTool.GrepRequest,org.springframework.ai.chat.model.ToolContext, String>
-
createGrepToolCallback
-