🔀 chore(base.py): add "BaseTool" to the base_classes list in get_signature method

The "BaseTool" class is added to the base_classes list in the get_signature method. This change ensures that the "BaseTool" class is considered as one of the base classes when creating a tool's signature.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-06 17:10:06 -03:00
commit e36027b679

View file

@ -90,7 +90,7 @@ class ToolCreator(LangChainTypeCreator):
def get_signature(self, name: str) -> Optional[Dict]:
"""Get the signature of a tool."""
base_classes = ["Tool"]
base_classes = ["Tool", "BaseTool"]
fields = []
params = []
tool_params = {}