update code

This commit is contained in:
stellahsr 2023-10-09 19:32:50 +08:00
parent f70ba27d35
commit 37a7a96bbe
13 changed files with 255 additions and 215 deletions

View file

@ -11,10 +11,9 @@ from metagpt.roles.minecraft.critic_agent import CriticReviewer
from metagpt.minecraft_team import MinecraftPlayer
async def learn(task="Start", investment: float = 50.0, n_round: int = 3):
async def learn(task="Start", investment: float = 50.0, n_round: int = 50):
mc_player = MinecraftPlayer()
mc_player.set_port(33141) # Modify this to your Minecraft LAN port
# mc_player.set_resume(True) # If load json from ckpt dir(include chest_memory, skills, ...)
mc_player.set_port(30181) # Modify this to your Minecraft LAN port
mc_player.hire(
[
CurriculumDesigner(),