Human names for 2+ agents, modifications to goal prompts for 2+ agent tasks, and more milk_buckets in chest

This commit is contained in:
Ayush Maniar 2025-03-25 11:05:56 -07:00
parent ab491ede8a
commit dbe96b8083
3 changed files with 24 additions and 8 deletions

View file

@ -331,11 +331,15 @@ def launch_server_experiment(task_path,
models = [model] * 2
apis = [api] * 2
else:
# Lets use an ordered list of 10 human names.
human_names = ["Andy", "Jill", "Bob", "Sally", "Mike", "Laura", "John", "Emma", "Tom", "Kate"]
agent_names = []
for i in range(num_agents):
agent_names.append(f"Agent_{i}_{session_name}")
name = human_names[i % len(human_names)]
agent_names.append(f"{name}_{session_name}")
models = [model] * num_agents
apis = [api] * num_agents
make_profiles(agent_names, models, apis, template_profile=template_profile, url=url)
agent_profiles = [f"./{agent}.json" for agent in agent_names]

View file

@ -318,8 +318,8 @@ export class CookingTaskInitiator {
['minecraft:sugar', 64],
['minecraft:cocoa_beans', 64],
['minecraft:apple', 64],
['minecraft:cookie', 64],
['minecraft:mutton', 64],
['minecraft:milk_bucket', 1],
['minecraft:milk_bucket', 1],
['minecraft:salmon', 64],
['minecraft:cod', 64],
['minecraft:kelp', 64],
@ -328,10 +328,10 @@ export class CookingTaskInitiator {
['minecraft:honey_bottle', 1], // Non-stackable
['minecraft:glow_berries', 64],
['minecraft:bowl', 64],
['minecraft:golden_carrot', 64],
['minecraft:golden_apple', 64],
['minecraft:enchanted_golden_apple', 64],
['minecraft:cooked_mutton', 64],
['minecraft:milk_bucket', 1],
['minecraft:milk_bucket', 1],
['minecraft:milk_bucket', 1],
['minecraft:milk_bucket', 1],
['minecraft:cooked_salmon', 64],
['minecraft:cooked_cod', 64],
['minecraft:gold_ingot', 64],

View file

@ -203,8 +203,20 @@ export class Task {
let add_string = '';
if (this.task_type === 'cooking') {
if (this.data.agent_count > 2) {
if (this.name.toLowerCase().startsWith('andy')) {
add_string = '\nIn the end, all the food items should be given to you by other bots. Make sure to talk to all the agents using startConversation command to coordinate the task instead of talking to just one agent. You can even end current conversation with any agent using endConversation command and then talk to a new agent using startConversation command.';
}
else {
add_string = '\nIn the end, all the food items should be given to one single bot whose name starts with andy or Andy. Make sure to talk to all the agents using startConversation command to coordinate the task instead of talking to just one agent. You can even end current conversation with any agent using endConversation command and then talk to a new agent using startConversation command.';
}
}
else {
add_string = '\nIn the end, all the food items should be given to one single bot.';
}
}
// If goal is a string, all agents share the same goal
if (typeof this.data.goal === 'string') {