Update agents/brain.py
Browse files- agents/brain.py +6 -7
agents/brain.py
CHANGED
|
@@ -11,18 +11,17 @@ class AutoWarehouseAgent:
|
|
| 11 |
task = detect_intent(message)
|
| 12 |
|
| 13 |
if task == "slotting":
|
| 14 |
-
explanation, slotting_plan
|
| 15 |
-
return explanation, None,
|
| 16 |
|
| 17 |
if task == "picking":
|
| 18 |
explanation, route_img = run_picking_optimization(message, picking_df)
|
| 19 |
-
return explanation, route_img, None
|
| 20 |
|
| 21 |
if task == "report":
|
| 22 |
-
|
| 23 |
-
exp1, slot_plan, _ = run_slotting_analysis(message, slotting_df)
|
| 24 |
exp2, route_img = run_picking_optimization(message, picking_df)
|
| 25 |
full_exp = exp1 + "\n\n" + exp2
|
| 26 |
-
return full_exp, route_img,
|
| 27 |
|
| 28 |
-
return "Sorry, I could not understand your request.", None, None
|
|
|
|
| 11 |
task = detect_intent(message)
|
| 12 |
|
| 13 |
if task == "slotting":
|
| 14 |
+
explanation, slotting_plan = run_slotting_analysis(message, slotting_df)
|
| 15 |
+
return explanation, None, slotting_plan
|
| 16 |
|
| 17 |
if task == "picking":
|
| 18 |
explanation, route_img = run_picking_optimization(message, picking_df)
|
| 19 |
+
return explanation, route_img, None
|
| 20 |
|
| 21 |
if task == "report":
|
| 22 |
+
exp1, slot_plan = run_slotting_analysis(message, slotting_df)
|
|
|
|
| 23 |
exp2, route_img = run_picking_optimization(message, picking_df)
|
| 24 |
full_exp = exp1 + "\n\n" + exp2
|
| 25 |
+
return full_exp, route_img, slot_plan
|
| 26 |
|
| 27 |
+
return "Sorry, I could not understand your request.", None, None
|