diff --git a/evaluation_script.py b/evaluation_script.py index b6cdc86..2c8654c 100644 --- a/evaluation_script.py +++ b/evaluation_script.py @@ -9,9 +9,29 @@ import sys import os import time -BLOCKED_ACTIONS_COOKING = [] -BLOCKED_ACTIONS_CRAFTING = [] -BLOCKED_ACTIONS_CONSTRUCTION = [] +BLOCKED_ACTIONS_COOKING = [ + '!activate', '!attackPlayer', '!checkBlueprint', '!checkBlueprintLevel', + '!clearChat', '!clearFurnace', '!consume', '!craftable', '!discard', '!endConversation', + '!endGoal', '!entities', '!equip', '!followPlayer', '!getBlueprint', '!getBlueprintLevel', + '!goToBed', '!help', '!modes', '!moveAway', '!newAction', '!placeHere', '!putInChest', + '!restart', '!setMode', '!stay', '!stfu', '!stop' +] +BLOCKED_ACTIONS_CRAFTING = [ + '!activate', '!attack', '!attackPlayer', '!checkBlueprint', '!checkBlueprintLevel', + '!clearChat', '!clearFurnace', '!consume', '!craftable', '!discard', '!endConversation', + '!endGoal', '!entities', '!followPlayer', '!getBlueprint', '!getBlueprintLevel', + '!goToBed', '!help', '!modes', '!newAction', '!putInChest', '!restart', + '!searchForEntity', '!setMode', '!stay', '!stfu', '!stop', '!takeFromChest', + '!viewChest' +] +BLOCKED_ACTIONS_CONSTRUCTION = [ + '!activate', '!attackPlayer', '!clearChat', '!clearFurnace', '!collectBlocks', + '!consume', '!craftable', '!discard', '!endConversation', '!endGoal', '!entities', + '!equip', '!followPlayer', '!getBlueprint', '!getBlueprintLevel', '!goToBed', + '!help', '!modes', '!moveAway', '!newAction', '!placeHere', '!putInChest', + '!restart', '!searchForBlock', '!searchForEntity', '!setMode', '!stay', '!stfu', + '!stop', '!takeFromChest', '!viewChest' +] def read_settings(file_path): """Read and parse the settings.js file to get agent profiles.""" diff --git a/settings.js b/settings.js index 2a960fa..a0c2292 100644 --- a/settings.js +++ b/settings.js @@ -35,11 +35,11 @@ export default "show_bot_views": false, // show bot's view in browser at localhost:3000, 3001... "allow_insecure_coding": process.env.INSECURE_CODING || false, // allows newAction command and model can write/run code on your computer. enable at own risk - "blocked_actions" : [], // commands to disable and remove from docs. Ex: ["!setMode"] + "blocked_actions" : process.env.BLOCKED_ACTIONS || [] , // commands to disable and remove from docs. Ex: ["!setMode"] "code_timeout_mins": -1, // minutes code is allowed to run. -1 for no timeout "relevant_docs_count": 5, // Parameter: -1 = all, 0 = no references, 5 = five references. If exceeding the maximum, all reference documents are returned. - "max_messages": 15, // max number of messages to keep in context + "max_messages": 150, // max number of messages to keep in context "num_examples": 2, // number of examples to give to the model "max_commands": -1, // max number of commands that can be used in consecutive responses. -1 for no limit "verbose_commands": true, // show full command syntax