mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
add an example
This commit is contained in:
parent
9d40d96535
commit
11894d12f3
1 changed files with 2 additions and 2 deletions
|
|
@ -11,14 +11,14 @@ def main():
|
|||
If executed correctly, the following log messages will be output:
|
||||
MGXEnv serialization successful. File saved at: /.../workspace/storage/MGXEnv.json
|
||||
MGXEnv deserialization successful. Instance created from file: /.../workspace/storage/MGXEnv.json
|
||||
The object is MGXEnv()
|
||||
The instance is MGXEnv()
|
||||
"""
|
||||
|
||||
env = MGXEnv()
|
||||
env.serialize()
|
||||
|
||||
env: MGXEnv = MGXEnv.deserialize()
|
||||
logger.info(f"The object is {repr(env)}")
|
||||
logger.info(f"The instance is {repr(env)}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue