mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 02:23:52 +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
|
|
@ -30,7 +30,7 @@ class Environment(BaseModel):
|
|||
|
||||
roles: dict[str, Role] = Field(default_factory=dict)
|
||||
members: dict[Role, Set] = Field(default_factory=dict)
|
||||
history: str = Field(default="") # For debug
|
||||
history: str = "" # For debug
|
||||
|
||||
class Config:
|
||||
arbitrary_types_allowed = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue