From 86bbdb0c30ac35a397fa22ef01f6842d5c0e73b7 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 6 Jul 2023 17:10:26 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(tools.py):=20add=20"BaseTool?= =?UTF-8?q?"=20to=20the=20base=5Fclasses=20list=20to=20inherit=20from=20th?= =?UTF-8?q?e=20correct=20parent=20class=20The=20"base=5Fclasses"=20list=20?= =?UTF-8?q?in=20the=20ToolNode=20class=20has=20been=20updated=20to=20inclu?= =?UTF-8?q?de=20"BaseTool"=20in=20addition=20to=20"Tool".=20This=20ensures?= =?UTF-8?q?=20that=20the=20ToolNode=20class=20correctly=20inherits=20from?= =?UTF-8?q?=20the=20BaseTool=20class,=20which=20is=20the=20intended=20pare?= =?UTF-8?q?nt=20class=20for=20this=20node.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/template/frontend_node/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/template/frontend_node/tools.py b/src/backend/langflow/template/frontend_node/tools.py index fa3942bd2..6b6903fdc 100644 --- a/src/backend/langflow/template/frontend_node/tools.py +++ b/src/backend/langflow/template/frontend_node/tools.py @@ -53,7 +53,7 @@ class ToolNode(FrontendNode): ], ) description: str = "Converts a chain, agent or function into a tool." - base_classes: list[str] = ["Tool"] + base_classes: list[str] = ["Tool", "BaseTool"] def to_dict(self): return super().to_dict()