mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-07-11 16:22:15 +02:00
use context instead of FileRepo... done main process.
This commit is contained in:
parent
3cd881de56
commit
57581bbb36
3 changed files with 6 additions and 4 deletions
|
|
@ -109,7 +109,7 @@ class Engineer(Role):
|
|||
coding_context = await todo.run()
|
||||
# Code review
|
||||
if review:
|
||||
action = WriteCodeReview(context=coding_context, llm=self.llm)
|
||||
action = WriteCodeReview(context=coding_context, g_context=self.context, llm=self.llm)
|
||||
self._init_action_system_message(action)
|
||||
coding_context = await action.run()
|
||||
await src_file_repo.save(
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ class QaEngineer(Role):
|
|||
return
|
||||
run_code_context.code = src_doc.content
|
||||
run_code_context.test_code = test_doc.content
|
||||
result = await RunCode(context=run_code_context, llm=self.llm).run()
|
||||
result = await RunCode(context=run_code_context, g_context=self.context, llm=self.llm).run()
|
||||
run_code_context.output_filename = run_code_context.test_filename + ".json"
|
||||
await self.context.git_repo.new_file_repository(TEST_OUTPUTS_FILE_REPO).save(
|
||||
filename=run_code_context.output_filename,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue