-
Notifications
You must be signed in to change notification settings - Fork 394
Expand file tree
/
Copy pathrule_based_routing.yaml
More file actions
51 lines (45 loc) · 1.38 KB
/
Copy pathrule_based_routing.yaml
File metadata and controls
51 lines (45 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
models:
router:
provider: anthropic
model: claude-haiku-4-5
routing:
# Simple greetings and quick questions → fast model
- model: fast
examples:
- "hello"
- "hi there"
- "good morning"
- "how are you"
- "thanks"
- "bye"
# Code-related questions → capable model
- model: capable
examples:
- "explain the algorithm"
- "implement a function"
- "debug this code"
- "fix this error"
- "write a program"
- "refactor this code"
# Complex analysis → capable model
- model: capable
examples:
- "analyze this document in detail"
- "compare and contrast these approaches"
- "explain the implications of this decision"
- "provide a comprehensive review"
capable:
provider: anthropic
model: claude-sonnet-4-5
fast:
provider: anthropic
model: claude-haiku-4-5
agents:
root:
model: router
description: An intelligent assistant that automatically selects the best model
instruction: |
You are a helpful AI assistant. Respond to user questions accurately and concisely.
For simple questions, be brief and direct.
For complex questions, provide detailed explanations.
For code questions, include examples and explanations.