THR1011 · Theater
Choosing the Right Model
Speakers: Hsiang-Jen (Ryan) Chung
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
An MVP-led theater session on balancing quality, cost and latency when choosing models, using a community support agent built with Microsoft Agent Framework as the running example. Demos compare GPT-6 Luna and GPT-6.1 on simple and complex questions, with GPT-6.1 stated to be 20 times more expensive. The session then shows the model router in Microsoft Foundry (deployment, traces, model subset, balanced/quality/cost routing modes) and Microsoft Decision 1.1 for rule-based model selection with custom criteria. It ends with a multi-agent experiment showing that the orchestrator (main agent) needs the stronger model, while sub-agents with simple tools can use small models.
Best for: Developers building agents on Microsoft Foundry and Agent Framework who need practical guidance on cost-aware model selection and multi-agent model budgeting.
New material starts at 13:15. Before 13:15 the session covers manual model comparison and the already known Foundry model router; at 13:15 it introduces Microsoft Decision 1.1 for criteria-based automatic model selection.
Where to skip: Skip to 09:54 for the model router traces and routing-mode settings, then watch 13:15 (Microsoft Decision 1.1) and 19:37 (orchestrator-vs-sub-agent model experiment); the opening demos up to 07:31 and the recaps at 16:07 and 23:25 can be skipped.
Chapters (10)
- 00:00 Recap Depth 100 · Novelty 0/3
Intro: three strategies for model choice and the community support agent scenario
Ryan, a Microsoft Foundry MVP, frames model choice as a balance between quality, cost and latency and announces three strategies. He introduces the running scenario: a support AI agent for the Global AI Community Taoyuan chapter, built with Microsoft Agent Framework, using GPT-6 Luna and a custom 'Get A Web Page' tool that scrapes the community web page to answer questions about events, venues and registration.
- 01:47 Demo Depth 200 · Novelty 1/3
Demo: manually picking GPT-6 Luna vs GPT-6.1 for simple questions, with cost comparison
The agent running on GPT-6 Luna answers simple questions by calling the web page tool, and the answers are verified against the live website. The speaker then switches to GPT-6.1, restarts the agent and asks the same questions; the answers are equivalent but more organized as lists. With the same tool and system instruction, input tokens and response time are almost identical and output tokens similar, but GPT-6.1 is stated to be 20 times more expensive.
- 05:14 Demo Depth 200 · Novelty 1/3
Demo: complex multi-event summary question shows quality gap between the two models
A harder question asks the agent to list all events and summarize what kind of group the community is, which triggers many tool calls and longer runtime. GPT-6 Luna produces an answer; GPT-6.1 produces a more organized response with a markdown table, a summary, and upcoming and past events in separate sections. The speaker notes the better result comes at higher cost and that a developer cannot know in advance whether users will ask simple or complex questions.
- 07:31 Deep dive Depth 200 · Novelty 1/3
Model router in Microsoft Foundry: benefits and how to deploy it from the model catalog
To handle unpredictable question difficulty, the speaker introduces the model router in Microsoft Foundry, highlighting efficiency, the ability to restrict it to a subset of models, and transparency about which model was chosen. He shows the deployment path: Build > Models, browse base models, filter publisher to Microsoft, select model router and deploy it, after which it appears in the list of deployed models.
- 09:54 Demo Depth 300 · Novelty 1/3
Demo: model router traces, model subset and routing mode (balanced, quality, cost)
In VS Code the agent is pointed at the model router deployment; tracing shows the request went through the router, which selected GPT-6 Luna for the simple 'next event' question. In the Foundry model router details, the Edit dialog offers two settings: model subset (all supported Foundry models or a custom subset; the speaker picks GPT-6 extra, Luna, Sol and GPT-6.1 Sol) and routing mode, where the default is balanced and can be changed to quality-first or cost-first.
- 13:15 Demo Depth 300 · Novelty 2/3
Microsoft Decision 1.1: rule-based automatic model selection with custom criteria
As a middle ground between manual choice and the router, the speaker introduces Microsoft Decision 1.1, which supports three question types: true/false, choice between options, and evaluating a value as high or low. In code he uses the choice type with criteria mapping GPT-6 Luna to simple questions and GPT-6.1 to complex ones. Testing shows it picks GPT-6 Luna for the 'next event' question and GPT-6.1 for a harder question.
- 16:07 Deep dive Depth 200 · Novelty 1/3
Recap of the three strategies and the multi-agent model budget question
The speaker summarizes when to use each strategy: manual choice for narrow, specific agents; model router for automatic selection with subset and cost/quality tuning; Microsoft Decision 1.1 for automatic selection based on own rules. He then moves to multi-agent systems: a main agent splits a San Francisco weather-and-outfit request between a weather agent and a fashion agent, and with budget for only two strong models he polls the audience whether the 'manager' or the 'engineer' agents need the smarter model.
- 19:37 Deep dive Depth 300 · Novelty 1/3
Agent Framework model openness and experiment: orchestrator model matters most
Microsoft Agent Framework is described as open to any LLM provider: Microsoft Foundry, OpenAI directly, Amazon, Google Gemini or local models via Ollama. In the experiment, using Llama 3 3B via Ollama as the main agent made all runs fail, while GPT-6 Luna as the main agent worked even with smaller models in the sub-agents. Findings: a strong manager retries weak sub-agents until success; strong sub-agents cannot compensate for a weak manager; sub-agents with simple, specific tools can use small models.
- 22:00 Demo Depth 200 · Novelty 1/3
Demo: multi-agent weather and fashion advice for San Francisco
The multi-agent system receives a request about today's weather in San Francisco and what to wear. The main agent calls the weather agent and then the fashion lookup, and composes an answer that includes a custom branded clothing item ('Ryan MVP'). The run completes successfully.
- 23:25 Closing Depth 100 · Novelty 0/3
Closing: strategy summary and give the orchestrator the smarter model
The speaker repeats the three strategies: manual choice, the model router in Microsoft Foundry, and Microsoft Decision 1.1 for criteria-based selection, with Microsoft Agent Framework for building the agents. His answer to the poll: ideally give all agents strong models, but if forced to choose, the manager (main agent) should get the smarter model. He invites attendees to the Microsoft Foundry and Agent 365 hub from 11 to 3.
Announcements (1)
-
Microsoft Decision 1.1
A decision model that answers yes/no, choice and value-rating questions and can select an LLM per request based on developer-defined criteria.
Speaker’s quote (at 13:15)
„So introducing the Microsoft Decision 1.1 to help you to make this decision.“
Demos (6)
-
Compare two models chosen manually for a community support agent answering simple event questions, to weigh answer quality against cost.
Steps (6)
- In the agent code in VS Code, set the model to GPT-6 Luna and start the agent.
- Ask when the next event is; the agent calls the Get A Web Page tool and answers.
- Ask for the registration link and verify it on the live community website.
- Switch the model to GPT-6.1 and restart the agent.
- Ask the same two questions and compare the answer formatting.
- Compare input tokens, output tokens, response time and cost of both runs.
Prerequisites: Microsoft Agent Framework project with access to GPT-6 Luna and GPT-6.1 deployments and a custom web-page scraping tool.
-
Show how answer quality differs between GPT-6 Luna and GPT-6.1 on a complex question that uses most of the web page content.
Steps (4)
- Switch the agent back to GPT-6 Luna and restart it.
- Ask the agent to list all events and summarize what kind of group it is; observe the many tool calls.
- Switch the model to GPT-6.1 and restart the agent.
- Ask the same question and compare: GPT-6.1 returns a markdown table, a summary, and separate upcoming and past event sections.
Prerequisites: Same agent setup as the previous demo with GPT-6 Luna and GPT-6.1 deployments.
-
Deploy the model router in Microsoft Foundry so an agent can use automatic model selection.
Steps (4)
- Open Microsoft Foundry and go to Build > Models.
- Browse base models and filter the publisher to Microsoft.
- Select model router in the Microsoft section and deploy it.
- Confirm the model router appears in your deployed models list.
Prerequisites: Microsoft Foundry project with permission to deploy models.
-
Let the model router choose the model per question for the community agent, inspect the choice in traces and tune routing behaviour.
Steps (6)
- In VS Code, change the agent's model to the model router deployment and restart the agent.
- Ask '…?' and open the traces.
- In the trace, confirm the agent used the model router and see that it selected GPT-6 Luna.
- In Microsoft Foundry, open the model router deployment details and click Edit.
- Under model subset, choose either all supported models or a custom subset (e.g. GPT-6 extra, GPT-6 Luna, GPT-6 Sol, GPT-6.1 Sol).
- Under routing mode, keep Balanced or switch to quality-first or cost-first.
Prerequisites: Deployed model router in Microsoft Foundry; agent built with Microsoft Agent Framework with tracing enabled.
-
Automatically route each user question to GPT-6 Luna or GPT-6.1 based on the developer's own criteria.
Steps (4)
- In the agent code, call Microsoft Decision 1.1 with the 'choice' type.
- Write criteria for each option: GPT-6 Luna for simple questions, GPT-6.1 for more complicated questions.
- Run the agent and ask about the next event; Decision 1.1 selects GPT-6 Luna.
- Ask a more complex question and run again; Decision 1.1 selects GPT-6.1.
Prerequisites: Access to Microsoft Decision 1.1 and to GPT-6 Luna and GPT-6.1 deployments.
-
A main agent delegates a combined weather and outfit question to a weather sub-agent and a fashion sub-agent and merges their answers.
Steps (5)
- Start the multi-agent system with a main agent, a weather agent and a fashion agent.
- Ask about today's weather in San Francisco and how to dress.
- Observe the main agent calling the weather agent.
- Observe the fashion lookup call.
- Review the final combined answer, including the custom 'Ryan MVP' clothing suggestion.
Prerequisites: Multi-agent setup in Microsoft Agent Framework with a weather tool and a fashion lookup tool; model choices per agent.