diff --git a/core/tools/editor/__init__.py b/core/tools/editor/__init__.py index 0ab839d..b404f63 100644 --- a/core/tools/editor/__init__.py +++ b/core/tools/editor/__init__.py @@ -48,22 +48,22 @@ class CodeEditor(BaseToolSet): ) return output - @tool( - name="CodeEditor.APPEND", - description="Append code to the existing file. " - "If the code is completed, use the Terminal tool to execute it, if not, append the code through the this tool. " - "Input should be filename and code to append. " - "Input code must be the code that should be appended, NOT whole code. " - "ex. test.py\nprint('hello world')\n " - "and the output will be last 3 line.", - ) + # @tool( + # name="CodeEditor.APPEND", + # description="Append code to the existing file. " + # "If the code is completed, use the Terminal tool to execute it, if not, append the code through the this tool. " + # "Input should be filename and code to append. " + # "Input code must be the code that should be appended, NOT whole code. " + # "ex. test.py\nprint('hello world')\n " + # "and the output will be last 3 line.", + # ) def append(self, inputs: str) -> str: try: code = CodeWriter.append(inputs) output = ( "Last 3 line was:\n" + "\n".join(code.split("\n")[-3:]) - + "\nYou can use CodeEditor.APPEND tool to append the code if it is not completed." + # + "\nYou can use CodeEditor.APPEND tool to append the code if it is not completed." ) except Exception as e: output = str(e) @@ -88,7 +88,7 @@ class CodeEditor(BaseToolSet): output = ( "Last 3 line was:\n" + "\n".join(code.split("\n")[-3:]) - + "\nYou can use CodeEditor.APPEND tool to append the code if it is not completed." + # + "\nYou can use CodeEditor.APPEND tool to append the code if it is not completed." ) except Exception as e: output = str(e)