AS AgentScopeAPI 手册 / API Reference

GrepMatch

public record GrepMatch(String path, int line, String text)
源码Source io/agentscope/harness/agent/filesystem/model/GrepMatch.java:25

承载 Grep Match数据的记录类型。位于 io.agentscope.harness.agent.filesystem.model 包。核心成员包括 path、line、text。

A single match from a grep search.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
pathString
执行路径相关操作。
path to the file containing the match
lineint
执行 `line` 方法。
1-indexed line number of the match
textString
执行文本相关操作。
content of the matching line

记录组件详情Record Component Detail

path

String path

执行路径相关操作。

path to the file containing the match

源码Source io/agentscope/harness/agent/filesystem/model/GrepMatch.java:25

line

int line

执行 line 方法。

1-indexed line number of the match

源码Source io/agentscope/harness/agent/filesystem/model/GrepMatch.java:25

text

String text

执行文本相关操作。

content of the matching line

源码Source io/agentscope/harness/agent/filesystem/model/GrepMatch.java:25
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.