diff --git a/backend/utils/tools.py b/backend/utils/tools.py index c1c41ed37..3e5d82fd6 100644 --- a/backend/utils/tools.py +++ b/backend/utils/tools.py @@ -59,7 +59,10 @@ def get_tools_specs(tools) -> List[dict]: for param_name, param_annotation in get_type_hints( function ).items() - if param_name != "return" and param_name != "__user__" + if param_name != "return" + and not ( + param_name.startswith("__") and param_name.endswith("__") + ) }, "required": [ name