🐛 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:
parent
e36027b679
commit
86bbdb0c30
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue