Files
docker-agent/examples/rule_based_routing.yaml
Arnaud Héritier d11fbf1a91 chore(examples): bump stale model references to current-generation values
Bumps model IDs across examples/*.yaml (and the gopher.hcl sibling) to the
current-generation anchors: Claude Sonnet 5 / Opus 5 (with Sonnet 4.6 / Opus
4.8 kept where a key signals a cheaper/fallback tier), GPT-5.6-sol/-terra,
Gemini 3.8 Flash, Grok 4.5, Kimi K3, and Llama 4 Maverick on OpenRouter.

Refs #4137.
2026-09-03 08:38:54 +00:00

52 lines
1.4 KiB
YAML

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-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.