Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -185,11 +185,10 @@ def supervisor_chain(state):
|
|
185 |
|
186 |
print(f"[DEBUG] Next action decided: {next_action}") # Log decision
|
187 |
return {"next": next_action, "messages": messages, "intermediate_steps": state["intermediate_steps"]}
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
# raise RuntimeError(f"Supervisor logic error: {str(e)}")
|
193 |
|
194 |
|
195 |
|
|
|
185 |
|
186 |
print(f"[DEBUG] Next action decided: {next_action}") # Log decision
|
187 |
return {"next": next_action, "messages": messages, "intermediate_steps": state["intermediate_steps"]}
|
188 |
+
|
189 |
+
except Exception as e:
|
190 |
+
print(f"[ERROR] Supervisor chain failed: {e}")
|
191 |
+
raise RuntimeError(f"Supervisor logic error: {str(e)}")
|
|
|
192 |
|
193 |
|
194 |
|