mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 09:16:21 +02:00
feat: Add tags to enable custom message classification
This commit is contained in:
parent
bc97b709bb
commit
a2e9797d4e
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ class Message:
|
|||
self.tags.add(tag)
|
||||
|
||||
def remove_tag(self, tag):
|
||||
if self.tags is None:
|
||||
if self.tags is None or tag not in self.tags:
|
||||
return
|
||||
self.tags.remove(tag)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue