Akoda35 commited on
Commit
710cc8d
·
verified ·
1 Parent(s): fbc37cd

Create app/core/router.py

Browse files
Files changed (1) hide show
  1. app/core/router.py +18 -0
app/core/router.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app/core/router.py
2
+
3
+ def route_agent(task: str):
4
+ t = task.lower()
5
+
6
+ if "image" in t or "hair" in t:
7
+ return "vision_agent"
8
+
9
+ if "fashion" in t or "style" in t:
10
+ return "fashion_agent"
11
+
12
+ if "voice" in t or "tts" in t:
13
+ return "voice_agent"
14
+
15
+ if "code" in t:
16
+ return "chat_agent_code"
17
+
18
+ return "chat_agent"