@ -17,6 +17,8 @@ from langchain.agents import ZeroShotAgent, Tool, AgentExecutor
fromlangchainimportOpenAI,SerpAPIWrapper,LLMChain
fromlangchainimportOpenAI,SerpAPIWrapper,LLMChain
fromswarms.agents.workers.auto_agentimportagent
# Define your embedding model
# Define your embedding model
embeddings_model=OpenAIEmbeddings()
embeddings_model=OpenAIEmbeddings()
# Initialize the vectorstore as empty
# Initialize the vectorstore as empty
@ -43,6 +45,11 @@ tools = [
func=todo_chain.run,
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!",
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,
description="Useful for when you need to spawn an autonomous agent instance as a worker to accomplish complex tasks"