SearchFilesToolRequest
public record SearchFilesToolRequest( @JsonProperty(required = true, value = "path") @JsonPropertyDescription("Starting path for the search") String path, @JsonProperty(required = true, value = "pattern") @JsonPropertyDescription("Pattern to match files/directories") String pattern, @JsonProperty(value = "excludePatterns") @JsonPropertyDescription("Patterns to exclude from search") String[] excludePatterns )
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileSearcher.java:61–77承载搜索文件工具请求数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.fs 包。核心成员包括 path、pattern、excludePatterns、SearchFilesToolRequest。
A record in io.agentscope.runtime.engine.agents.saa.tools.fs that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.saa.tools.fs.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
path | String | 执行路径相关操作。 Performs the path operation. |
pattern | String | 执行 `pattern` 方法。 Performs the pattern operation. |
excludePatterns | String[] | 执行 `excludePatterns` 方法。 Performs the exclude patterns operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public SearchFilesToolRequest(String path, String pattern, String[] excludePatterns) | 初始化 `SearchFilesToolRequest` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
path
String path执行路径相关操作。
Performs the path operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileSearcher.java:61–77pattern
String pattern执行 pattern 方法。
Performs the pattern operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileSearcher.java:61–77excludePatterns
String[] excludePatterns执行 excludePatterns 方法。
Performs the exclude patterns operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileSearcher.java:61–77构造器详情Constructor Detail
SearchFilesToolRequest
public SearchFilesToolRequest(String path, String pattern, String[] excludePatterns)
初始化 SearchFilesToolRequest 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
pattern | String | pattern(类型 `String`)。The pattern. |
excludePatterns | String[] | exclude Patterns(类型 `String[]`)。The exclude patterns. |
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileSearcher.java:72–76