mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-07 15:55:39 +02:00
adding blocked actions
This commit is contained in:
parent
d399f8e214
commit
125aa73d6c
2 changed files with 25 additions and 5 deletions
|
@ -9,9 +9,29 @@ import sys
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
BLOCKED_ACTIONS_COOKING = []
|
BLOCKED_ACTIONS_COOKING = [
|
||||||
BLOCKED_ACTIONS_CRAFTING = []
|
'!activate', '!attackPlayer', '!checkBlueprint', '!checkBlueprintLevel',
|
||||||
BLOCKED_ACTIONS_CONSTRUCTION = []
|
'!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):
|
def read_settings(file_path):
|
||||||
"""Read and parse the settings.js file to get agent profiles."""
|
"""Read and parse the settings.js file to get agent profiles."""
|
||||||
|
|
|
@ -35,11 +35,11 @@ export default
|
||||||
"show_bot_views": false, // show bot's view in browser at localhost:3000, 3001...
|
"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
|
"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
|
"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.
|
"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
|
"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
|
"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
|
"verbose_commands": true, // show full command syntax
|
||||||
|
|
Loading…
Add table
Reference in a new issue