mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-06 06:12:39 +02:00
Merge pull request #4 from iorisa/feature/assistant_role1
fixbug: fix get_by_tags
This commit is contained in:
commit
98f7d7bc98
1 changed files with 1 additions and 6 deletions
|
|
@ -92,11 +92,6 @@ class RoleContext(BaseModel):
|
|||
def history(self) -> list[Message]:
|
||||
return self.memory.get()
|
||||
|
||||
@property
|
||||
def prerequisite(self):
|
||||
"""Retrieve information with `prerequisite` tag"""
|
||||
return self.memory.get_by_tags([MessageTag.Prerequisite.value])
|
||||
|
||||
|
||||
class Role:
|
||||
"""Role/Proxy"""
|
||||
|
|
@ -206,7 +201,7 @@ class Role:
|
|||
# history=self.history)
|
||||
|
||||
logger.info(f"{self._setting}: ready to {self._rc.todo}")
|
||||
requirement = self._rc.important_memory or self._rc.prerequisite
|
||||
requirement = self._rc.important_memory
|
||||
response = await self._rc.todo.run(requirement)
|
||||
# logger.info(response)
|
||||
if isinstance(response, ActionOutput):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue