mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-28 01:43:05 +02:00
Merge branch 'main' into main
This commit is contained in:
commit
ae7b1d9650
5 changed files with 46 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,3 +16,4 @@ services/viaproxy/viaproxy.yml
|
||||||
tmp/
|
tmp/
|
||||||
wandb/
|
wandb/
|
||||||
experiments/
|
experiments/
|
||||||
|
|
||||||
|
|
43
multiagent_crafting_tasks.json
Normal file
43
multiagent_crafting_tasks.json
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"multiagent_techtree_1_stone_pickaxe": {
|
||||||
|
"conversation": "Let's collaborate to build a stone pickaxe",
|
||||||
|
"agent_count": 2,
|
||||||
|
"initial_inventory": {
|
||||||
|
"0": {
|
||||||
|
"wooden_pickaxe": 1
|
||||||
|
},
|
||||||
|
"1": {
|
||||||
|
"wooden_axe": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"blocked_actions": {
|
||||||
|
"0": [],
|
||||||
|
"1": []
|
||||||
|
},
|
||||||
|
"target": "stone_pickaxe",
|
||||||
|
"number_of_target": 1,
|
||||||
|
"type": "techtree",
|
||||||
|
"timeout": 20
|
||||||
|
},
|
||||||
|
"multiagent_techtree_1_shears": {
|
||||||
|
"goal": "Collaborate with other agents to build a shear.",
|
||||||
|
"conversation": "Let's collaborate to build a shear.",
|
||||||
|
"agent_count": 2,
|
||||||
|
"initial_inventory": {
|
||||||
|
"0": {
|
||||||
|
"iron_ingot": 1
|
||||||
|
},
|
||||||
|
"1": {
|
||||||
|
"iron_ingot": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"blocked_actions": {
|
||||||
|
"0": [],
|
||||||
|
"1": []
|
||||||
|
},
|
||||||
|
"target": "shears",
|
||||||
|
"number_of_target": 1,
|
||||||
|
"type": "techtree",
|
||||||
|
"timeout": 20
|
||||||
|
}
|
||||||
|
}
|
|
@ -92,7 +92,6 @@ export class Agent {
|
||||||
this.startEvents();
|
this.startEvents();
|
||||||
|
|
||||||
// this.task.initBotTask();
|
// this.task.initBotTask();
|
||||||
|
|
||||||
if (!load_mem) {
|
if (!load_mem) {
|
||||||
this.task.initBotTask();
|
this.task.initBotTask();
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ export class SelfPrompter {
|
||||||
this.stopLoop();
|
this.stopLoop();
|
||||||
this.state = STOPPED;
|
this.state = STOPPED;
|
||||||
}
|
}
|
||||||
|
|
||||||
async pause() {
|
async pause() {
|
||||||
this.interrupt = true;
|
this.interrupt = true;
|
||||||
await this.agent.actions.stop();
|
await this.agent.actions.stop();
|
||||||
|
|
Loading…
Add table
Reference in a new issue