Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

feat: Add tags to enable custom message classification

莘权 马a2e9797d4e7f
diff --git a/metagpt/schema.py b/metagpt/schema.py
index 140f207c8..0119f5bbb 100644
--- a/metagpt/schema.py
+++ b/metagpt/schema.py
@@ -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)