From dafbdf38d5a418d110d021c370e1f9b15a4fc37f Mon Sep 17 00:00:00 2001 From: Ayush Maniar Date: Mon, 7 Apr 2025 20:36:05 -0700 Subject: [PATCH] Modified goal for 3+ agent crafting tasks similar to cooking tasks --- src/agent/tasks.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/agent/tasks.js b/src/agent/tasks.js index c3fb4ed..7bfed78 100644 --- a/src/agent/tasks.js +++ b/src/agent/tasks.js @@ -333,6 +333,12 @@ export class Task { } } + if (this.task_type === 'techtree') { + if (this.data.agent_count > 2) { + add_string = '\nMake sure to share resources among all agents and 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.' + } + } + // If goal is a string, all agents share the same goal if (typeof this.data.goal === 'string') { return this.data.goal + add_string;