mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
refactor: delete useless codes
This commit is contained in:
parent
0c201d11e9
commit
6d77cd89c8
2 changed files with 1 additions and 11 deletions
|
|
@ -15,7 +15,7 @@ from metagpt.const import OUTPUTS_FILE_REPO, TEST_CODES_FILE_REPO
|
|||
from metagpt.logs import logger
|
||||
from metagpt.roles import Role
|
||||
from metagpt.schema import Document, Message, RunCodeContext, TestingContext
|
||||
from metagpt.utils.common import CodeParser, any_to_str_set
|
||||
from metagpt.utils.common import any_to_str_set
|
||||
|
||||
|
||||
class QaEngineer(Role):
|
||||
|
|
@ -35,12 +35,6 @@ class QaEngineer(Role):
|
|||
self.test_round = 0
|
||||
self.test_round_allowed = test_round_allowed
|
||||
|
||||
@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 CodeParser.parse_str(block="Python package name", text=system_design_msg.content)
|
||||
|
||||
async def _write_test(self, message: Message) -> None:
|
||||
changed_files = message.content.splitlines()
|
||||
src_file_repo = CONFIG.git_repo.new_file_repository(CONFIG.src_workspace)
|
||||
|
|
|
|||
|
|
@ -164,10 +164,6 @@ class Role:
|
|||
if env:
|
||||
env.set_subscription(self, self._subscription)
|
||||
|
||||
def get_env(self):
|
||||
"""Return the environment in which the role works."""
|
||||
return self._rc.env
|
||||
|
||||
@property
|
||||
def profile(self):
|
||||
"""Get the role description (position)"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue