diff --git a/backend/utils/tools.py b/backend/utils/tools.py index 5fef2a2b6..5846ed4bd 100644 --- a/backend/utils/tools.py +++ b/backend/utils/tools.py @@ -20,7 +20,9 @@ def get_tools_specs(tools) -> List[dict]: function_list = [ {"name": func, "function": getattr(tools, func)} for func in dir(tools) - if callable(getattr(tools, func)) and not func.startswith("__") + if callable(getattr(tools, func)) + and not func.startswith("__") + and not inspect.isclass(getattr(tools, func)) ] specs = []