Update suggest_edits
prompt to clarify usage of <old_text>
when using update/create operations (#22341)
Update `suggest_edits` prompt to clarify usage of `<old_text>` when using update/create operations using update/create operations. - Add a mention that `old_text` is required for all but create. - Change definition of `create` operation to also mean overwrite, as some models heavily prefer rewrites. - Remove mention of `If this tag is not specified, then the entire file will be used as the range.` which is not current behavior. Closes #22340 Release Notes: - N/A (not sure if this requires a release note)
This commit is contained in:
parent
a038d61940
commit
a9d2628c05
1 changed files with 3 additions and 3 deletions
|
@ -13,15 +13,15 @@ You must describe the change using the following XML structure:
|
||||||
- <description> (optional) - An arbitrarily-long comment that describes the purpose
|
- <description> (optional) - An arbitrarily-long comment that describes the purpose
|
||||||
of this edit.
|
of this edit.
|
||||||
- <old_text> (optional) - An excerpt from the file's current contents that uniquely
|
- <old_text> (optional) - An excerpt from the file's current contents that uniquely
|
||||||
identifies a range within the file where the edit should occur. If this tag is not
|
identifies a range within the file where the edit should occur. Required for all operations
|
||||||
specified, then the entire file will be used as the range.
|
except `create`.
|
||||||
- <new_text> (required) - The new text to insert into the file.
|
- <new_text> (required) - The new text to insert into the file.
|
||||||
- <operation> (required) - The type of change that should occur at the given range
|
- <operation> (required) - The type of change that should occur at the given range
|
||||||
of the file. Must be one of the following values:
|
of the file. Must be one of the following values:
|
||||||
- `update`: Replaces the entire range with the new text.
|
- `update`: Replaces the entire range with the new text.
|
||||||
- `insert_before`: Inserts the new text before the range.
|
- `insert_before`: Inserts the new text before the range.
|
||||||
- `insert_after`: Inserts new text after the range.
|
- `insert_after`: Inserts new text after the range.
|
||||||
- `create`: Creates a new file with the given path and the new text.
|
- `create`: Creates or overwrites a file with the given path and the new text.
|
||||||
- `delete`: Deletes the specified range from the file.
|
- `delete`: Deletes the specified range from the file.
|
||||||
|
|
||||||
<guidelines>
|
<guidelines>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue