@ -5,14 +5,17 @@ from langchain.callbacks.manager import (
AsyncCallbackManagerForToolRun,
AsyncCallbackManagerForToolRun,
CallbackManagerForToolRun,
CallbackManagerForToolRun,
)
)
fromlangchain.toolsimporttool
# ---------- Worker Node ----------
# ---------- Worker Node ----------
frompydanticimportField
frompydanticimportField
#
classWorkerNode(BaseTool):
@tool
"""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 """
classWorkerNode():
name="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 """
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."
# 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."