mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
update code
This commit is contained in:
parent
f70ba27d35
commit
37a7a96bbe
13 changed files with 255 additions and 215 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue