mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Remove duplicate '_act' in engineer.
This commit is contained in:
parent
4063186836
commit
a68f9efce5
1 changed files with 1 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ from metagpt.prompts.di.engineer2 import (
|
|||
WRITE_CODE_SYSTEM_PROMPT,
|
||||
)
|
||||
from metagpt.roles.di.role_zero import RoleZero
|
||||
from metagpt.schema import Message, UserMessage
|
||||
from metagpt.schema import UserMessage
|
||||
from metagpt.strategy.experience_retriever import ENGINEER_EXAMPLE
|
||||
from metagpt.tools.libs.cr import CodeReview
|
||||
from metagpt.tools.libs.git import git_create_pull
|
||||
|
|
@ -94,10 +94,6 @@ class Engineer2(RoleZero):
|
|||
}
|
||||
)
|
||||
|
||||
async def _act(self) -> Message:
|
||||
message = await super()._act()
|
||||
return message
|
||||
|
||||
def _retrieve_experience(self) -> str:
|
||||
return ENGINEER_EXAMPLE
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue