From a24f39c5eab04357b792b4c735fc2d29836c855a Mon Sep 17 00:00:00 2001 From: stellahsr Date: Thu, 12 Oct 2023 23:06:02 +0800 Subject: [PATCH] update prompts --- metagpt/prompts/minecraft/action_template.txt | 1 + metagpt/prompts/minecraft/curriculum.txt | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/metagpt/prompts/minecraft/action_template.txt b/metagpt/prompts/minecraft/action_template.txt index d6061f0a2..1b7c48a4d 100644 --- a/metagpt/prompts/minecraft/action_template.txt +++ b/metagpt/prompts/minecraft/action_template.txt @@ -34,6 +34,7 @@ Code: - Use `smeltItem(bot, name count)` to smelt items. Do not use `bot.openFurnace` directly. - Use `placeItem(bot, name, position)` to place blocks. Do not use `bot.placeBlock` directly. - Use `killMob(bot, name, timeout)` to kill mobs. Do not use `bot.attack` directly. + - Use `exploreUntil(bot, direction, maxTime , callback)` to find what you need. 3) Your function will be reused for building more complex functions. Therefore, you should make it generic and reusable. You should not make strong assumption about the inventory (as it may be changed at a later time), and therefore you should always check whether you have the required items before using them. If not, you should first collect the required items and reuse the above useful programs. 4) Functions in the "Code from the last round" section will not be saved or executed. Do not reuse functions listed there. 5) Anything defined outside a function will be ignored, define all your variables inside your functions. diff --git a/metagpt/prompts/minecraft/curriculum.txt b/metagpt/prompts/minecraft/curriculum.txt index 66a33c626..92d985f96 100644 --- a/metagpt/prompts/minecraft/curriculum.txt +++ b/metagpt/prompts/minecraft/curriculum.txt @@ -1,5 +1,55 @@ You are a helpful assistant that tells me the next immediate task to do in Minecraft. My ultimate goal is to discover as many diverse things as possible, accomplish as many diverse tasks as possible and become the best Minecraft player in the world. +Here's some basic information (Contains "item": "resources or crafting to get this item", wrapped in JSON formatwrapped in JSON format): + +```json +{ + "resources": { + "wood": "cut trees", + "stone": "mine stone", + "coal": "mine coal", + "iron_ore": "mine iron ore", + "diamond": "mine diamond ore", + "food": "hunt animals or grow crops", + "leather": "hunt cows or horses", + "wool": "shear sheep or hunt sheep", + "bamboo": "find and cut in jungle", + "cobblestone": "mine stone", + "iron_ingot": "smelt coal and iron ore in furnace", + "feather": "kill chickens", + "stick": "crafted from 2 planks at workbench", + "redstone_dust": "mine redstone ore", + "sugar_cane": "find and collect on sand near water", + "flint": "mine gravel", + "paper": "crafted from 3 sugar canes", + "string": "kill spiders or destroy spider webs" + }, + "crafting": { + "bed": "3 wool + 3 planks", + "workbench": "4 planks", + "furnace": "8 cobblestones", + "torch": "1 stick + 1 coal", + "pickaxe": "2 sticks + 3 planks/stone/iron ingot/diamond", + "axe": "2 sticks + 3 planks/stone/iron ingot/diamond", + "hoe": "2 sticks + 2 planks/stone/iron ingot/diamond", + "sword": "1 stick + 2 planks/stone/iron ingot/diamond", + "armor": "5-8 leather/iron ingot/diamond depending on type", + "arrow": "1 stick + 1 feather + 1 flint", + "bow": "3 sticks + 3 strings", + "bucket": "3 iron ingots", + "map": "8 papers + 1 compass", + "box": "8 planks", + "herbs": "gold apples or bottles, sugar, spider eyes etc. depending on type", + "boat": "5 planks", + "matches": "1 stick + 1 flint", + "ladder": "7 sticks", + "fishing_rod": "3 sticks + 2 strings", + "plank": "crafted from wood at workbench", + "compass": "4 iron ingots + 1 redstone dust" + } +} +``` + I will give you the following information: Question 1: ... Answer: ...