Skip to content

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

feat: merge geekan:dev

莘权 马cbad5170ac8d
diff --cc metagpt/roles/engineer.py
index 20dcce181,bc56ca813..f836ce879
--- a/metagpt/roles/engineer.py
+++ b/metagpt/roles/engineer.py
@@@ -162,7 -171,7 +162,8 @@@ class Engineer(Role)
if not is_pass:
todo.i_context.reason = reason
tasks.append(todo.i_context.dict())
- await code_summaries_file_repo.save(
++
+ await self.project_repo.docs.code_summary.save(
filename=Path(todo.i_context.design_filename).name,
content=todo.i_context.model_dump_json(),
dependencies=dependencies,
diff --cc metagpt/roles/qa_engineer.py
index 949085fe9,cd043b551..e042c1512
--- a/metagpt/roles/qa_engineer.py
+++ b/metagpt/roles/qa_engineer.py
@@@ -62,7 -67,11 +62,9 @@@ class QaEngineer(Role)
logger.info(f"Writing {test_doc.filename}..")
context = TestingContext(filename=test_doc.filename, test_doc=test_doc, code_doc=code_doc)
context = await WriteTest(i_context=context, context=self.context, llm=self.llm).run()
- await self.project_repo.tests.save_doc(doc=test_doc, dependencies={context.code_doc.root_relative_path})
- await tests_file_repo.save(
- filename=context.test_doc.filename,
- content=context.test_doc.content,
- dependencies={context.code_doc.root_relative_path},
++ await self.project_repo.tests.save_doc(
++ doc=context.test_doc, dependencies={context.code_doc.root_relative_path}
+ )
# prepare context for run tests in next round
run_code_context = RunCodeContext(