Update project_management_an.py

fix bug https://github.com/geekan/MetaGPT/issues/1430
This commit is contained in:
hgftrdw45ud67is8o89 2024-08-04 13:41:33 +00:00 committed by GitHub
parent 0896c4ead2
commit a3eaa02796
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,13 +5,13 @@
@Author : alexanderwu
@File : project_management_an.py
"""
from typing import List
from typing import List, Optional
from metagpt.actions.action_node import ActionNode
REQUIRED_PACKAGES = ActionNode(
key="Required packages",
expected_type=List[str],
expected_type=Optional[List[str]],
instruction="Provide required packages in requirements.txt format.",
example=["flask==1.1.2", "bcrypt==3.2.0"],
)