feat: +Message + tags

This commit is contained in:
莘权 马 2023-08-21 21:30:37 +08:00
parent 94e1ce94bf
commit 58b1acf7b9

View file

@ -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)])