compare_models_for_task
Rank LLMs by expected cost per successful task from token counts and success rates, so cheap but unreliable models do not rank above reliable ones.
Instructions
Rank models for a task by expected cost per successful task.
Cost per token is the wrong ranking for agent work: a cheap model that fails half its tasks costs more per success than a pricier, reliable one. Pass measured success rates (0-1 per model_id) if you have them; models without a supplied rate are ranked on raw cost.
Args: input_tokens: Input tokens for one attempt at the task. output_tokens: Output tokens for one attempt at the task. success_rates: Optional map of model_id to success rate in (0, 1].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_tokens | Yes | ||
| output_tokens | Yes | ||
| success_rates | No |