[00:00:06] Hey, welcome. This is beyond [00:00:08] localhost.net agents in Foundry. [00:00:11] We will start with a small agent running [00:00:13] locally in my PC and then we will see [00:00:16] the path to make these agents go to [00:00:18] production. My name is Bruno. I'm part [00:00:20] of the developer team in GitHub. Uh hey, [00:00:22] this is going to be I think there are [00:00:24] four or five demos. Can't remember the [00:00:26] We have a lot of stuff to do. This is [00:00:28] going to be a fun one and it's also [00:00:30] literally the path that we that we are [00:00:32] feeling these days because we have [00:00:34] amazing frameworks like an example [00:00:36] Microsoft agent frameworks to build [00:00:37] agents. And we can build an agent, we [00:00:39] code our agents and we have it done and [00:00:42] then it's hey, now the agent is done, [00:00:44] how do I deploy these things? What do I [00:00:47] How do I put this in production? And [00:00:49] this is a very, very valid question that [00:00:51] we ask ourselves. [00:00:52] So [00:00:53] the idea is that hey, how we can see [00:00:56] this? How we can start and take a look [00:00:58] at this? And I decided to start with the [00:01:00] smallest agent possible and then show it [00:01:04] how is going to move from my local PC to [00:01:07] the cloud. And when I say the cloud, we [00:01:09] are going to talk about Foundry. Foundry [00:01:11] is the services that we have in Azure [00:01:13] who they are basically focused on AI and [00:01:15] we have the chance to host that agent [00:01:17] there. So let's start here. Let's start [00:01:19] with a chat model that is going to do [00:01:22] kind of our hello world. And this is the [00:01:24] minimum agent that you can write. As you [00:01:26] can see here, I'm using Microsoft agent [00:01:29] framework and Azure AI project. [00:01:32] I connect to a Foundry project where I [00:01:34] have deploy a model. I think I am using [00:01:36] a GPT-6 model here and then I create [00:01:39] this client, the AI project client with [00:01:41] a client where I am using an Azure CLI [00:01:44] credential and then I am using the [00:01:46] endpoint. I am going to create an agent. [00:01:48] This is a Microsoft agent framework, AI [00:01:51] agent. And when I have my agent, [00:01:53] I am going to ask a question. So this is [00:01:55] it. This is the easiest agent that we [00:01:57] can create. And if we want to run this, [00:01:59] let me go to I think it's 01 and let's [00:02:02] do a .NET run. This is going to answer [00:02:05] the question. Can't remember the [00:02:06] question that hey, hello, tell me a fun [00:02:10] story or something about .NET. After the [00:02:13] agent is running and I have everything [00:02:16] I already did my AC login to be [00:02:18] authenticated with Azure, I am going to [00:02:20] have a response here. First time is [00:02:22] going to take some time because it's [00:02:23] managing everything, but we have here [00:02:25] hey, .NET let languages like C Sharp, F [00:02:28] Sharp and Visual Basic [00:02:29] a lot of stuff. So this is the basic a [00:02:32] basic agent. And as I said, it's 10 [00:02:34] lines of code. [00:02:35] I see can have more comments that than [00:02:39] code here, but this is the moment okay, [00:02:41] now when I have my agent, how do I go [00:02:43] into move forward from here? How can I [00:02:45] host my agent? So how can I basically [00:02:49] put my agents to be able to answer [00:02:52] questions and act like a service? Right [00:02:55] now I have my questions embedded in my [00:02:57] code and we don't want that. We want to [00:02:59] literally provide our agent kind of an [00:03:02] endpoint where we can use it externally. [00:03:04] So this is kind of the next question. [00:03:06] Okay, I understand how to create agents. [00:03:08] I have my console application, but now [00:03:10] now I need to create kind of a local [00:03:14] host that is going to literally host my [00:03:17] agent. [00:03:18] So the way that we do this and if you [00:03:20] been if you done web applications in the [00:03:23] past in .NET, you will probably [00:03:26] be familiar with this code is we have [00:03:28] the same 20 lines, 10 lines to create [00:03:31] the agent and then we create an agent [00:03:34] host, which is a builder. And we create [00:03:36] the web application builder and then we [00:03:39] add a foundry response request a [00:03:41] response protocol here. We register the [00:03:43] protocol and that's it. When we run the [00:03:46] app our agent is going to be exposed [00:03:49] there. And this is fine and this is kind [00:03:51] of nice. If I go here [00:03:53] and I move to my O2, my demo O2, I will [00:03:57] have the chance. Let's clear this and [00:03:59] let's do .NET run. [00:04:01] I will have the chance to run my And [00:04:03] when I do this, I will literally have an [00:04:05] endpoint, which is going to be probably [00:04:07] I can remember. I think it's localhost [00:04:09] 8088. There it is, 8088. This is my [00:04:13] present endpoint. I'm working in the in [00:04:16] the localhost, and I have here the [00:04:18] localhost running, but I cannot use this [00:04:20] unless I create a new application that [00:04:23] requires some [00:04:25] that is going to call my application and [00:04:27] start to work. So this is the moment [00:04:29] that I can start to play around with [00:04:33] Azure with ACD, with hosted agents. [00:04:36] Because what we have here is the chance [00:04:39] to set to to run a different commands [00:04:41] using the ACD tools that are going to [00:04:43] allows me to basically run this agent [00:04:46] and also run [00:04:48] and [00:04:49] another layer on top of this that is [00:04:52] going to host my agents and provide a [00:04:54] chat interface here. So what I have here [00:04:57] open in another port [00:04:59] is a my agent is in localhost 8088, what [00:05:04] we just seen, and this is 8087, and we [00:05:07] have kind of a chat interface. If I [00:05:09] start to interact with my agents, I will [00:05:11] see the steps of my agent. And remember, [00:05:14] this is the same code that we have here, [00:05:17] and I can start to see here the the [00:05:20] overview, the tokens that I am using. I [00:05:22] have some events to track here, and I [00:05:25] have some tools if I am using tools. But [00:05:27] literally with couple of lines of code [00:05:30] where we wrap our agents and we host our [00:05:33] agents using in this case a set of tools [00:05:36] that we have with ACD, we have the [00:05:38] chance to start to play with our agents [00:05:40] and run this agent locally. [00:05:43] And of course, this is the moment that [00:05:45] we get to the next question, which is, [00:05:47] hey, I am here. How we can run? How we [00:05:51] can use this? And by the way, to show [00:05:52] you that this is the same agent, if I go [00:05:54] back to the interface that we have here [00:05:57] and we add another question and I say, [00:05:59] hey, tell me one sure [00:06:01] history about .NET, we're going to have [00:06:03] something similar. .NET is a platform [00:06:04] for building apps in language like C#, [00:06:07] F#. I think the previous answer was [00:06:10] uh around uh Visual Basic also. If I [00:06:13] move this and I see the logs [00:06:16] in the back in the back here and I ask [00:06:18] another question and I say hi again, we [00:06:21] can see how our service is running, the [00:06:23] agent is running, the hosted chat is [00:06:25] running, so everything is here. And by [00:06:27] the way, you can even run the agent [00:06:29] inspector inside of Visual Studio Code [00:06:31] where you are having a lot of access to [00:06:33] a lot of visual tools. [00:06:34] But you get the idea. [00:06:36] We start with a simple agent that was [00:06:38] answering questions in a console. [00:06:40] Then in this scenario, what we did is we [00:06:42] put kind of a wrapper on top of the [00:06:44] agent where we start to see how we can [00:06:48] uh run the agent [00:06:50] uh in the local host [00:06:52] in my laptop, in my PC, and then we can [00:06:54] start to use this. However, this is the [00:06:56] moment that we start to say, okay, [00:06:59] I have already wrapped my agent. How can [00:07:01] I use the agent in Foundry? [00:07:03] And this is the moment that we need to [00:07:04] stop a little and we need to talk a [00:07:06] little about Foundry, what are Foundry [00:07:08] and what are hosted agents. [00:07:11] So in Foundry, there are two ways of run [00:07:14] this type of agents. One way is we can [00:07:16] create prompt agents. And prompt agents, [00:07:19] let me show you prompt agents. It's [00:07:20] better if I show you. Prompt agents is [00:07:22] the standard Foundry agents that you can [00:07:24] create here when you go to create an [00:07:26] agent [00:07:27] and we are going to do [00:07:29] prompt 03 and I create an agent here. [00:07:33] This is a standard prompt agent. And the [00:07:35] parts that we have inside of an agent [00:07:37] are basically we need to define which [00:07:40] model we want the agent to use. I have a [00:07:42] couple of [00:07:44] uh GPT models here. I have Grok. I [00:07:47] I have Microsoft AI here, model router, [00:07:50] so I have a set of models that I already [00:07:52] deploy in this project that I can use [00:07:55] for a prompt agent. [00:07:56] Then the agent is going to give me the [00:07:57] chance to set up the system prompt, [00:08:00] which are the instructions, connect [00:08:02] tools. By default, this is having a tool [00:08:06] which is the web search, so I can ask [00:08:07] questions is going to do web search in [00:08:09] real time. I can define also connect my [00:08:12] agent to knowledge databases. I can [00:08:15] enable the memory of the agent out of [00:08:18] the box. [00:08:19] Foundry give me a lot of features and [00:08:21] the prompt agents give me access to all [00:08:23] of these. I have guardrails for [00:08:25] security. I have the chance to see when [00:08:28] I run my agent the traces, insights, [00:08:30] monitor, evaluations, optimize my agents [00:08:32] and more. [00:08:34] But there are two ways that I can run [00:08:36] agents in Foundry. As we can see here, [00:08:39] we have prompt agents [00:08:42] and we have hosted agents. [00:08:44] Hosted agents are [00:08:46] the same agents that we created before. [00:08:49] We can package that agent in a container [00:08:52] and then we can publish that agent to [00:08:54] Azure. And the cool part about this is [00:08:57] that we are going to have all of the [00:08:58] benefits [00:09:00] of that container running as a hosted [00:09:02] agent in Foundry literally there. And if [00:09:04] we take a look at the code, it's very [00:09:06] similar of what we've just done. Let's [00:09:08] close this [00:09:10] and let's go to the next sample. So this [00:09:13] is [00:09:14] the program where we create the project [00:09:17] client, we create the agent, have a set [00:09:20] of instructions. [00:09:21] I added a tool here because I want to [00:09:23] have also show you the traces and show [00:09:25] you a couple of [00:09:26] samples where you can run and use this. [00:09:29] But when we have the agent and we have [00:09:31] everything, [00:09:32] we run the same lines of code that we [00:09:34] did before. We create the builder, we [00:09:37] create we do the Foundry responses, we [00:09:40] register the protocol, and then we do [00:09:43] the APP run. With the main different [00:09:45] that we have a set of instructions here [00:09:47] like ACD AI agent provision and deploy [00:09:51] and more that is going to pack our [00:09:53] agents and deploy it to Azure. When we [00:09:56] do this, when we deploy to Foundry, what [00:09:58] we are going to find is that in our [00:10:00] configuration, and if you are familiar [00:10:02] with container apps, [00:10:04] you are going to be familiar with this [00:10:06] YAML. We have a YAML file that defines [00:10:08] how we can [00:10:11] how the agent is going to be hosted [00:10:12] there. So it's going to be a .NET 10 [00:10:14] application, .NET 11. Uh we are going to [00:10:17] do a .NET run for the project that we [00:10:19] have here. We are going to expose the [00:10:21] response protocol. We are going to [00:10:23] define here two variables, environment [00:10:26] variables to define the endpoint of the [00:10:28] project and the Azure deployment name. [00:10:31] As I said, I'm seeing I think I am using [00:10:34] a GPT-6 here, [snorts] but with all of [00:10:36] these ACD is going to pack our [00:10:40] our agent and it's going to publish a [00:10:42] hosted agent. And when we have our [00:10:44] hosted agents in [00:10:46] publish here, we can see here that we [00:10:48] have .NET comp hello agent running as [00:10:50] hosted agent. And we start to take [00:10:52] advantage of Foundry here. [00:10:56] Couple of things that I really really [00:10:57] like to have our agents coding in C [00:11:00] Sharp, running, testing, [00:11:02] debugging, doing everything locally and [00:11:04] then going to to Foundry. [00:11:07] We have versions here. So we can take a [00:11:09] look every time that we deploy an agent, [00:11:11] we are going to define we are going to [00:11:13] be able to say, okay, increment the [00:11:14] version. And we can define which version [00:11:16] is active, so we can do some AB testing [00:11:18] and more. [00:11:20] We can also have traces, details and [00:11:22] more. And this is our agent. I can going [00:11:25] back here. Let me copy one of the [00:11:27] questions that we have [00:11:29] [snorts] uh [00:11:30] because I have some tools [00:11:31] that ask a question here. And I will [00:11:33] say, hey, use [00:11:35] uh go get .NET something to tell me .NET [00:11:39] story or something. And this is going to [00:11:40] run. And again, this is my agent. [00:11:43] As we seen, [00:11:45] in the agent information, I don't have [00:11:47] the chance to change the model because [00:11:49] that part or the tools or the system [00:11:51] prompt because that part is managed by [00:11:54] my code. My code is the one that define [00:11:57] the instructions, the system [00:11:59] instructions that I want to use, the [00:12:01] tools that we are using. [00:12:03] My deployment name is the one defining [00:12:05] which are which is the model that I want [00:12:07] to run. So everything is there. However, [00:12:09] I can use I can still define some [00:12:12] security some security boundaries here, [00:12:15] assigning specific wire rails. I can [00:12:17] enable voice mode and more. So hey, this [00:12:19] is kind of cool. And I have here the use [00:12:22] get on net. I have a question and I can [00:12:24] start to take advantage of hosted agents [00:12:26] here because if I start to see the [00:12:27] traces, [00:12:29] I am using agent framework. Agent [00:12:31] framework do all of the magic that we [00:12:33] need to get here. And when we use [00:12:37] this approach using a hosted agent with [00:12:39] agent framework and deployed in in [00:12:41] Foundry, we can see here that this is [00:12:43] our compensation. I invoke the agent. I [00:12:45] ask a question. The question the [00:12:48] was processed by the agent. GPT C 6 Luna [00:12:51] is the model that I was using. Can't [00:12:53] remember which one. We execute the tool [00:12:55] and we [00:12:56] answer the question. [00:12:58] And that's amazing. This is our agent [00:12:59] here. I can start to see an example the [00:13:03] details of the agent where I'm going to [00:13:04] see the configuration of the agent, the [00:13:07] version that we are using. I can choose [00:13:09] another version and more. By the way, [00:13:12] this is all the visual parts, but you [00:13:13] can do everything here also using the [00:13:16] scriptings and there is a lot of way [00:13:18] that we can change here. Each agent is [00:13:21] going to use an entra agent identity or [00:13:24] is going to use my identity, the user [00:13:26] identity interacting. I have here the [00:13:28] endpoint to access to the to the agent. [00:13:31] I have the chance to expose my agent to [00:13:34] create an agent card to use the agent [00:13:37] using A to A, agent to agent, which is [00:13:39] an amazing [00:13:41] is the way that we connect agents all [00:13:43] together. I can deploy my agents to [00:13:45] teams. I can I have here a preview app [00:13:48] that I can that I can run. Like in [00:13:50] example, let's run here [00:13:53] a combine message. So this is kind of a [00:13:56] new chat. This is a web chat that we [00:13:58] have out of the box to run our [00:14:01] [clears throat] our agent and this [00:14:02] should be [00:14:03] invoking two tools. So it's going to [00:14:05] take some time and then we have add [00:14:07] numbers and count words and it's going [00:14:09] to return a couple of numbers here. And [00:14:11] if I go back here, I can see that I also [00:14:13] can define [00:14:14] so run this agent using the entry agent [00:14:18] ID [00:14:19] every morning or one times or connected [00:14:22] to a GitHub actions. There are a lot of [00:14:24] options that I can use that they are [00:14:27] part of the foundry platform and I am [00:14:30] going to use the logic in my agent. An [00:14:33] example here, the one that I just run [00:14:35] and create should be here in the traces [00:14:38] where I can see everything that's [00:14:39] happened by version, by status, by [00:14:42] durations and more. And if I go to the [00:14:44] conversational view, if we take a look [00:14:46] at this one, [00:14:47] this should be the one that we just call [00:14:50] I just call from the web app. But [00:14:51] remember, this is an agent and I am [00:14:53] talking to the agent. I'm calling the [00:14:54] agent and I should see here the traces [00:14:57] of everything. Let's pick up one of the [00:14:59] previous ones so it's it's easier to [00:15:01] get. So in this one, I should see here [00:15:04] that hey, [00:15:05] I ask a question and this question [00:15:08] internally called three different tools. [00:15:11] So I have full traceability. I have [00:15:14] everything here. [00:15:15] Because I am also in foundry, I have the [00:15:18] chance to even take a look and use some [00:15:21] application insights to take a look at [00:15:23] how my agency location are working, how [00:15:26] if I have some errors, if I have my tool [00:15:29] callings, what are the models that I'm [00:15:31] using more. Take a look here, I have [00:15:33] different agents. Each one of the agents [00:15:35] are using different models, so I have [00:15:37] some models using GPT-5 mini, Kimi, [00:15:41] GPT-5 6 all, a real-time agent speaking [00:15:44] with this one. So [00:15:46] I have when when we deploy our agents [00:15:49] here, we have a lot a lot of features [00:15:51] that foundry give us out of the box that [00:15:53] can help us to deploy to have a better [00:15:55] interaction with our agents. And [00:15:57] remember, our agent is [00:15:59] literally the code that we define here. [00:16:01] But [00:16:02] this is the moment that we starting to [00:16:05] have another kind of ideas. An example, [00:16:08] hey, so this is great, but [00:16:11] my agent right now is literally a chat [00:16:13] answering questions. That's great and we [00:16:15] use an LLM for that that. But there are [00:16:17] some times that you don' need an LLM [00:16:19] inside your agents. Or maybe you want to [00:16:21] use more than one LLM. Remember that we [00:16:23] are coding our agents. We are coding the [00:16:26] brain, everything that's happening [00:16:27] inside of our agents. [00:16:29] So maybe we want to use or not use an [00:16:32] LLM. [00:16:33] And one great example of this is the use [00:16:36] of Microsoft [00:16:38] to Microsoft decision models. Decision [00:16:40] models are very popular right now and [00:16:42] they are a great way to see if a [00:16:45] When we use a decision model, the nice [00:16:47] part about this, we can think about [00:16:49] this, is that the end, the the first [00:16:51] part of a decision model is like a Gen [00:16:53] AI model. So we are going to provide a [00:16:55] decision model, [00:16:57] a question, and then some criteria. And [00:16:59] we're going to say, hey, in example, you [00:17:01] are going to give me priorities here. [00:17:04] And you're going to say the priority is [00:17:06] high, medium, or low. [00:17:08] And this is the criteria that you are [00:17:10] going to apply to define that something [00:17:11] is high, this is for medium, and this is [00:17:13] for low. [00:17:14] So when we do this with a decision [00:17:16] model, the output is going to be always [00:17:18] or high or decision or low. And we're [00:17:20] also going to have a score. So high, 99% [00:17:23] score, and medium and low is 0.2. So we [00:17:27] know that, okay, [00:17:30] priority high is the one that wins here. [00:17:32] And we can use that in an agent. We can [00:17:34] use that. That's not an LLM. That's [00:17:36] something that we cannot choose as part [00:17:38] of Microsoft agent framework, but [00:17:39] [clears throat] we can create an AI [00:17:41] agent that expose this. So if we build [00:17:44] this, [00:17:45] we can build a support ticket. And by [00:17:47] the way, all of this code is available [00:17:48] to [00:17:49] to run later. We can build a support [00:17:51] ticket that use internally a decision [00:17:54] model, not a chat. And the only thing [00:17:56] that we need to do is we need to expose [00:17:58] this as an AI agent. So here, [00:18:02] let's take a look at this. And what we [00:18:03] are going to see [00:18:05] is that [00:18:06] let's close some of the samples. Again, [00:18:09] let's keep it simple. [00:18:11] Let's go to the decision agent [00:18:13] is that we have one agent here [00:18:16] that is going to use the decision model. [00:18:19] And we have an endpoint and the name. [00:18:21] The model that I am using right now is [00:18:24] Microsoft Decision One. This is one of [00:18:26] the models that we have in Boundary. [00:18:29] We can also use another set of models. I [00:18:31] think OpenAI models are already here and [00:18:33] we are going to probably see more and [00:18:35] more decision models that are becoming [00:18:36] very popular, but I like this one. It's [00:18:38] fast, it's cheap, and hey, we can use it [00:18:42] in a very fast way. Right now, [00:18:45] Microsoft extension for AI as today when [00:18:48] I am recording has not yet implemented [00:18:50] the Decisions protocol, but it's going [00:18:52] to be there soon and when you are [00:18:53] probably seeing this, the samples are [00:18:55] going to be using that. So I created my [00:18:57] own library in the meantime to support [00:18:59] decisions. [00:19:01] So what I have here is a decision [00:19:03] client, which is literally kind of a [00:19:05] iChat client, but this is a decision [00:19:07] client and I create an agent, supporting [00:19:09] routing agent that is going to use that [00:19:11] client and is going to answer a [00:19:13] question. [00:19:14] I was charged twice for my subscription. [00:19:16] How we can do this? If I go to my [00:19:18] routing agent and I go to see the [00:19:20] definition, what we are going to see [00:19:22] here are the choices. Remember that I [00:19:24] mentioned that a decision model needs [00:19:26] choices and in this case, what is going [00:19:28] to have when we provide a question or a [00:19:30] scenario, [00:19:31] this [00:19:33] routing ticket agent is going to say, [00:19:36] hey, this should go to billing team, the [00:19:37] technical support team, the account [00:19:40] access or manual review. And these are [00:19:41] the criteria that we have here to do [00:19:43] this. So when we have this, this is a [00:19:46] custom agent. [00:19:47] This is a support support routing agent [00:19:50] that is using AI is going to implement [00:19:53] the AI agent and what we have here is [00:19:56] that we implemented the room core async, [00:19:58] which is basically one of the methods [00:20:00] that we need to do to do the the run and [00:20:02] we also do the streaming. [00:20:04] Somewhere here is the [00:20:06] the room core streaming, so we also [00:20:08] support the streaming here. But this is [00:20:10] an agent using an agent model. When we [00:20:12] run this sample, [00:20:15] let's do [00:20:16] 04 [00:20:18] and let me clear this [00:20:20] and let's do a dotnet run. When we run [00:20:23] the sample, we are going to see the [00:20:24] question here, which is going to be, [00:20:26] hey, I was charged twice for my [00:20:28] subscription. So, we are going to cut [00:20:30] the output, and the output is going to [00:20:32] be billing. That's it. Makes sense. This [00:20:33] is the question that we have, and this [00:20:35] is what we are expected to to answer. [00:20:38] And hey, I can ask another questions [00:20:41] like an example, my account is broken or [00:20:43] something else, and I am going to have [00:20:45] the specific team that is going to work [00:20:47] with me. [00:20:48] But the cool part right now is that I [00:20:50] can pick up this agent, the same agent, [00:20:53] and as we seen before, [00:20:55] package us [00:20:57] using a builder, using registering the [00:21:00] responses protocol, and then doing an [00:21:03] APP [00:21:04] run for the pro for the program, and [00:21:06] then it's going to basically I was I am [00:21:09] going to be able to export this as [00:21:13] a hosted agent in Foundry. If we go back [00:21:16] to Foundry, let's go Foundry here, and [00:21:18] we go back to the agents that we have, [00:21:20] one of the agent that I have is the [00:21:23] support routine [00:21:25] support routine agent. And this is an [00:21:26] agent that if I can pick up one of the [00:21:28] questions that we have in the samples, [00:21:30] let me go back here and pick up one of [00:21:32] the question. [00:21:35] Let's do this one in example. [00:21:37] My subscription payments went through, [00:21:39] but I cannot find the invoice. Please [00:21:41] help me get a copy. So, this is going to [00:21:43] warm up the decision model first, and [00:21:46] it's going to say, hey, this is a [00:21:47] billing question. And as we seen before, [00:21:49] we also have we are 99% sure that this [00:21:52] is what we have, and we also have the [00:21:54] probabilities here for the other choices [00:21:57] that we have, account access, billing, [00:21:59] manual review, technical support super [00:22:01] low, and billing is the big one. [00:22:04] But again, I am running here not an LLM, [00:22:07] I am running a decision model using set [00:22:10] of libraries here, but I can take [00:22:12] advantage of Foundry and do something [00:22:14] like this. I can enable voice mode. [00:22:18] And when I enables voice mode, I am [00:22:20] going to also enable here the CC. I can [00:22:23] start to talk with this, [00:22:25] and can say something like in example [00:22:29] Hey, search stop returning results after [00:22:32] the latest updates, even for documents I [00:22:34] can open directly. Please help me solve [00:22:36] this. [00:22:39] >> Let me take a quick look. Team, [00:22:40] technical support, confidence zero. [00:22:43] >> And it's going to give me a big response [00:22:46] here about this, but we have the JSON [00:22:48] what we have, but hey, we have an agent [00:22:51] supporting the voice mode, doing voice [00:22:54] with me, with the decision agent, and I [00:22:57] have everything here. Of course, this is [00:22:59] not the best layer to interact with an [00:23:01] agent when you are speaking with an [00:23:03] agent because you don't want an agent to [00:23:06] to read a JSON response for you, but you [00:23:08] get the point how easy is this and how [00:23:10] we can take advantage of the voice mode. [00:23:12] If we go to the traces, [00:23:14] uh [00:23:15] yes, let's say my I make a [00:23:17] I make a change here. So yes, I enable [00:23:19] voice, so I'm going to save version [00:23:21] number six. And if I go to the traces [00:23:23] here and I start to see conversation [00:23:25] view, [00:23:26] I can filter by version and I see let's [00:23:29] take a look at one of the previous one. [00:23:31] Uh we can see here each one of the [00:23:33] steps. [00:23:35] And we see here that get a token, do a [00:23:37] task chain, do a task, do a task, get a [00:23:40] token again, and somewhere here [00:23:43] we are going to see the call to the This [00:23:45] is in bulk with the agent. This is all [00:23:47] of the responses, and somewhere here is [00:23:49] going to be the call This is it [00:23:51] to the endpoint to work with the [00:23:53] decision model, which is the provider is [00:23:55] Microsoft B one system one. This is the [00:23:58] internal call that allows us to know [00:24:00] that hey, this is the moment that it [00:24:01] calls to the decision model. But as you [00:24:03] can see here, this trace is a bigger [00:24:05] one, but as a developer, when you deploy [00:24:08] something in production and you take a [00:24:09] look at this, this is great to know what [00:24:12] you have and where you are. [00:24:14] And hey, we cover a lot of things today. [00:24:16] We cover how we can start with the local [00:24:19] host. We can We cover later how we can [00:24:22] get uh the same agent [00:24:25] uh [00:24:26] using decision agent, but in the in [00:24:29] [clears throat] in Foundry, we have [00:24:31] everything here. However, [00:24:33] how about if you want to go further? How [00:24:35] about if you want to use a different [00:24:37] model, not a standard model, like in [00:24:38] example one of the model that I have [00:24:40] deployed here is Kimi. [00:24:43] Kimi K 3.1. This is a great great model. [00:24:46] This is a big model. We have it in [00:24:48] Foundry. This is kind of a latest news [00:24:50] that we have right now and this is the [00:24:52] model that we can start to use and at [00:24:54] the model level, we have details, we [00:24:56] have the monitor, we can see here that I [00:24:58] used it a couple of times in the last [00:25:00] couple of days. We can evaluate the [00:25:02] model and I also created here it's [00:25:05] literally the same the same agent [00:25:09] with a couple of tools [00:25:11] but running with Kimi. [00:25:13] If I run this agent, we can go back here [00:25:16] and let me go to [00:25:18] Kimi tools [00:25:20] uh let me go here and copy one of the [00:25:23] one of the questions that we have [00:25:26] for the for the agent. So let me do some [00:25:33] uh I don't know. Let's run this one. Use [00:25:35] current words to count the words. I [00:25:36] can't remember which tools I added in [00:25:38] Kimi, but this is going to run the agent [00:25:41] and everything and the cool part is that [00:25:43] hey, this is a different [00:25:45] agent. This is not a Microsoft model. [00:25:47] This is not an OpenAI model. This is the [00:25:51] [clears throat] [00:25:51] this is the Kimi model. And if I go to [00:25:53] see the traces here [00:25:55] and I took I like to do this in [00:25:57] conversation view because give me the [00:25:59] the package conversation option for [00:26:00] this. We can take a look. Let's take a [00:26:02] look at this one, to the previous one [00:26:04] and we can see here how in the tool call [00:26:08] start the conversation, we have the [00:26:10] invoked to the agent, then we have the [00:26:12] invoked to the Kimi tools, we have the [00:26:14] chat with the model, run a tool, chat, [00:26:17] run a tool and chat and there we are. We [00:26:20] are using an agent with another model [00:26:22] which is also part of our Foundry and [00:26:24] it's all connected here. By the way, as [00:26:26] you seen here, I never set up an API [00:26:28] key. I always use manage identity. Try [00:26:31] to use manage identity everywhere. Do [00:26:33] not [00:26:34] use keys in your code if you can. Found [00:26:36] the give you a lot of advantages to do [00:26:38] this. [00:26:39] So, hey, final demo started local. [00:26:43] We move from local to do a hello world [00:26:47] and then we move to the hello world to [00:26:50] host our hello world and then we publish [00:26:53] to Foundry. Take a look at Foundry and [00:26:55] more and a couple of things that you can [00:26:57] work here and you can remember here. [00:27:00] [snorts] I like hosted agents because [00:27:02] it's literally the same agent but [00:27:05] deploying a new home. In this case, it's [00:27:06] Foundry. But it's only going to change [00:27:08] where it runs, not the code. And you can [00:27:10] test it locally with just seeing if you [00:27:11] do ACD AI agent run, how you can get it [00:27:15] there. [00:27:16] And hosting is a protocol and you need [00:27:18] to think about an identity. You need to [00:27:20] think about a couple of other things but [00:27:23] everything is there. And another [00:27:24] important part is that even if we always [00:27:26] use an LLM or we [00:27:28] most of the time we use an LLM, [00:27:30] an agent can do a lot of things. You can [00:27:32] run different LLMs, you can connect your [00:27:34] own system, you can run tools, you can [00:27:36] do a lot of stuff. Remember, this is the [00:27:38] code that we are written. This is the [00:27:40] code that we manage and we create to do [00:27:42] this. And I really like that because [00:27:44] Foundry is going to isolate that, create [00:27:46] an agent, and we can use their take [00:27:47] advantage of a lot of things. [00:27:50] So, if you want to learn more, [00:27:52] there are a lot of we we have a couple [00:27:54] of blog posts about this. There are a [00:27:56] lot of documentation in Microsoft Learn. [00:27:58] And [00:27:59] hey, the sample, as I said, is right now [00:28:02] using an old library. Decisions are [00:28:03] coming soon. [00:28:05] Decisions are coming soon to Foundry to [00:28:08] Foundry to Microsoft Attention for AI [00:28:10] and more. And that's basically it. I [00:28:13] really appreciate your time. Thanks for [00:28:15] being with me here and I hope you also [00:28:17] enjoyed this amazing conference. See you [00:28:19] all next one. [00:28:20] Goodbye.