Update engine/flow_router.py
Browse files- engine/flow_router.py +11 -0
engine/flow_router.py
CHANGED
|
@@ -44,6 +44,17 @@ def route_message(state: str, text: str, session: dict):
|
|
| 44 |
value = parsed["value"]
|
| 45 |
entities = parsed.get("entities", {}) or {}
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
# =========================
|
| 48 |
# Global topic switches
|
| 49 |
# =========================
|
|
|
|
| 44 |
value = parsed["value"]
|
| 45 |
entities = parsed.get("entities", {}) or {}
|
| 46 |
|
| 47 |
+
print("========== MESSAGE CLASSIFICATION ==========")
|
| 48 |
+
print(f"state: {state}")
|
| 49 |
+
print(f"text: {text}")
|
| 50 |
+
print(f"kind: {kind}")
|
| 51 |
+
print(f"value: {value}")
|
| 52 |
+
print(f"entities: {entities}")
|
| 53 |
+
print(f"source: {parsed.get('source')}")
|
| 54 |
+
if parsed.get("raw_model_output") is not None:
|
| 55 |
+
print(f"raw_model_output: {parsed.get('raw_model_output')}")
|
| 56 |
+
print("============================================")
|
| 57 |
+
|
| 58 |
# =========================
|
| 59 |
# Global topic switches
|
| 60 |
# =========================
|