🐛 fix(tools.py): add "BaseTool" as a base class for PythonFunctionToolNode to fix inheritance issue

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-10 18:42:30 -03:00
commit 7b2db83033

View file

@ -109,7 +109,7 @@ class PythonFunctionToolNode(FrontendNode):
], ],
) )
description: str = "Python function to be executed." description: str = "Python function to be executed."
base_classes: list[str] = ["Tool"] base_classes: list[str] = ["BaseTool", "Tool"]
def to_dict(self): def to_dict(self):
return super().to_dict() return super().to_dict()