Class EditFileTool.EditFileRequest

java.lang.Object
com.alibaba.cloud.ai.graph.agent.extension.tools.filesystem.EditFileTool.EditFileRequest
Enclosing class:
EditFileTool

public static class EditFileTool.EditFileRequest extends Object
Request structure for editing a file.
  • Field Details

    • filePath

      @JsonPropertyDescription("The absolute path of the file to edit") public String filePath
    • oldString

      @JsonPropertyDescription("The exact string to find and replace") public String oldString
    • newString

      @JsonPropertyDescription("The new string to replace with") public String newString
    • replaceAll

      @JsonPropertyDescription("If true, replace all occurrences; if false, only replace if unique (default: false)") public boolean replaceAll
  • Constructor Details

    • EditFileRequest

      public EditFileRequest()
    • EditFileRequest

      public EditFileRequest(String filePath, String oldString, String newString, boolean replaceAll)