mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 19:36:24 +02:00
update
This commit is contained in:
parent
e2e00beb75
commit
fddfcf716f
1 changed files with 1 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ class Message(BaseModel):
|
|||
actionnode_class = import_class("ActionNode", "metagpt.actions.action_node") # avoid circular import
|
||||
ic_obj = actionnode_class.create_model_class(class_name=ic["class"], mapping=mapping)
|
||||
elif "module" in ic:
|
||||
# subclasses of BaseModel
|
||||
ic_obj = import_class(ic["class"], ic["module"])
|
||||
else:
|
||||
raise KeyError("missing required key to init Message.instruct_content from dict")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue