🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Fixed the workspace directory does not exist
Bian Jiang9ccf1e8b82fe
diff --git a/examples/agent_creator.py b/examples/agent_creator.pyindex 325e7c260..6269dac10 100644--- a/examples/agent_creator.py+++ b/examples/agent_creator.py@@ -49,6 +49,8 @@ class CreateAgent(Action):pattern = r'```python(.*)```'match = re.search(pattern, rsp, re.DOTALL)code_text = match.group(1) if match else ""+ if not WORKSPACE_ROOT.exists():+ WORKSPACE_ROOT.mkdir(parents=True)with open(WORKSPACE_ROOT / "agent_created_agent.py", "w") as f:f.write(code_text)return code_text