From e521cb499a79fa560c8468f2a2a34d34c975327c Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 11 Aug 2023 23:07:41 -0400 Subject: [PATCH] detailed prompts description for worker agent tool in boss Former-commit-id: f28ad9edd571326a3916488bb66e2b743434d584 --- swarms/boss/boss_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarms/boss/boss_node.py b/swarms/boss/boss_node.py index 1f7f4ff9..e99c71c4 100644 --- a/swarms/boss/boss_node.py +++ b/swarms/boss/boss_node.py @@ -134,8 +134,8 @@ class BossNode: todo_prompt = PromptTemplate.from_template(boss_system_prompt) todo_chain = LLMChain(llm=self.llm, prompt=todo_prompt) tools = [ - Tool(name="TODO", func=todo_chain.run, description="useful for when you need to come up with todo lists..."), - self.worker_node + Tool(name="Goal Decomposition Tool", func=todo_chain.run, description="Use Case: Decompose ambitious goals into as many explicit and well defined tasks for an AI agent to follow. Rules and Regulations, don't use this tool too often only in the beginning when the user grants you a mission."), + Tool(name="Swarm Worker Agent", func=self.worker_node, description="Use Case: When you want to delegate and assign the decomposed goal sub tasks to a worker agent in your swarm, Rules and Regulations, Provide a task specification sheet to the worker agent. It can use the browser, process csvs and generate content") ] suffix = """Question: {task}\n{agent_scratchpad}""" prefix = """You are a Boss in a swarm who performs one task based on the following objective: {objective}. Take into account these previously completed tasks: {context}.\n """