Skip to content

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

feat: +Message + tags

莘权 马58b1acf7b935
diff --git a/metagpt/schema.py b/metagpt/schema.py
index 27f5dd10c..4e6cba4ca 100644
--- a/metagpt/schema.py
+++ b/metagpt/schema.py
@@ -8,7 +8,7 @@
from __future__ import annotations
from dataclasses import dataclass, field
-from typing import Type, TypedDict
+from typing import Type, TypedDict, Set
from pydantic import BaseModel
@@ -29,6 +29,7 @@ class Message:
cause_by: Type["Action"] = field(default="")
sent_from: str = field(default="")
send_to: str = field(default="")
+ tags: Set = field(default_factory=Set)
def __str__(self):
# prefix = '-'.join([self.role, str(self.cause_by)])