mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 17:26:22 +02:00
change investment keyword
This commit is contained in:
parent
f6955b32b3
commit
e66c0cf012
2 changed files with 3 additions and 4 deletions
|
|
@ -34,9 +34,8 @@ class SoftwareCompany:
|
|||
"""Hire roles to cooperate"""
|
||||
self.environment.add_roles(roles)
|
||||
|
||||
def invest(self, money: str):
|
||||
def invest(self, investment: float):
|
||||
"""Invest company. raise NoMoneyException when exceed max_budget."""
|
||||
investment = float(money.strip("$"))
|
||||
self.investment = investment
|
||||
self.config.max_budget = investment
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue