Delete planner.py
Browse files- planner.py +0 -44
planner.py
DELETED
|
@@ -1,44 +0,0 @@
|
|
| 1 |
-
# ---------------------------------------------------------
|
| 2 |
-
# INTENT DETECTOR FOR AUTO-GPT WAREHOUSE AGENT
|
| 3 |
-
# ---------------------------------------------------------
|
| 4 |
-
|
| 5 |
-
def detect_intent(message: str) -> str:
|
| 6 |
-
"""
|
| 7 |
-
Reads user input and classifies which warehouse operation task is required.
|
| 8 |
-
Returns one of:
|
| 9 |
-
- 'slotting_analysis'
|
| 10 |
-
- 'picking_route'
|
| 11 |
-
- 'full_warehouse_assessment'
|
| 12 |
-
- 'unknown'
|
| 13 |
-
"""
|
| 14 |
-
|
| 15 |
-
if not message:
|
| 16 |
-
return "unknown"
|
| 17 |
-
|
| 18 |
-
msg = message.lower()
|
| 19 |
-
|
| 20 |
-
# Slotting-related intents
|
| 21 |
-
slotting_keywords = [
|
| 22 |
-
"slot", "slotting", "sku placement", "velocity",
|
| 23 |
-
"fast mover", "medium mover", "slow mover", "optimize slotting"
|
| 24 |
-
]
|
| 25 |
-
if any(k in msg for k in slotting_keywords):
|
| 26 |
-
return "slotting_analysis"
|
| 27 |
-
|
| 28 |
-
# Picking-related intents
|
| 29 |
-
picking_keywords = [
|
| 30 |
-
"pick", "picking", "pick path", "picking route",
|
| 31 |
-
"shortest path", "walking path", "optimize picking"
|
| 32 |
-
]
|
| 33 |
-
if any(k in msg for k in picking_keywords):
|
| 34 |
-
return "picking_route"
|
| 35 |
-
|
| 36 |
-
# Full warehouse assessment
|
| 37 |
-
overall_keywords = [
|
| 38 |
-
"full report", "warehouse report", "assessment",
|
| 39 |
-
"complete analysis", "full warehouse", "end to end"
|
| 40 |
-
]
|
| 41 |
-
if any(k in msg for k in overall_keywords):
|
| 42 |
-
return "full_warehouse_assessment"
|
| 43 |
-
|
| 44 |
-
return "unknown"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|