EditFileToolRequest
public record EditFileToolRequest( @JsonProperty(required = true, value = "path") @JsonPropertyDescription("Path to the file to edit") String path, @JsonProperty(required = true, value = "edits") @JsonPropertyDescription("Array of edit objects with oldText and newText properties") Map<String, Object>[] edits )
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileEditor.java:62–74承载 Edit 文件工具请求数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.fs 包。核心成员包括 path、edits、EditFileToolRequest。
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. |
edits | Map<String, Object>[] | 执行 `edits` 方法。 Performs the edits operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public EditFileToolRequest(String path, Map<String, Object>[] edits) | 初始化 `EditFileToolRequest` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
path
String path执行路径相关操作。
Performs the path operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileEditor.java:62–74edits
Map<String, Object>[] edits执行 edits 方法。
Performs the edits operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileEditor.java:62–74构造器详情Constructor Detail
EditFileToolRequest
public EditFileToolRequest(String path, Map<String, Object>[] edits)
初始化 EditFileToolRequest 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | String | 路径(类型 `String`)。The path. |
edits | Map<String, Object>[] | edits(类型 `Map []`)。The edits. |
源码Source
io/agentscope/runtime/engine/agents/saa/tools/fs/FsFileEditor.java:70–73