[00:01] probably been experimenting with integrating AI into your applications. And in today's video, I want to show you a practical example of how you can build a pull request review agent with some simple C# code and Microsoft Foundry. [00:16] Foundry gives you access to more than 11,000 models, and for starters, I'm going to use GPT-5.4 mini. Now, we need to get access to this model somehow, and we can do this without even leaving VS Code. We're going to see the Foundry [00:30] Toolkit for VS Code extension, which allows you to build with AI agents in Microsoft Foundry directly from your VS Code instance. Now, if you're not familiar, Microsoft Foundry is an agentic platform as a service that [00:43] solves many of the pain points of integrating agents into your C# applications. If I open the Foundry Toolkit, I can get access to my projects and even create new projects directly in Foundry. And I've got a PR Reviewer [00:56] project here. If I want to add more models, I can just deploy a new one. We have access to all of the latest frontier models. So, going back to our model that we want to use, which is going to give us an endpoint where we [01:12] can connect to our AI agent. And then the next step is what makes this example really powerful. I'm going to give it access to the GitHub MCP. This will allow my agent to use some of the available tools. And in this case, I'm [01:24] allowing it to read my pull requests and also write a pull request review. And finally, we can construct our request, and I'm telling it to review a specific pull request inside of one of my repositories. One important detail is [01:37] that here the agent loop runs in our own code. We're using Foundry models, but not Foundry agent service. So, observability, governance, and compliance are on us. For production, agent service gives you the managed path [01:50] to deploy, scale, monitor, and govern agents in Azure. And to actually run this, you can just use dotnet run. I send the environment variables and if I execute this, our agent connects to Foundry and then it's going to use the [02:04] GitHub MCP server to fetch the pull request info, look at the changed files, it's going to post it on my behalf inside of my actual repo. So, you can request and here's the review generated by our AI agent. And what makes all of [02:21] this so powerful, if I want to change a model, all I have to do is swap out the model that I'm using here, for example, GPT-5.4, and you can even leverage the model router that exists inside of Foundry, which is going to automatically [02:36] route the incoming request to the model that it thinks is best suited to satisfy the given request. This could give you cost savings upwards of 50% and this is important. So, if you want to get started, go ahead and install the [02:50] Microsoft Foundry toolkit in VS Code, create your first Foundry project, and deploy an AI model that you can use from your C# applications.