mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
refine code for isinstance
This commit is contained in:
parent
77735d6e61
commit
3baf47a3d6
4 changed files with 4 additions and 4 deletions
|
|
@ -182,7 +182,7 @@ class WritePRD(Action):
|
|||
return
|
||||
|
||||
if not CONFIG.project_name:
|
||||
if isinstance(prd, ActionOutput) or isinstance(prd, ActionNode):
|
||||
if isinstance(prd, (ActionOutput, ActionNode)):
|
||||
ws_name = prd.instruct_content.dict()["Project Name"]
|
||||
else:
|
||||
ws_name = CodeParser.parse_str(block="Project Name", text=prd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue