🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: Add tags to enable custom message classification
莘权 马bc97b709bb17
diff --git a/metagpt/schema.py b/metagpt/schema.pyindex 2e4a6c62f..140f207c8 100644--- a/metagpt/schema.py+++ b/metagpt/schema.py@@ -45,6 +45,16 @@ class Message:"content": self.content}+ def add_tag(self, tag):+ if self.tags is None:+ self.tags = set()+ self.tags.add(tag)++ def remove_tag(self, tag):+ if self.tags is None:+ return+ self.tags.remove(tag)+@dataclassclass UserMessage(Message):