From 97dafa7418c8d8ee4e44ca0730bd93852b1b7ba6 Mon Sep 17 00:00:00 2001 From: Kye Date: Wed, 5 Jul 2023 18:08:09 -0400 Subject: [PATCH] test --- swarms/agents/workers/worker_agent.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/swarms/agents/workers/worker_agent.py b/swarms/agents/workers/worker_agent.py index 7f711a03..b591d3df 100644 --- a/swarms/agents/workers/worker_agent.py +++ b/swarms/agents/workers/worker_agent.py @@ -5,14 +5,17 @@ from langchain.callbacks.manager import ( AsyncCallbackManagerForToolRun, CallbackManagerForToolRun, ) +from langchain.tools import tool + # ---------- Worker Node ---------- from pydantic import Field - -class WorkerNode(BaseTool): - """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 """ - name = "WorkerNode" - 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 +class WorkerNode(): + # """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 """ + # name = "WorkerNode" + # 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." def __init__(self, llm, tools, vectorstore): super().__init__()