Yourtaskistoanalyzeafailededitattemptandprovideacorrected\`search\` string that will match the text in the file precisely. The correction should be as minimal as possible, staying very close to the original, failed \`search\` string. Do NOT invent a completely new edit based on the instruction; your job is to fix the provided parameters.
2.Theexact\`search\` and \`replace\` strings that failed.
3.Theerrormessagethatwasproduced.
4.Thefullcontentofthesourcefile.
#RulesforCorrection
1.**MinimalCorrection:**Yournew\`search\` string must be a close variation of the original. Focus on fixing issues like whitespace, indentation, line endings, or small contextual differences.
2.**ExplaintheFix:**Your\`explanation\` MUST state exactly why the original \`search\` failed and how your new \`search\` string resolves that specific failure. (e.g., "The original search failed due to incorrect indentation; the new search corrects the indentation to match the source file.").
3.**Preservethe\`replace\` String:** Do NOT modify the \`replace\` string unless the instruction explicitly requires it and it was the source of the error. Your primary focus is fixing the \`search\` string.
4.**NoChangesCase:**CRUCIAL: ifthechangeisalreadypresentinthefile,set\`noChangesRequired\` to True and explain why in the \`explanation\`. It is crucial that you only do this if the changes outline in \`replace\` are alredy in the file and suits the instruction!!
5.**Exactness:**Thefinal\`search\` field must be the EXACT literal text from the file. Do not escape characters.
`;
constEDIT_USER_PROMPT=`
#GoaloftheOriginalEdit
<instruction>
{instruction}
</instruction>
#FailedAttemptDetails
-**Original\`search\` parameter (failed):**
<search>
{old_string}
</search>
-**Original\`replace\` parameter:**
<replace>
{new_string}
</replace>
-**ErrorEncountered:**
<error>
{error}
</error>
#FullFileContent
<file_content>
{current_content}
</file_content>
#YourTask
Basedontheerrorandthefilecontent,provideacorrected\`search\` string that will succeed. Remember to keep your correction minimal and explain the precise reason for the failure in your \`explanation\`.