Semantic Routing via Autoregressive Modeling