From 91b11a2ab981252cf1bc61f2c5145a46cfc0b725 Mon Sep 17 00:00:00 2001 From: garylin2099 Date: Mon, 13 May 2024 15:01:34 +0800 Subject: [PATCH] rename to Editor --- examples/di/fix_github_issue.py | 6 +++--- examples/di/run_flask.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/di/fix_github_issue.py b/examples/di/fix_github_issue.py index 726cc1ace..4e26a375d 100644 --- a/examples/di/fix_github_issue.py +++ b/examples/di/fix_github_issue.py @@ -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) diff --git a/examples/di/run_flask.py b/examples/di/run_flask.py index ae841a09c..b57f763f3 100644 --- a/examples/di/run_flask.py +++ b/examples/di/run_flask.py @@ -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)