mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
feat: replace CONFIG with OPTIONS
This commit is contained in:
parent
23ba0f3540
commit
7895af2c5a
8 changed files with 24 additions and 17 deletions
|
|
@ -77,9 +77,9 @@ async def startup(lesson_file: str, investment: float = 3.0, n_round: int = 1, *
|
|||
lesson = demo_lesson
|
||||
|
||||
company = SoftwareCompany()
|
||||
company.hire([Teacher(options=company.options, cost_manager=company.cost_manager, *args, **kwargs)])
|
||||
company.hire([Teacher(*args, **kwargs)])
|
||||
company.invest(investment)
|
||||
company.start_project(lesson, role="Teacher", cause_by=TeachingPlanRequirement)
|
||||
company.start_project(lesson, cause_by=TeachingPlanRequirement, role="Teacher", **kwargs)
|
||||
await company.run(n_round=1)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue