Video: Claude in Microsoft Foundry: Building agents for production | Duration: 5404s | Summary: Claude in Microsoft Foundry: Building agents for production | Chapters: Webinar Introduction (21.855s), AI Model Evolution (60.129997s), Cloud Platform Features (173.54s), Model Family Overview (314.2s), Live Agent Demo (433.51498s), Agentic Workflows (785.07s), Observability and Governance (1055.2949s), Cloud Agent SDK (1519.2599s), Closing and Resources (1725.895s)
Transcript for "Claude in Microsoft Foundry: Building agents for production":
Hello, everyone, and welcome to our webinar today, Claude and Microsoft Foundry, Building Agents for Production. I'm Caroline Matthews, and I am an applied AI architect at Anthropic. So I work with customers and partners that are putting Claude into production. And I'm joined today by Katie from Microsoft, and he's gonna talk to us more about building a Gentec applications on Boundary. First, a few housekeeping items. A recording of this session will be distributed within about twenty four hours, and you'll receive it by email if you have registered for the session. Questions can be submitted at any time on the q and a tab, and please give us feedback. Rate the webinar by using the survey that's shared near the end of the webinar. So first, how did we get here? The one line version is software development is shifting from writing code to orchestrating the agents that write code. And what we're gonna do today is show you where all of that is going right now, and we're gonna do it on Foundry. So first, a bit of a history lesson. This is six generations of our models over eighteen months. Large improvements have been made in one of the most popular metrics for code generation that Swede Bench verified. And by large, that gap, it means between the model that could suggest a fix back in the days of 3.5 Sonnet to a model that can finish a ticket and get it ready to go to prod, and that's what we're seeing now as we continue beyond even Opus 4.7. And a couple other things on this slide that are important besides just the coding abilities, we also are measuring the length of time that an agent can work autonomously. And we're seeing tasks now that can run for hours, even days. And we're also seeing that models are becoming more and more clever about selecting and using the tools that they have at their disposal, which is what extends their intrinsic knowledge. All of this is what's leading us to be able to build more and more complex and autonomous AgenTek systems. And we're now able to do all of this with Claude models that are generally available on Microsoft Foundry. And what that means is that builders can focus on building their best product, but the platform will handle all the scaffolding. So first, frontier intelligence on the hard work. So starting with the models themselves. Claude is built for the parts of the work that are really hard. So reasoning through problems that don't have an obvious answer, writing and refactoring real code across a code base, analysis that holds up under scrutiny. So it's not autocomplete or surface level summarization. It's the model will carry the work that you'd normally have to hand to your most experienced engineer or analyst. And when the model is strong on the hard 20%, everything downstream gets simpler. You also get safety and governance built in, and it's not bolted on. Safety is part of how Claude is built. It's not a layer that's just added at the end. The model is actually trained to be helpful and to decline appropriately. And on Azure, that sits inside the governance that you already trust. So there's data handling, access controls, content filtering, audit, compliance. So you don't have to trade capability for control. You get the Frontier model and the enterprise guardrails in the same deployment, and it's governed the same way as everything else that you run. You also have native integration with the Microsoft stack that you're already using. This runs where your teams already work. Claude is available on Microsoft Foundry. It works with the identity and data that you're already managing in Microsoft 365. It's even available through GitHub Copilot. Your developers don't change their environment, and your security and platform teams don't have to take on a new vendor service to review. Claude meets your people where they already are. And last, it's a short path from pilot to production. And the reason it's short is because evaluation and observability live in the same place as everything else. So you can test a prompt. You can measure it against your own evals. You can watch it in production. You can catch regressions, and you don't have to stitch five separate tools together to do it. And that's the difference between a demo that lands in a meeting and something that you could actually ship and stand behind. And that's the through line. You focus on your product. The platform handles the scaffolding. So the model, the governance, the integration, evals, observability, all of that is there so your team spends its time on what really differentiates you, not just on the plumbing. So let's take a quick tour of a model family. All of this is available, as I mentioned. It's GA on Foundry. And the point of this slide is that it is a family. It isn't four separate models. It's really one decision so you can route your task to the correct level of intelligence. So Fable, very exciting news. This is the newest and most capable model. It's built for long running agents and your really complex, high autonomy work. This is where we're able to see agents that can run for days, maybe even longer. We have OPUS. This is our frontier workhorse, we'll call it, for complex agentic coding and enterprise workloads. This is still an excellent model that you can get amazing capabilities from, especially when you have very hard reasoning problems where accuracy is very important. You want to deploy an OPUS for things like complex planning, understanding trade offs. There's a tremendous amount of value with OPUS. We also have SONNET, and this is really a great default model. This is where a lot of production systems end up standardizing. It's a great balance of both speed and intelligence and works really well for your everyday workflows. And, of course, we have Haiku. This is for your high volume and latency sensitive work. So this is where cost and speed matter most. And Haiku is still a great model for many tasks, especially things like summarization, classification, tagging, and labeling. IQ can really do some great things for you there too. So a couple things I wanna really point out here. These are all using the same API and the same safety standards. So switching between them is really a one line change. You don't have to rearchitect. And you can use the frontier where the task demands it, but the efficient model's everywhere else. And so that's how you can keep quality at the top, but your margins healthy at the same time. Now we're going to see this in action with a demonstration of using Claude models on Microsoft Foundry. Here I am just at the opening screen where you can see my project is already set up. I'm gonna click into the build area, and then you'll see under deployments where we have our models available. And I've deployed a few of the different Claude models. Today, we're gonna take a look at Claude sonnet 4.6. This is a great model in particular for coding tasks and things like that. A very good balance in terms of the capabilities and Frontier model, but it has a good price point as well as latency, that will make it a great option for you as you're building things like this agent I'm about to demonstrate to you. So first, let's just make sure the model's up and running and everything is going well. So I've opened it into the playground within Microsoft Foundry, and I'll just say hello. We'll get just a generic response back because at the moment, the instructions it has are just to help people find information. Pretty generic. I'm gonna adjust it slightly for what we're gonna do today. So now I'm going to tell it that it is gonna help people order cupcakes, and it will need to answer everything with cupcake puns and emojis. So let's start a new chat. We'll see how this affects the results. I'll tell it I'm hungry. Little bit of a hint there. Great. And we get some fairly ridiculous responses, but it is following our instructions, which was to use cupcake puns and emojis. So we see that the model is up and running, and we're able to work with it. Now you'll see here, you do have an option right directly within Microsoft Foundry. You could save it as an agent and be able to run it using, those services, which is great. But today, we're gonna take a look at how we would do this within code. So I'm gonna switch over to Versus Code. And you'll see on my screen, I have set up sparkles the cupcake ordering agent. And so a few things we'll walk through. First, so the way we connect to this, you'll see here, is with this Anthropic Microsoft Foundry client that is part of the agent framework foundry SDK. So that's available to us. We have a couple of configurations. So the model API key and base URL, these can all be found in the details tab over there in Microsoft Foundry where we just were. So you can load those up. You also do have the option as well that you could use keyless deployment. So the next step is we're gonna take a look at we have created a cupcake store MCP. So this is a publicly available MCP, and what the MCP encapsulates is essentially the instructions that we're gonna give to our agent as well as sets of tools that it's gonna use to be able to process cupcake orders, answer questions, all of the things that we're about to see. And so as I mentioned, this MCP server is set up as a public one for us to use for this type of demonstration. But you also can have private MCPs where you would pass authorization headers. So certainly a great way to be able to connect to internal and external systems. So first thing we're gonna do is from the MCP, we are going to get the instructions and welcome banner. This is literally just instructions the system prompt and explaining to the agent how it should behave. And then we just have a cute welcome banner that you'll see in just a moment. So then we create the agent, passing in those instructions, the tools. And at this point, this is where I've named it Cupcake Agent. You'll see then that the way we're gonna demonstrate it today is to go ahead and kick off the session. So this is just gonna run on a loop awaiting responses and and interactions from us as a user and being able to interact with both that MCP tool as well as the instructions that we give it. So let's give it a whirl. And there's our cute banner that I mentioned that we were gonna get. I'll scoot this up so we can see a little bit more. So you see here, the first thing is, do I already have a customer ID, and I don't. I'm gonna say that I need a new one. And first, it's going to ask me all the information it needs in order to set me up for this. So I'm gonna go ahead and give it my name, and it will go back. It still needs a little bit more information. So, again, pretty interactive. And at that point, we also need to go through our actual order process. So I've got everything set up for my customer. And the way we do the ordering is we have a little dashboard that is running off of that same MCP server that is going to have vouchers for us, and this is what lets us actually be able to do the order. So we'll we'll show this to you in just a second. So I have decided I would like a lemon sponge today. So I'm gonna go ahead and catch that one. And what we're gonna see is there is a six character voucher code that we need. I'm just gonna go ahead and type that in because I've got mine already. Looks like we've already got ours ready. I am going to actually do this as a real order. We'll see. And then once I do that, we will pop back over to see what happens to our orders, and there it is. There's my order for the lemon sponge cupcake. So, I hope you've enjoyed this. This is just a fun way to show how you get all the amazing things with Azure in terms of enterprise capabilities and scale, and you also get the ability to now build your applications using and profit Claude models as well. Thank you. I hope that was fun, and you got to see some of this in action. And now we're going to turn it over to KG, and he's going to get agentic. Thanks, Caroline. So what is an agent? Imagine you get an email or Teams of Slack message that a customer reported some issues with your product. Before agents, you load your dashboards, run some database queries, message your teammates, and try to figure out what's going on. With agents, you just go and ask your agent, hey. A customer is reporting issues. What's up? And then maybe you ask another agent to fix it. Better yet, you have agents running all the time and let you know when things come up before the customer has to tell you that something's going wrong. Maybe even you can let the agent proactively go and fix it. So that's what an agent is. How does an agent work? An agent is built with a Frontier model like CLAW inside what's called a harness. You've probably heard that term a lot recently. That harness drives the model inference and enables the model to write code, invoke tools, retrieve data, and iterate in a loop until it has an answer to whatever task you gave it. This is often called the agentic loop. The agent takes an input like in my example, I ask it, hey. Customer's reporting an issue. Tell me what's going on. It then goes and actually reasons about how to solve that problem, what data it needs to go look up, what code it might need to write, and then orchestrates all of that together. It observes the results. And if it needs more data, it continues iterating agentically by controlling its own flow of how it's getting data, what action to take, until it gets the result that you're looking for. So it takes a high level question like what's going on with customer x? And it writes the code and queries to figure out what's going on, figure out what are the ways to mitigate the issue, then write out, for example, a clear organized report to you and potentially even repair the issue if it's within what you've decided that you let an agent take care of by itself. So building agents is a process that looks like a life cycle of building, deploying, operating, monitoring, evaluating, and improving agents over time. This life cycle feeds back on itself. You need a platform that helps you govern agents through every phase, evaluating them in action, during development, monitoring in the production, mitigating the risks associated with production code, optimizing the behavior, and improving the performance as your business and your data and your customers change. So where do you manage the life cycle of your agents? Well, that's what Foundry agent service is for. Foundry agent service is part of Microsoft Foundry, and it's designed to be the best place to build and run AI apps and agents at scale. It's open by design. You can work with different frameworks and protocols, including agent to agent protocol, MCP, and other emerging standards. It's built for multi agent workflows and supports the agent framework of your choice, like Claude Agent SDK. With Foundry agent service, you can access models in Foundry, connect to Foundry IQ, Work IQ, and other data sources, leverage tools built and provided by a variety of vendors, and deploy them in production in a secure enterprise grade platform. With one click publishing, you can deploy the agents you build directly into Microsoft 365, Teams, and Agent 365. With the agent service in Microsoft Foundry, you get end to end observability and simplified governance that's underpinning everything in Microsoft Foundry. When you have agents running production, you need to evaluate and monitor them like we talked about in the agent life cycle. For that, Foundry provides you first class evaluation and observability tools to help with selecting, evaluating, and upgrading models in the evaluation tools in Foundry. You also get monitoring and debugging with Foundry observability, built on OTEL or open telemetry, and running on a rock solid foundation of Azure Monitor that customers depend on. Using those of observability traces, you can track down issues as well as, over time, improve and optimize the behavior of your agents based on production runs. Now to ensure your production agents meet your operating standards, you want simple, reliable governance tools. With Microsoft Foundry, you manage your agents with Microsoft Entra for authentication and agent identity, Microsoft Defender for security, and for governance. You can manage all of your agents whether they're built in Foundry or not from the management layer of Microsoft Foundry. This means that organizations can build with powerful frontier models while maintaining the security compliance and governance that they expect from Microsoft. Now, let's look at agents using Claude in action in Microsoft Foundry. So let me show you again what running an agent looks like in practice with Claude on Microsoft Foundry. Here's an example of an agent I built with Claude in the foundry agent service. It's running in what's called a hosted agent, which we'll come back to in a little bit. It's a customer support and life side triad system using the Claude agent SDK running in Microsoft Foundry inside a hosted container sandbox. This agent can access my data and execute an operational workflow. I can give it a command like, run the weekly up flow, and it's gonna kick off the workflow that it has for looking at live site incidents, customer support calls, any messages or emails that people have been sending about the live site status, looking at the data, and pulling putting it all together. So the agent has come back with its report. It's done the weekly auth review. Turns out situation is red. We've had a lot of errors and support cases this week. 40% up. And so what the agent has done is looked at all of the data in terms of the life sites, the support tickets, any communication that's happened. And it's and it's done these multiple steps, like and also generating a trend forecast. So it gives you that report. And, again, it ran that Azentic loop where you basically gave it an idea of what we want, running the weekly attribute. And it has a prompt that underlines what that means. But after that, it goes and executes the workflow itself until it knows it's met what this workflow is supposed to do, which includes things like what are the top impacting things, forecasting what it's gonna look like this this coming week, and then some artifacts to capture the whole analysis that you can go back and look at it later, not just locked into this chat window. And where do you get all of that? So that's where Microsoft Foundry comes in. And so this is where you find that agent in Microsoft Foundry. I'm already on a page that shows the particular agent that I'm running in the project, the Claude agent SDK running for the support intelligence case in the hosted agent. So you can see all of the sessions that have been running for this agent. When I click on it, you can see all of the steps that it took. I can open this session. And what you can see here is those articles that I pointed to, the summary and forecast that it produced, it's available right here in the foundry. And you can programmatically access these as well. So for example, it has a weekly forecast. It puts that in in a nice chart. It also has the executive summary as a markdown that you can refer back to. This is, basically what the agent printed out, in the user experience. And I can also go and look at the trace of what the agent was doing. So I can I'll pick on I'll click on this, which is the latest agent session. And what you can see is all of the different turns and all the two calls that the Claude Agent SDK made in running that weekly ops workflow. And this is something that I actually wired up. I use Claude code to basically tell it, hey. I wanna record all of the events that the Claude agent is doing while it's running that ops workflow. And I said, please go look up the documentation on how to wire up traces for the Foundry hosted agents so that I can see it in Microsoft Foundry. And it just took a few minutes, wired it all up, one shot as they say. And now I can see all of the activity of that agent in the foundry. And there's a and then you can look at all of the, you know, steps, kind of metadata, each of the steps. And in the foundry, we also have this nice view where you can kinda play back in time all of the actions that that agent took for that particular session. Now we also have a monitoring view, the observability piece that we talked about, where we are recording, all of the different runs that this agent has made and to be able to do things like evaluations as well. So that's the power of combining Claude SDK Claude Agent SDK running in an agent in a workflow we're running on Microsoft Foundry. Thank you so much, Katie. That was great. Now we're gonna jump into a few more details. So a harness. What is a harness? It's a term that you hear us use a lot, and I'm just gonna take a second because I wanna define it. This is very important. So the model on its own, that's just reasoning, and you send it a message that sends one back. But the harness is the software wrapper around it that turns reasoning into an agent. So it gives the model tools that it can call and the ability to interact with its environment. It's the context and the memory that it needs, and the key part there, the loop. The loop you see in the diagram is the model will decide on an action. The harness is gonna execute it in the environment and then feed those results back, and the model decides what to do next. And it continues to do this until the task is completely done, and then it's gonna stop and come back to you. So the harness is also where the practical engineering lives. So things like managing context and permissions and error handling. When people ask you what's the difference between a model and an agent, this is really the answer. So you get the same model, but the harness around it is what turns it into something that can really do the work. And this is where the Claude Agent SDK comes in. So what is it? It is the harness behind Claude Code. So it's the same agent loop. It's the same tools and context management that powers the product that millions of developers use every day, and it's programmable in Python and TypeScript. So it is the production harness, and you're building on the exact same thing we use ourselves. So the loop is simple, and it's the whole model. You gather context, you take action, you verify the work, and you repeat it until the task is done, and that's it. So every capable agent comes back to those four steps. And what makes an agent good isn't just a clever prompt. It's doing each of those steps well, and the SDK is built to do them well by default. So out of the box, you get code execution. You have a file system and web search, a to do list and MCP, plus your own custom tools. So the agent can run code, and it can read and write files, read and write files. It can look things up. It can keep track of a multistep plan, and it can reach into your systems through MCP. Even if you have an internal API or a proprietary data source, you expose that as a tool, and the agent will use it like any other. And then there's the layer that most people underestimate, the infrastructure around the loop. So context management, so the agent doesn't run out of room on long tasks, sessions and memory, so it can pick the work back up, and permissions, so it's only gonna do what it's truly allowed to do. Lifecycle hooks lets you insert your own logic at each step. And sub agents lets you fan work out and parallelize. Plus, we have error handling and observability, so you can see what it did and why. And this is the part that teams always think they'll knock out in a week, and they don't. The takeaway is the last line on this slide. You ship the agent, not the plumbing. Most teams build a version of this harness themselves before they find the SDK. So they write the loop and the tool. They tool up the wiring, and they do contact handling, and then they suddenly hit permissions and observability. And then suddenly, they're maintaining a whole platform instead of building their product. And that is work you can now skip. Once you're building with Anthropic Claude on Microsoft Foundry, the next question is, how do I know that it's working, that verify step? That's where evaluations come in, and they fall into three buckets. Quality is about the surface about the answers themselves. Are they grounded? Are they coherent and relevant? Is retrieval actually surfacing the right content? And then we have risk and safety. That covers the things that you need to catch before your users do, so things like jailbreak attempts or harmful content, protected material, and then agents. So this is newer piece, but this is honestly where evaluation matters probably most. It's not just was the answer good, it's did the agent understand the intent, did it call the right tools, did it stick to the task, and did it finish it completely? So why I think this is so important is it's much more complex than just evaluating a simple answer. There's a lot of things you don't see that you now need to be able to evaluate. And if none of those fit your use case exactly, you also can build custom evaluators on top of this. But the point is you don't have to just eyeball the quality. You actually can measure it, and you can keep measuring it as you move into production. And here's what that looks like in practice. This is all built into Microsoft Foundry. What you're seeing is a batch evaluation run. Every row is a real interaction with your agent. It's scored automatically against those agent metrics. So did it resolve the user's intent? Did it call the right tools with the right arguments? Did it stay on task? And was the response complete? And you get a password fail on each with the reasoning behind it. So when something fails, you can see exactly why, not just know that it did. So you can run the same setup for risk and safety, performance and quality, or or your own custom metrics. And if you're building with Microsoft Foundry agent service, your agent threads convert straight into evaluation runs, so there's no extra plumbing. So the workflow becomes build your agent, run it against a test set, see exactly where it falls short, fix it, and rerun it, all inside of Foundry. These quotes we're quite proud of. They show the range of what teams are already building on Anthropic via Azure. So two quick proof points. On the infrastructure side, we have NVIDIA. Claude is now available in Microsoft Foundry running, the latest g d 300 GPUs. So this means organizations can get that performance scale and security that they need to run the AI agents in production that are on the Azure infrastructure that they already use. And on the customer side, we have EverStar. They work in nuclear energy, which is one of the most heavily regulated industries that there is. They're using Claude on Azure, and they compressed a safety analysis that would have taken two hundred human days into a single day. And what stands out there is that they chose the combination for the security as much as the capability. And so this is running in production today in industries where the bar for trust is at its highest. And here is how you can get started with a custom page specifically for using those Claude models on Azure. Thank you everyone for joining us today. We really look forward to seeing you using Claude on Azure and at future webinars.