mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 01:06:27 +02:00
update use Field with uniform rule: define default_factory or exclude, use Field
This commit is contained in:
parent
0543c0f76b
commit
24060ea8a6
11 changed files with 27 additions and 27 deletions
|
|
@ -101,7 +101,7 @@ class Message(BaseModel):
|
|||
|
||||
id: str # According to Section 2.2.3.1.1 of RFC 135
|
||||
content: str
|
||||
instruct_content: BaseModel = Field(default=None)
|
||||
instruct_content: BaseModel = None
|
||||
role: str = "user" # system / user / assistant
|
||||
cause_by: str = ""
|
||||
sent_from: str = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue