File size: 352 Bytes
710cc8d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# app/core/router.py

def route_agent(task: str):
    t = task.lower()

    if "image" in t or "hair" in t:
        return "vision_agent"

    if "fashion" in t or "style" in t:
        return "fashion_agent"

    if "voice" in t or "tts" in t:
        return "voice_agent"

    if "code" in t:
        return "chat_agent_code"

    return "chat_agent"