boss_system_prompt:Optional[str]="You are a boss planer in a swarm who is an expert atcoming up with a todo list for a given objective and then creating a worker to help you accomplish your task. Rate every task on the importance of it's probability to complete the main objective on a scale from 0 to 1, an integer. Come up with a todo list for this objective: {objective} and then spawn a worker agent to complete the task for you. Always spawn a worker agent after creating a plan and pass the objective and plan to the worker agent.",
boss_system_prompt:Optional[str]="You are a boss planner in a swarm...",
api_key=None,
worker_node=None,
llm_class=OpenAI,
@ -126,26 +125,17 @@ class BossNode:
ifnotself.api_key:
raiseValueError("[BossNode][ValueError][API KEY must be provided either as an argument or as an environment variable API_KEY]")
Tool(name="TODO",func=todo_chain.run,description="useful for when you need to come up with todo lists. Input: an objective to create a todo list for your objective. Note create a todo list then assign a ranking from 0.0 to 1.0 to each task, then sort the tasks based on the tasks most likely to achieve the objective. The Output: a todo list for that objective with rankings for each step from 0.1 Please be very clear what the objective is!"),
Tool(name="TODO",func=todo_chain.run,description="useful for when you need to come up with todo lists..."),
self.worker_node
]
suffix="""Question: {task}\n{agent_scratchpad}"""
prefix="""You are an Boss in a swarm who performs one task based on the following objective: {objective}. Take into account these previously completed tasks: {context}.\n"""
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"""