mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
Merge pull request #480 from garylin2099/package_support
change PROJECT_ROOT setting & SoftwareCompany -> Team
This commit is contained in:
commit
384f5ee08b
11 changed files with 117 additions and 139 deletions
|
|
@ -270,12 +270,12 @@ ### Usage
|
|||
### Code walkthrough
|
||||
|
||||
```python
|
||||
from metagpt.software_company import SoftwareCompany
|
||||
from metagpt.team import Team
|
||||
from metagpt.roles import ProjectManager, ProductManager, Architect, Engineer
|
||||
|
||||
async def startup(idea: str, investment: float = 3.0, n_round: int = 5):
|
||||
"""Run a startup. Be a boss."""
|
||||
company = SoftwareCompany()
|
||||
company = Team()
|
||||
company.hire([ProductManager(), Architect(), ProjectManager(), Engineer()])
|
||||
company.invest(investment)
|
||||
company.start_project(idea)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue