MBG0903 commited on
Commit
9e58632
·
verified ·
1 Parent(s): 2a624da

Update agents/brain.py

Browse files
Files changed (1) hide show
  1. 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, _ = run_slotting_analysis(message, slotting_df)
15
- return explanation, None, None, slotting_plan
16
 
17
  if task == "picking":
18
  explanation, route_img = run_picking_optimization(message, picking_df)
19
- return explanation, route_img, None, None
20
 
21
  if task == "report":
22
- # Combine both
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, None, slot_plan
27
 
28
- return "Sorry, I could not understand your request.", None, 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