rename to Editor

This commit is contained in:
garylin2099 2024-05-13 15:01:34 +08:00
parent 1f5267484d
commit 91b11a2ab9
2 changed files with 4 additions and 4 deletions

View file

@ -9,8 +9,8 @@ from metagpt.roles.di.data_interpreter import DataInterpreter
REQ = """
# Requirement
Below is a github issue, solve it. Use FileManager to search for the function, understand it, and modify the relevant code.
Write a new test file test.py with FileManager and use Terminal to python the test file to ensure you have fixed the issue.
Below is a github issue, solve it. Use Editor to search for the function, understand it, and modify the relevant code.
Write a new test file test.py with Editor and use Terminal to python the test file to ensure you have fixed the issue.
When writing test.py, you should import the function from the file you modified and test it with the given input.
Notice: Don't write all codes in one response, each time, just write code for one step.
@ -24,7 +24,7 @@ resulted in an infinite loop for the react mode.
async def main():
di = DataInterpreter(tools=["Terminal", "FileManager"], react_mode="react")
di = DataInterpreter(tools=["Terminal", "Editor"], react_mode="react")
await di.run(REQ)

View file

@ -11,7 +11,7 @@ Notice: Don't write all codes in one response, each time, just write code for on
async def main():
di = DataInterpreter(tools=["Terminal", "FileManager"])
di = DataInterpreter(tools=["Terminal", "Editor"])
await di.run(USE_GOT_REPO_REQ)