Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Fixed: Removed quotes in workspace path

hy.li1c3e81699671
diff --git a/metagpt/roles/engineer.py b/metagpt/roles/engineer.py
index 3f86100e9..da54c3541 100644
--- a/metagpt/roles/engineer.py
+++ b/metagpt/roles/engineer.py
@@ -71,7 +71,7 @@ class Engineer(Role):
@classmethod
def parse_workspace(cls, system_design_msg: Message) -> str:
if system_design_msg.instruct_content:
- return system_design_msg.instruct_content.dict().get("Python package name")
+ return system_design_msg.instruct_content.dict().get("Python package name").strip().strip("'").strip("\"")
return CodeParser.parse_str(block="Python package name", text=system_design_msg.content)
def get_workspace(self) -> Path: