Skip to content

Commit b767004

Browse files
authored
Clarify replace function description (#15442)
fixed #15441
1 parent 0bb34a9 commit b767004

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/ai-ide/src/browser/file-changeset-functions.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,11 @@ export class ReplaceContentInFileFunctionHelper {
151151
: 'A single occurrence of each old content in the tuples is expected to be replaced. If the number of occurrences in the file does not match the expectation,\
152152
the function will return an error. In that case try a different approach.';
153153

154-
const replacementDescription = `Request to replace sections of content in an existing file by providing a list of tuples with old content to be matched and replaced.
154+
const replacementDescription = `Propose to replace sections of content in an existing file by providing a list of tuples with old content to be matched and replaced.
155155
${replacementSentence}. For deletions, use an empty new content in the tuple.\
156156
Make sure you use the same line endings and whitespace as in the original file content. The proposed changes will be applied when the user accepts.\
157-
If called again for the same file, it will override previously proposed changes.`;
157+
If called again for the same file, it will override previous change proposals for this file. So you must ultimatly call this function only once per file with a tuple\
158+
containing all proposed changes for this file`;
158159

159160
return {
160161
description: replacementDescription,

0 commit comments

Comments
 (0)