Class GlobSearchTool
java.lang.Object
com.alibaba.cloud.ai.graph.agent.tools.GlobSearchTool
- All Implemented Interfaces:
BiFunction<GlobSearchTool.Request,org.springframework.ai.chat.model.ToolContext, String>
public class GlobSearchTool
extends Object
implements BiFunction<GlobSearchTool.Request,org.springframework.ai.chat.model.ToolContext,String>
Glob search tool for fast file pattern matching.
Supports glob patterns like **/*.js or src/**/*.ts.
Returns matching file paths sorted by modification time.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(GlobSearchTool.Request request, org.springframework.ai.chat.model.ToolContext toolContext) static GlobSearchTool.BuilderMethods 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
-
Constructor Details
-
GlobSearchTool
-
-
Method Details
-
apply
public String apply(GlobSearchTool.Request request, org.springframework.ai.chat.model.ToolContext toolContext) - Specified by:
applyin interfaceBiFunction<GlobSearchTool.Request,org.springframework.ai.chat.model.ToolContext, String>
-
builder
-