A Router is a model that classifies user prompt ('intent') and forwards it to the most appropriate Sub-Agent for handling. Smaller Models are very good fit for usecases where fast, accurate classification is essential. I'll show you how to customize ModernBERT for classifying user queries to create a smart LLM routing system -
View it on GitHub