🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
rm web imitation sop, extend to web operation
yzlin914fc4358ce1
diff --git a/metagpt/actions/di/detect_intent.py b/metagpt/actions/di/detect_intent.pyindex bfefcacff..eb7f479e1 100644--- a/metagpt/actions/di/detect_intent.py+++ b/metagpt/actions/di/detect_intent.py@@ -39,35 +39,29 @@ class SOPItem(Enum):"Stage and commit changes for the project repository using Git.",],)- FIX_BUGS = SOPItemDef(- name="fix bugs",- description="Fix bugs in a given project.",- sop=[- "Fix bugs in the project repository.",- "Stage and commit changes for the project repository using Git.",- ],- )- FORMAT_REPO = SOPItemDef(- name="format repo",- description="download repository from git and format the project to MetaGPT project",- sop=[- "Imports a project from a Git website and formats it to MetaGPT project format to enable incremental appending requirements.",- "Stage and commit changes for the project repository using Git.",- ],- )- WEBPAGE_IMITATION = SOPItemDef(- name="webpage_imitation",- description="webpage browsing, imitation and other applications etc.",- sop=[- "Utilize Selenium and WebDriver for rendering.",- "Capture a screenshot of the rendered webpage.",- "Convert image to a webpage including HTML, CSS and JS in one go.",- ],+ # FIX_BUGS = SOPItemDef(+ # name="fix bugs",+ # description="Fix bugs in a given project.",+ # sop=[+ # "Fix bugs in the project repository.",+ # "Stage and commit changes for the project repository using Git.",+ # ],+ # )+ # FORMAT_REPO = SOPItemDef(+ # name="format repo",+ # description="download repository from git and format the project to MetaGPT project",+ # sop=[+ # "Imports a project from a Git website and formats it to MetaGPT project format to enable incremental appending requirements.",+ # "Stage and commit changes for the project repository using Git.",+ # ],+ # )+ WEB_OPERATION = SOPItemDef(+ name="web operation",+ description="web browsing, scraping, imitation and other interaction with the web",)OTHER = SOPItemDef(name="other",description="Other intentions that do not fall into the above categories, including data science, machine learning, deep learning and text-to-image etc.",- sop=[],)@property@@ -130,7 +124,13 @@ class DetectIntent(Action):async def main():# Example usage of the DetectIntent action- user_requirements = ["Develop a 2048 game.", "Run data analysis on sklearn wine dataset"]+ user_requirements = [+ "Develop a 2048 game.",+ "Run data analysis on sklearn wine dataset",+ "帮我把pip的源设置成:https://pypi.tuna.tsinghua.edu.cn/simple",+ "This is a website url does not require login: https://demosc.chinaz.net/Files/DownLoad//moban/202404/moban7767 please write a similar web page,developed in vue language, The package.json dependency must be generated",+ "I would like to imitate the website available at https://demosc.chinaz.net/Files/DownLoad//moban/202404/moban7767. Could you please browse through it?",+ ]detect_intent = DetectIntent()for user_requirement in user_requirements: