route_best_model
Recommends the best AI provider for a given task type by scoring providers on capability match, free-tier preference, and known strengths. Accepts optional constraints to refine routing.
Instructions
Recommend the best AI provider for a given task type.
Uses the public kbarbel640-del/ai-provider-registry to score providers
by capability match, free-tier preference, and known provider strengths.
Args:
task_type: Task category — chat, code, reasoning, vision,
search, embeddings, image, or tools.
constraints: Optional routing constraints:
- prefer_free (bool): Prefer free-tier providers.
- exclude_providers (list[str]): Provider ids to skip.
- api_style (str): Required API style (e.g. openai).
Returns: JSON string with top recommendation and up to four alternatives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_type | Yes | ||
| constraints | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |