diff --git a/agent/component/switch.py b/agent/component/switch.py index 72cfaccf241..fe2e2452ffb 100644 --- a/agent/component/switch.py +++ b/agent/component/switch.py @@ -42,8 +42,6 @@ def check(self): self.check_empty(self.conditions, "[Switch] conditions") for cond in self.conditions: if not cond["to"]: raise ValueError(f"[Switch] 'To' can not be empty!") - if cond["logical_operator"] not in ["and", "or"] and len(cond["items"]) > 1: - raise ValueError(f"[Switch] Please set logical_operator correctly!") class Switch(ComponentBase, ABC):