Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -183,12 +183,12 @@ def supervisor_chain(state):
|
|
183 |
{"supervisor": "decision", "next_action": next_action}
|
184 |
)
|
185 |
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
except Exception as e:
|
190 |
print(f"[ERROR] Supervisor chain failed: {e}")
|
191 |
-
|
192 |
|
193 |
|
194 |
|
|
|
183 |
{"supervisor": "decision", "next_action": next_action}
|
184 |
)
|
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 |
|