🐛 fix(tools.py): add "BaseTool" to the base_classes list to inherit from the correct parent class

The "base_classes" list in the ToolNode class has been updated to include "BaseTool" in addition to "Tool". This ensures that the ToolNode class correctly inherits from the BaseTool class, which is the intended parent class for this node.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-06 17:10:26 -03:00
commit 86bbdb0c30

View file

@ -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()