Route Model Selection
metrx_route_modelGet a model routing recommendation for a task based on complexity. Analyzes historical performance and cost to suggest the optimal model, reducing costs by matching task complexity to model tiers.
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. |