From 10649390137e101bf662a68c09c87e4b5131ded7 Mon Sep 17 00:00:00 2001 From: Zach <33711380+onezibo@users.noreply.github.com> Date: Tue, 25 Mar 2025 23:48:48 +0800 Subject: [PATCH] Fix incorrect file position descriptions in script comments (#7492) --- openhands/agenthub/codeact_agent/tools/llm_based_edit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openhands/agenthub/codeact_agent/tools/llm_based_edit.py b/openhands/agenthub/codeact_agent/tools/llm_based_edit.py index 74d112cbfd..e007846d4c 100644 --- a/openhands/agenthub/codeact_agent/tools/llm_based_edit.py +++ b/openhands/agenthub/codeact_agent/tools/llm_based_edit.py @@ -9,7 +9,7 @@ _FILE_EDIT_DESCRIPTION = """Edit a file in plain-text format. **Example 1: general edit for short files** For example, given an existing file `/path/to/file.py` that looks like this: -(this is the end of the file) +(this is the beginning of the file) 1|class MyClass: 2| def __init__(self): 3| self.x = 1 @@ -21,7 +21,7 @@ For example, given an existing file `/path/to/file.py` that looks like this: (this is the end of the file) The assistant wants to edit the file to look like this: -(this is the end of the file) +(this is the beginning of the file) 1|class MyClass: 2| def __init__(self): 3| self.x = 1 @@ -45,7 +45,7 @@ print(MyClass().y) **Example 2: append to file for short files** For example, given an existing file `/path/to/file.py` that looks like this: -(this is the end of the file) +(this is the beginning of the file) 1|class MyClass: 2| def __init__(self): 3| self.x = 1