"""Useful for when you need to spawn an autonomous agent instance as a worker to accomplish complex tasks, it can search the internet or spawn child multi-modality models to process and generate images and text or audio and so on"""
Imaginethreedifferentexpertsareansweringthisquestion.Allexpertswillwritedowneachchainofthoughtofeachstepoftheirthinking,thenshareitwiththegroup.Thenallexpertswillgoontothenextstep,etc.Ifanyexpertrealises they're wrong at any point then they leave. The question is...
Imaginethreedifferentexpertsareansweringthisquestion.Allexpertswillwritedowneachchainofthoughtofeachstepoftheirthinking,thenshareitwiththegroup.Thenallexpertswillgoontothenextstep,etc.Ifanyexpertrealizes they're wrong at any point then they leave. The question is...
raiseNotImplementedError("WorkerNode does not support async")
worker_tool=Tool(
name="WorkerNode AI Agent",
func=WorkerNode._run,
func=WorkerNode.run,
description="Useful for when you need to spawn an autonomous agent instance as a worker to accomplish complex tasks, it can search the internet or spawn child multi-modality models to process and generate images and text or audio and so on"
returnworker_tool(name="WorkerNode AI Agent",func=worker_node.run,description="Useful for when you need to spawn an autonomous agent instance as a worker to accomplish complex tasks, it can search the internet or spawn child multi-modality models to process and generate images and text or audio and so on")
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. Output: a todo list for that objective. Please be very clear what the objective is!"),
worker_tool
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"""