Matching Agent Tasks to Model Families
This lesson describes the model families available in Foundry Models and how to match them to agent roles, since each agent's task has its own demands for reasoning depth, speed, cost, modality and context length.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish reasoning, general, small and specialized model families.
- Apply matching criteria such as context window and tool-calling reliability.
- Confirm a model choice with evaluations on the agent's own dataset.
Model families and their capacities
Reasoning models, such as the GPT-5 series, spend internal reasoning tokens before answering. They are strongest at planning, multistep analysis, mathematics and code, and suit orchestrator and planner agents; they are slower and more expensive, accept a reasoning effort setting instead of temperature, and benefit from concise, goal-focused instructions. General chat models handle conversation, drafting, summarization and routine tool use with lower latency.
Small language models, such as the Phi family or mini and nano variants, are fast and cheap and suit routing, classification, extraction and guard checks at high volume. Multimodal models accept images and audio for agents that inspect photos, documents or calls. Embedding models, such as text-embedding-3-small and text-embedding-3-large, support retrieval, semantic caching and similarity routing. Open models from Hugging Face add specialized classifiers and rerankers.
Which model family?
Matching criteria
Beyond capability, several properties decide whether a model fits an agent. The context window limits how much material the agent can consider at once. Tool-calling reliability and structured output support matter for agents that call tools or return typed results. Latency and throughput matter on the critical path. Quota and regional availability decide whether the model can serve the expected load where the data must stay, and price multiplies by the number of calls in each run.
The following table shows a typical assignment in a customer service solution.
| Agent role | Typical model choice | Reason |
|---|---|---|
| Intent router | Small model or fine-tuned classifier | Very high volume, simple decision |
| Orchestrator and planner | Reasoning model | Multistep planning and delegation |
| Specialist with tools | General chat model | Reliable tool use at moderate cost |
| Document inspector | Multimodal model | Images of receipts and damage |
| Retriever | Embedding model | Vector and semantic search |
Beyond raw capability
Confirming the choice
Public benchmarks only shortlist candidates. The decision is made with evaluations on the agent's own dataset, comparing quality, latency and token cost, and choosing the smallest model that meets the quality bar. When a single agent receives a mix of simple and complex requests, model router in Foundry chooses a model per request; a custom cascade (small model first, escalate on failed validation) achieves a similar result with more control.
Confirming a model choice
Cost of an orchestrator
A team uses a large reasoning model for every agent in a five-agent pipeline, including a language detection step and a formatting step. Costs are three times the budget, and quality targets are exceeded by a wide margin.
Language detection and formatting do not need reasoning. Assigning a small model to them, and a general chat model to specialists that only call tools, keeps the reasoning model only for the planner. Evaluations on the pipeline's dataset confirm that quality stays above target. Reducing max output tokens alone would cut little cost because most tokens are spent on reasoning in steps that do not need it.
Which model family suits a request router, and which an orchestrator that plans?
Show answer
A small model for the router, because routing is simple and frequent. A reasoning model for the orchestrator, which must plan multi-step work.
Exam Tips
Remember for the exam
- Planner or orchestrator: reasoning model. Router: small model. Retrieval: embedding model.
- Check context window, tool-calling quality, quota and region, not only benchmark scores.
- Mixed request complexity with minimal code: model router.