🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Update design_api_an.py
hgftrdw45ud67is8o89a58c9946807a
diff --git a/metagpt/actions/design_api_an.py b/metagpt/actions/design_api_an.pyindex 5977cbd95..a7a6fa57e 100644--- a/metagpt/actions/design_api_an.py+++ b/metagpt/actions/design_api_an.py@@ -5,7 +5,7 @@@Author : alexanderwu@File : design_api_an.py"""-from typing import List+from typing import List,Optionalfrom metagpt.actions.action_node import ActionNodefrom metagpt.utils.mermaid import MMC1, MMC2@@ -47,7 +47,7 @@ REFINED_FILE_LIST = ActionNode(DATA_STRUCTURES_AND_INTERFACES = ActionNode(key="Data structures and interfaces",- expected_type=str,+ expected_type=Optional[str],instruction="Use mermaid classDiagram code syntax, including classes, method(__init__ etc.) and functions with type"" annotations, CLEARLY MARK the RELATIONSHIPS between classes, and comply with PEP8 standards. ""The data structures SHOULD BE VERY DETAILED and the API should be comprehensive with a complete design.",@@ -66,7 +66,7 @@ REFINED_DATA_STRUCTURES_AND_INTERFACES = ActionNode(PROGRAM_CALL_FLOW = ActionNode(key="Program call flow",- expected_type=str,+ expected_type=Optional[str],instruction="Use sequenceDiagram code syntax, COMPLETE and VERY DETAILED, using CLASSES AND API DEFINED ABOVE ""accurately, covering the CRUD AND INIT of each object, SYNTAX MUST BE CORRECT.",example=MMC2,