ragflow
ragflow copied to clipboard
[Bug]: Raise KeyError: 'logical_operator' when using Agent, seems to be a front-end bug
Describe your problem
When I using Agent to extract seriel number, operator "switch" raise this. What's wrong with my settings? THX!
==> logs/api/ERROR.log <== 'logical_operator' Traceback (most recent call last): File "/ragflow/api/apps/canvas_app.py", line 156, in reset canvas = Canvas(json.dumps(user_canvas.dsl), current_user.id) File "/ragflow/agent/canvas.py", line 102, in init self.load() File "/ragflow/agent/canvas.py", line 117, in load param.check() File "/ragflow/agent/component/switch.py", line 45, in check if cond["logical_operator"] not in ["and", "or"] and len(cond["items"]) > 1: KeyError: 'logical_operator'