You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove case sensitivity and max results options from regex search
Eliminate `case_sensitive` and `max_results` parameters to simplify the regex search tool. Update the regex pattern description to indicate the use of `(?i)` for case-insensitivity directly within the pattern. Adjust related code logic to accommodate the removal, ensuring that the search function no longer checks or enforces maximum result limits and handles pattern validation without conditional alterations for case sensitivity. This streamlines the function and reduces unnecessary complexity.
Copy file name to clipboardExpand all lines: refact-agent/engine/src/tools/tools_description.rs
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -465,16 +465,10 @@ tools:
465
465
parameters:
466
466
- name: "pattern"
467
467
type: "string"
468
-
description: "Regular expression pattern to search for"
468
+
description: "Regular expression pattern to search for. Use (?i) at the start for case-insensitive search."
469
469
- name: "scope"
470
470
type: "string"
471
471
description: "'workspace' to search all files in workspace, 'dir/subdir/' to search in files within a directory, 'dir/file.ext' to search in a single file."
472
-
- name: "case_sensitive"
473
-
type: "boolean"
474
-
description: "Whether the search should be case-sensitive. Defaults to false."
475
-
- name: "max_results"
476
-
type: "number"
477
-
description: "Maximum number of results to return. If not specified, all matches will be returned."
0 commit comments