File size: 428 Bytes
9b14733
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from joblib import load

router = load("system-router.joblib")

queries = [
    "Use a human approval step before an agent can deploy code",
    "Route hard reasoning tasks to a stronger model",
    "Store long-term memories for a persistent agent"
]

for q in queries:
    label = router.predict([q])[0]
    scores = router.predict_proba([q])[0]
    confidence = scores.max()
    print(f"{q}\n  -> {label} ({confidence:.2f})")