Route Model Selection
metrx_route_modelRoutes tasks to optimal models based on complexity, using historical performance and cost analysis to reduce expenses without sacrificing quality.
Instructions
Get a model routing recommendation for a specific task based on complexity. Uses the agent's historical performance data and cost analysis to suggest the optimal model for each task complexity level. Helps reduce costs by routing simple tasks to cheaper models while keeping complex tasks on premium models. Do NOT use for comparing all models at once — use compare_models for static pricing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent to get routing recommendations for | |
| task_complexity | Yes | Estimated task complexity: low (simple lookups/formatting), medium (analysis/summarization), high (reasoning/generation) | |
| current_model | No | Currently configured model (e.g., "gpt-4o"). If omitted, uses agent primary model. |