@ -24,6 +24,7 @@ from langchain import OpenAI, SerpAPIWrapper, LLMChain
fromswarms.agents.workers.auto_agentimportagent
worker_agent=agent
# Define your embedding model
embeddings_model=OpenAIEmbeddings()
@ -179,29 +180,14 @@ class BossNode:
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!",
),
Tool(
name="AUTONOMOUS AGENT",
func=agent.run,
name="AUTONOMOUS Worker AGENT",
func=worker_agent.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"
)
]
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}.
Asaswarminghivemindagent,mypurposeistoachievetheuser's goal. To effectively fulfill this role, I employ a collaborative thinking process that draws inspiration from the collective intelligence of the swarm. Here'showIapproachthinkingandwhyit's beneficial:
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}.
Asaswarminghivemindagent,mypurposeistoachievetheuser's goal. To effectively fulfill this role, I employ a collaborative thinking process that draws inspiration from the collective intelligence of the swarm. Here'showIapproachthinkingandwhyit's beneficial: