update code for add skills

bug fix: check event and update event
This commit is contained in:
stellahsr 2023-10-07 02:07:26 +08:00
parent 6bcd3bdcee
commit 64a1246e1c
5 changed files with 112 additions and 84 deletions

View file

@ -24,8 +24,7 @@ async def learn(task="Start", investment: float = 50.0, n_round: int = 3):
]
)
print(mc_player.environment.roles)
print(mc_player.environment.roles["Generate code for specified tasks"]._rc)
mc_player.invest(investment)
mc_player.start(task)
await mc_player.run(n_round=n_round)