mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
fixbug: Message was incorrectly filtered by the profile.
This commit is contained in:
parent
20ae74e99d
commit
0fdeab3f20
1 changed files with 0 additions and 7 deletions
|
|
@ -151,13 +151,6 @@ class QaEngineer(Role):
|
|||
)
|
||||
self.publish_message(msg)
|
||||
|
||||
async def _observe(self) -> int:
|
||||
await super()._observe()
|
||||
self._rc.news = [
|
||||
msg for msg in self._rc.news if self.profile in msg.send_to
|
||||
] # only relevant msgs count as observed news
|
||||
return len(self._rc.news)
|
||||
|
||||
async def _act(self) -> Message:
|
||||
if self.test_round > self.test_round_allowed:
|
||||
result_msg = Message(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue