mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
feat: +Message + tags
This commit is contained in:
parent
94e1ce94bf
commit
58b1acf7b9
1 changed files with 2 additions and 1 deletions
|
|
@ -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)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue