Chat clients: OpenAI, Azure OpenAI and Foundry
The Agent class stays the same while the chat client behind it changes. Watch one agent send the same question to OpenAI, to Azure OpenAI and to a Microsoft Foundry project, and see how the client decides where a request goes.
10 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 10 minutes.
Written from the official documentation
- learn.microsoft.com/en-us/agent-framework/integrations/by-component/model-providers
- learn.microsoft.com/en-us/agent-framework/integrations/by-component/model-providers/openai
- learn.microsoft.com/en-us/agent-framework/integrations/by-component/model-providers/azure-openai
- learn.microsoft.com/en-us/agent-framework/integrations/by-component/model-providers/microsoft-foundry
In this module: Agents and models
- Chat clients: OpenAI, Azure OpenAI and FoundryOne Agent class with a swappable chat client behind it.Pro
- Anthropic, Gemini, Bedrock and OllamaThe same agent on other clouds or on a local model.Pro
- Agent services: Foundry, Copilot and ClaudeWrapping agents that another service already runs.Pro
- Structured outputsGetting typed data back instead of free text.Pro
- Declarative agents in YAMLDefining an agent in YAML and loading it with AgentFactory.Pro
- Custom agentsWriting your own agent class on top of BaseAgent.Pro