mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
update comment
This commit is contained in:
parent
1ead3e4d80
commit
086ef5e805
1 changed files with 5 additions and 0 deletions
|
|
@ -109,6 +109,11 @@ class ExpCacheHandler(BaseModel):
|
|||
|
||||
@model_validator(mode="after")
|
||||
def initialize(self):
|
||||
"""Initialize default values for optional parameters if they are None.
|
||||
|
||||
This is necessary because the decorator might pass None, which would override the default values set by Field.
|
||||
"""
|
||||
|
||||
self._validate_params()
|
||||
|
||||
self.exp_manager = self.exp_manager or exp_manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue