#31595 [Feature]: ADEPT Router for Template-Based Routing and SLM Distillation from Production Traffic
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### The Feature
Introduce an ADEPT router strategy in LiteLLM Proxy to support adaptive delegation of agentic workflows to specialized SLMs trained from real production traffic
The feature adds a new ADEPT deployment type that routes requests by prompt structure, not just model alias. It derives a stable template signature from incoming prompts by masking variable spans and combining that template with the system prompt for per-tool isolation. If a matching trained route exists, it forwards to the template target model. If no match exists, it safely falls back to a configured default model
Each successful interaction is stored as training data in Postgres, linked to its template. At configurable conversation thresholds, LiteLLM can notify an external trainer endpoint. After training finishes, the trainer writes back a target model for that template, and subsequent matching traffic is delegated to the trained SLM with no proxy restart required
The feature also includes operator-facing setup and management in the dashboard.
### Motivation, pitch
Agentic system…