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
constSEARCH_AND_REPLACE_TOOL_DESCRIPTION=`Request to replace sections of content in an existing file using multiple SEARCH/REPLACE blocks that define exact changes to specific parts of the file. This tool should be used when you need to make targeted changes to specific parts of a file. ${NO_PARALLEL_TOOL_CALLING_INSRUCTION}`;
14
-
constSEARCH_AND_REPLACE_FILEPATH_DESCRIPTION=
15
-
"The path of the file to modify, relative to the root of the workspace.";
* DO NOT make back-to-back tool calls. Instead interleave with brief explanation of what each will do. For example, instead of [explanation, tool call, tool call] you should do [explanation, tool call, explanation, tool call]
40
37
6. Special operations:
41
38
* To move code: Use two SEARCH/REPLACE blocks (one to delete from original + one to insert at new location)
42
-
* To delete code: Use empty REPLACE section`;
39
+
* To delete code: Use empty REPLACE section
40
+
7. You should always read the file before trying to edit it, to ensure you know the up-to-date file contents`;
43
41
44
42
constSEARCH_AND_REPLACE_DIFFS_DESCRIPTION=`An array of strings, each containing one or more SEARCH/REPLACE blocks following this exact format:
description: `Request to replace sections of content in an existing file using multiple SEARCH/REPLACE blocks that define exact changes to specific parts of the file. This tool should be used when you need to make targeted changes to specific parts of a file. ${NO_PARALLEL_TOOL_CALLING_INSRUCTION}`,
prefix: `To make targeted edits by replacing sections of content in an existing file, use the ${BuiltInToolNames.SearchAndReplaceInFile} tool with a "diffs" argument containing an array of SEARCH/REPLACE blocks that define exact changes to specific parts of the file.
93
+
prefix: `To make targeted edits by replacing sections of content in an existing file, use the ${BuiltInToolNames.SearchAndReplaceInFile} tool with a filepath (relative to the root of the workspace) and a "diffs" argument containing an array of SEARCH/REPLACE blocks that define exact changes to specific parts of the file.
0 commit comments