Record Class GrepSearchTool.Request

java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.graph.agent.tools.GrepSearchTool.Request
Enclosing class:
GrepSearchTool

public static record GrepSearchTool.Request(String pattern, String path, String include, String outputMode) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Request(String pattern, String path, String include, String outputMode)
    Creates an instance of a Request record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the include record component.
    Returns the value of the outputMode record component.
    Returns the value of the path record component.
    Returns the value of the pattern record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Request

      public Request(@JsonPropertyDescription("The regular expression pattern to search for in file contents") String pattern, @JsonPropertyDescription("The directory to search in. If not specified, searches from root.") String path, @JsonPropertyDescription("File pattern to filter (e.g., \"*.js\", \"*.{ts,tsx}\")") String include, @JsonPropertyDescription("Output format: files_with_matches (default), content, or count") String outputMode)
      Creates an instance of a Request record class.
      Parameters:
      pattern - the value for the pattern record component
      path - the value for the path record component
      include - the value for the include record component
      outputMode - the value for the outputMode record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pattern

      @JsonPropertyDescription("The regular expression pattern to search for in file contents") public String pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component
    • path

      @JsonPropertyDescription("The directory to search in. If not specified, searches from root.") public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • include

      @JsonPropertyDescription("File pattern to filter (e.g., \"*.js\", \"*.{ts,tsx}\")") public String include()
      Returns the value of the include record component.
      Returns:
      the value of the include record component
    • outputMode

      @JsonPropertyDescription("Output format: files_with_matches (default), content, or count") public String outputMode()
      Returns the value of the outputMode record component.
      Returns:
      the value of the outputMode record component