Rubber Duck Thursdays: Building an AI agent app

Rubber Duck Thursdays: Building an AI agent app

GitHub

5:10 Hi.

5:12 Hey everyone.

5:13 Hello.

5:14 Hello.

5:16 How's everyone doing this morning?

5:18 Are we doing good?

5:19 I am going to I was asking where everyone is watching from.

5:25 We did this last time and I really liked it.

5:27 Just knowing where where people are watching from would be great.

5:31 My name is Marlene and uh if you're here last week, we chatted a little bit.

5:39 Uh I think I see again some people from India.

5:43 Hi uh Manudon from India.

5:45 It's nice to see you.

5:48 Uh, who else do we have on the screen?

5:51 We have Edwin, who's uh from Nigeria, which is great.

5:55 I've been to Nigeria as well a little bit a long time ago,

5:59 but I I was in Nigeria, so it's good to see you, Edwin.

6:05 Hi.

6:05 Uh, let me know in the chat where you are from right now.

6:10 I'm actually usually I am in London but today

6:15 I am actually in Germany in Cologne for a conference.

6:22 There is a conference called the Azure uh cloud

6:27 summit and so I'm in Cologne Germany for that.

6:32 Uh, so this is where I'm actually calling you

6:34 from and this is why my background if you

6:36 remember from last time it was a different background

6:39 but now it's because I'm in Cologne in Germany.

6:43 So, oh I do see some people.

6:45 Hi.

6:45 Ah, I do see Stefan is also in Germany.

6:48 Hi Stefan.

6:49 Good to see you.

6:51 Which part of Germany are you are you in right now?

6:53 I'm in Cologne today.

6:55 Uh, so actually very sunny day in Cologne which I like.

7:00 Hi from Bangladesh.

7:02 Nice to see you from Bangladesh.

7:05 Great to see you on the stream.

7:07 Victor is calling in from Spain.

7:10 Nice to see you.

7:11 How's the weather in Spain?

7:14 This is the thing is that I love warm weather and I

7:17 I sometimes in London I I don't love the weather there.

7:20 Barus is cold.

7:22 Good to see you Roman from Barus.

7:25 And we have from Malaysia, Chai Idi, it's good to see you from Malaysia.

7:32 I've never been to Malaysia, so it's it's very cool to see you there.

7:36 Uh, we do have someone from Brazil, which is very cool as well.

7:41 Um, but yeah, like I mentioned, today we have Yeah, [laughter] thank you.

7:48 I am in uh in Germany today, but I still wanted us to do some co-working today.

7:55 I do see someone from Bangladesh.

7:57 Nice to see you.

7:59 Um I do wanted us to do some some co-working and kind of look

8:04 at some of the things that I'm actually

8:06 going to be talking about at this conference.

8:08 So, I mentioned that I am at Let me show you

8:11 the conference I'm at just so that uh let me find it online.

8:17 European Cloud Summit is everyone does

8:22 does every has everyone tried Azure before?

8:25 This is like Microsoft's other product outside of GitHub as well.

8:30 It's like Azure cloud was pretty popular and this is

8:35 let me open I'm in simple browser and if you

8:39 do this you can open a new tab and you

8:41 can look at websites in simple browser which I really like.

8:47 So, this is the this is the uh event

8:51 that I'm at and it's the European AI Cloud Summit.

8:56 We're in Cologne.

8:59 And if we go, these are all my co-workers

9:02 that are going to be speaking at this event.

9:04 We also have Build coming up.

9:06 By the way, if you haven't registered for Build, let's actually do that.

9:09 Let's open a new tab and let's look for Micros

9:11 I think I have to paste a URL in here

9:14 actually but Microsoft build is very cool and that's

9:17 coming up and that should be very interesting but uh

9:21 for this conference I'm going to be speaking about

9:24 building agents with lang chain and I've been using co-pilot

9:29 GitHub copilot to help me with my talk and also

9:32 to build the app that I'm going to be using.

9:36 So I think one of the things that I did want to chat about is how many of you

9:42 are actually building AI applications like are you using

9:47 um are you actually deploying anything with your apps?

9:51 I don't know if maybe let me zoom in a little bit to the application that I

9:56 am going to be showing or we can actually just look at it here as well.

10:02 Um, let's see if we can Sometimes I don't know how

10:07 to how to increase the size of my screen when I'm sharing

10:14 uh so that it feel fits correctly here when you're sharing

10:18 on but anyway um maybe if I do that it'll do it.

10:23 Yes, I think so.

10:25 Um but this is the application that I

10:29 have been building and basically something we talked about

10:34 last week was about AI agents and how

10:38 most AI agents kind of operate the same way.

10:41 They have this sort of agentic loop and then when you are using that agentic

10:47 loop you can um so the aentic loop let me actually go to it.

10:54 I think I have it in these slides as well.

10:57 Oh, um, if we go back here.

11:02 Oh, here we have it.

11:04 Yeah, we have we saw this last week already,

11:08 but I talked about how with the Gentic loop,

11:11 most of the AI agents, so if you're using GitHub Copilot,

11:15 for example, GitHub Copilot is a coding agent.

11:18 So it is going to operate like any other coding agent would.

11:24 And we talked about this last week that you

11:27 can use or optimize your agents so they perform well.

11:31 So you will as a user you'll send in a query to copilot and then copilot is

11:37 going to the first thing in the agentic

11:39 loop is it's going to try and gather context.

11:41 So you want to make sure that it has all the context it needs.

11:44 Um, and then it's going to take action

11:46 with tools and then you're going to validate

11:49 that whatever it did or help the agent

11:51 validate for itself that whatever it did was correct.

11:55 And um, kind of part of what I want to show on this stream

11:59 is this validation step today and probably focus a bit more on that.

12:03 But one thing that I think is is super cool

12:08 as well is the fact that you can build your own agents.

12:12 So you don't just have to use like a pre-built uh agent like Copilot.

12:17 And actually GitHub Copilot if you go under the hood

12:20 and it it it works just like a normal agent.

12:24 And um so what I think is super interesting

12:28 is that as a developer you can actually create

12:32 your own agent using this agentic loop and you

12:35 have different frameworks available for you to do that.

12:38 One of the frameworks that we talked about last time was Copilot SDK,

12:42 which I think is really interesting.

12:44 But I'm also one of the maintainers for Langchain Azure,

12:49 which is a um it is one of the popular

12:55 Let me actually go I'll show you my slides.

12:57 I'll just go back to show you my slide so we can we can talk about it.

13:03 I am Yeah, I'm one of the maintainers for Lang Azure.

13:07 And so this is like an integration and if you don't know what

13:10 langchain is lang chain is a code it's a framework that's similar to copilot

13:17 SDK and you can use it either in Python or in JavaScript

13:22 and it tries to make it easy for developers to build AI powered applications.

13:28 So I'm one of the maintainers for the Python

13:31 version of this for our Azure integrations.

13:33 So if you want to build out an application with lang chain,

13:37 you'd go ahead and you'd use something called create agent

13:41 and that would help you sort of build out this application.

13:43 I actually have a file here,

13:46 an agent file and it should be we can see this agent.py

13:51 py file and you can see in the code um and I'm

13:55 just I'm using before someone is going to be like oh my gosh

13:59 you maybe you're going to show the keys or something but I'm

14:02 using something called enter ID and actually let me go back

14:06 to the chat let me go back to the chat and also ask

14:09 how many of you have um how many of you are building

14:15 your own agents and if you are building your own agents Um,

14:21 have you struggled with making sure that your agent

14:26 or your LLM doesn't look at your environment variables?

14:30 So, I actually saw a tweet about this the other day.

14:32 H, and I'm going to just stop and share some comments.

14:36 I see Edwin saying, "Yeah, I use Azure cloud a lot.

14:40 Azure is really good if you are someone that is interested in that." Um, I see.

14:48 Okay.

14:48 Okay, I see Nathan saying got multiple

14:51 agents running in production for multiple different companies.

14:54 Voice agents, multi- aents, of course, chatbot and a and other agents.

14:59 How many of us are actually that's amazing and I think

15:02 this is something that I feel you know a lot of people

15:07 are feel that maybe are a little bit nervous about where

15:12 the industry is going and there's lots of different like takes.

15:17 I don't know if you've seen like some of these takes online where

15:21 people are say have been saying that it's over for developers and you

15:26 know things are not going to work out for us and they're going

15:28 to you know AI is going to replace developers and I actually don't think

15:33 that is really going to be true in the in at least for now

15:38 from what we're seeing I don't think that's necessarily going to be true

15:43 and I think one of the reasons for this is Because now that we

15:49 h we know that AI is a thing and in lots of different industries,

15:54 they're wanting us to build AI assistants for them.

15:58 Whether that is going to be an AI assistant like Nathan is saying here,

16:04 which is like a voice agent for a different company.

16:06 So maybe I'm working for what's a good I don't know what's a good company.

16:11 That's an example.

16:12 Um maybe I'm working for Microsoft for example

16:16 and at Microsoft I am going for a conference and I

16:19 want to build a conference agent and the conference

16:23 agent I want to build I want to have like someone use voice for that to interact

16:27 with the agent and have the agent actually like do

16:31 stuff based off of my voice or maybe tell

16:35 me about different sessions based of my my voice.

16:38 And one of the cool things is that we then can have these AI agent.

16:46 We can build these agents for different companies

16:48 by understanding how these agentic loops work and then using

16:52 things like copilot SDK or using things like lang

16:57 chain to be able to build AI into our applications.

17:01 And so today, that's kind of what I want

17:03 to focus on is I want to talk about what

17:05 does it actually mean to build AI agents

17:08 into an application like Nathan is saying for a different company.

17:13 Maybe uh I do see someone is saying um

17:19 okay someone is saying I am developing CAD agents.

17:23 What is that?

17:24 What are CAD agents?

17:25 Let me Google that.

17:27 What?

17:28 Bing search.

17:28 Sorry.

17:29 Bing search.

17:30 What is a CA agent?

17:35 [snorts] A CAD agent is What does that mean?

17:39 H multimodal CAD agent.

17:43 It's it's saying that this Okay, let me put it in.

17:47 Let me put the description here so we can read a little bit

17:54 uh a bit more about what CAD means or I don't Hang on.

18:01 I don't want to.

18:03 Okay.

18:04 Okay.

18:04 Let's let's just go to this one and I'm going to post the thing in the tab.

18:11 Let's make a new tab for this.

18:14 And let's see if we can or we'll replace this one.

18:20 So, someone said they're building CAD agents.

18:23 It says production ready CAD designs.

18:26 An AI agent that builds production ready CAD designs directly into your browser.

18:31 I still don't know what CAD means.

18:34 What does that mean?

18:35 AI build CAD.

18:39 I guess it's like Blender stuff.

18:41 Please in the chat uh let us know what what does CAD mean uh as in design.

18:50 Ah okay.

18:50 Okay.

18:51 Yes.

18:51 Thank you.

18:52 Computer aided design.

18:54 That's cool.

18:56 I think that's pretty cool.

18:57 Computer aided design.

18:59 Someone is saying 3D graphics modeling.

19:03 That's very cool.

19:04 Wow.

19:06 So you would be building like a an agent

19:09 that can actually 3D model stuff for you.

19:12 I think that's super cool.

19:14 And okay, someone is uh Adion is saying it's an architectural language.

19:23 Computer agent design again is what we are getting from here with 3D modeling.

19:28 I didn't know that this was a thing and it's

19:31 actually a very cool use case for building agents.

19:34 So I think that is amazing.

19:37 Uh I do see Wayne said he just

19:39 soft launched a website monitor app open beta testing.

19:44 That's very cool.

19:46 Um yeah I think let's see uh okay I do see Alex is saying what do

19:57 you mean by building AI agents like LM

20:00 chat or autonomous code generation or testing review?

20:04 I definitely have a look at lang first time you hear about it.

20:08 Okay.

20:09 So I mean about like similar to what we saw before where we heard from Nathan

20:17 who Nathan said that he is building

20:20 multiple agents running in production for different companies.

20:24 So I'm going to show you an example in my VS code.

20:28 This is an application that I have been building

20:31 and that I'm actually going to present on today.

20:34 So this is a sales agent, right?

20:37 So the goal of this agent is that we want to automate some processes.

20:44 So say for example, I want to start a business.

20:47 And in this specific example that I'm going to be talking about,

20:51 I'm showing a website where I've built this AI

20:54 agent which is going to help me with sales.

20:58 So I don't like selling talking to people and selling stuff.

21:03 I like streams talking about code, but I don't love selling stuff.

21:08 And so I would build a sales agent that can talk

21:12 to customers or potential customers that have questions about my app.

21:16 So here it says, "Welcome to Zava,

21:18 your DIY sales supplies partner for Washington State pros and home owners.

21:24 I am Zava sales concierge.

21:26 I can help you compare pricing plans,

21:29 see customer stories like yours, answer questions, or book a call.

21:34 So, let's let's take a look at something.

21:37 Let's take a look at an example.

21:38 So, here I've put in some example um prompt.

21:43 So, I would put a customer could come to my site and again

21:47 this is a website an agent that's helping for a DIY supplies store called Zava.

21:54 So this person is saying,"Hey, I run a 25 property management company.

21:59 Do you work with teams like mine?" And so I've built this agent

22:03 that can take that query and it's using under the hood, it's using lang.

22:07 So the first thing it's going to do, it's going to try to understand,

22:10 it's going to do a tool call to understand the user's intent.

22:14 So what does the user actually want?

22:16 And then it's going to search.

22:18 It's noticed that okay the user wants some examples and see to see if

22:23 that if we work with companies that are similar to them and then the agent is

22:28 going to look through I've created an MCP

22:32 server with a postgris database so the agent

22:35 can access that database to look at different

22:37 data like case studies of other clients.

22:40 So here we answer and this is a debugging window.

22:44 So we can look at what the agent is doing under the hood with each call.

22:48 So the person has sent this question and then the response is absolutely

22:52 let me pull up a couple of examples that look closest to your setup.

22:57 Yes, we do.

22:58 The closest match is this company.

23:00 And then it also links to the case study if the person wants to read more.

23:06 So then the person can actually go ahead and book a call.

23:10 So I could do something like I could say great uh

23:14 connect me to an account executive to book a meeting and I

23:25 haven't yet like we have something at Microsoft called work IQ

23:29 where you can actually automate this in teams in in Outlook.

23:33 So, Work IQ like allows you to also provide your agents with tools that can

23:38 connect directly to your calendar or to uh whatever it is within the M365 suite.

23:47 And so, here our agent is going to respond.

23:51 It's going to see the intent.

23:52 It's going to say, "What email should I have the a the uh the executive use?

23:58 What time zone etc to schedule the meeting?" And then I would want the agent

24:02 to then use this tool to then set up a meeting between me and the sales exec.

24:09 So, so this is what we are.

24:14 This is kind of how an agent would work.

24:18 And uh let me see what what people are saying in the chat.

24:25 Okay, I do see Roman saying,"I just now built an AI recruiter." Again,

24:31 all of these things,

24:33 the idea is to take the AI that we would use with like GitHub Copilot,

24:38 for example, and actually put it in an app that automates

24:42 away some of the work that you don't want to do.

24:44 So, if you're a recruiter and you want an assistant,

24:48 so similar to how we have our coding assistants,

24:51 then you would build an AI agent for that as well.

24:55 Um, let's see what other people are saying.

25:00 Okay, lots of people talking about um, lots of people.

25:06 Okay.

25:06 Okay, great.

25:07 Someone shared a link for CAD.

25:10 Thank you, Todd, for the link.

25:12 Uh, Pontis said yes, she's on track.

25:16 I did understand.

25:17 I wasn't understanding what CAD was before, but I now understand that.

25:22 And Angel also gave us an example of what CAD is.

25:26 So let me go back as well to that CAD

25:30 example that we saw on the screen which is super cool.

25:33 So here like this example by the way I did not know about CAD

25:38 before this but we are seeing from thank you for educating me on this topic.

25:45 Angelo is saying CAD agents are AIdriven autonomous

25:49 software designed to interact directly with CAD environments.

25:53 So these are for designing.

25:56 So it's computer AED design.

25:58 And so this would be if you wanted

26:00 to build out an application for a designer for example.

26:05 And here we can see that it says in this specific app,

26:10 shout out to the B build CAD AI people who I have only heard about today.

26:16 And it says describe it.

26:18 The AI agent builds it.

26:20 So then it has this environment where you can design different things in 3D.

26:26 Okay.

26:26 So this is very cool and uh I do want to talk about GitHub copilot.

26:34 have copiloted SDK and let's see if we can use

26:42 this as an example of how we can use the SDK.

26:48 And if I go here, I'm going to uh uh one second.

26:56 Give me a sec.

27:03 So now if we go here and if we take a look for example we

27:14 talked about the CAD agent and this is an example of another thing you can use.

27:24 So I talked about how in the code right now I'm using lang chain to build out

27:30 this agent and add it to an application

27:33 and there's different ways that you can do this.

27:36 Lang chain is one of these ways and another

27:39 way would be to use the GitHub copilot SDK.

27:43 So regardless of the language you're using um you can

27:47 use the copilot SDK to be able to do this.

27:50 And so you'll build out your your the your app

27:55 and then you'll plug in with different agents.

27:58 Maybe I'll ask how many of us what computer

28:01 what um uh languages are we using uh to code?

28:08 Are we using Python?

28:10 Are we using Go.NET Java.

28:13 Let's see.

28:14 Oh, okay.

28:14 Alex is asking why it takes so long.

28:17 I need to probably speed it up myself and I'm

28:21 using Copilot and VS Code to help me speed it up.

28:24 But at the same time as well, it does go and search for things.

28:29 So it's going to the first thing it's going to do

28:31 is it's going to figure out what the user needs

28:34 and in this case it's taking some time or it was

28:37 taking some time because it is actually quering a Postgress database.

28:42 You don't really have to use Postgress and that would make it faster

28:46 but just for the example that I'm using I'm using Postgress in this case.

28:52 Uh okay.

28:55 [laughter] Uh I'm seeing someone saying I I don't like Zava.

28:59 I like Zro Kent.

29:01 I think Zava is uh I think Zava is

29:05 supposed to be like a a brand for something else,

29:08 but Microsoft was using the Zava brand for a while

29:12 and I don't know [laughter] people some people don't like it.

29:16 Yes, I mentioned Copilot.

29:18 What languages are people um using?

29:23 Yes, Roman is using Python.

29:26 Okay, Alex is using Rust, JavaScript, and Python.

29:30 I think that's I'm personally a Python person.

29:34 And so that is like one of the things we could use.

29:38 So if we go back to our our uh if we go back

29:44 for example here to GitHub and we look at the cookbook for Python,

29:52 it has lots of different options for things to do.

29:57 So actually I want us to see just the if we go to Python and we click here

30:05 it will have like exactly the steps to get

30:08 started with Copilot CLI and Python and GitHub copilot.

30:13 So this is the code that you need to use.

30:16 This is the code to get started to actually create um

30:20 a version of the SDK in your code with GitHub Copilot.

30:24 So, you know how here we can we can just say hello to GitHub

30:30 copilot and then it's going to start a session or at the beginning

30:35 of a session it'll start the session and then it's right now it's telling me

30:39 information about stuff that I've just done

30:41 because it's it's already part of the session.

30:44 But if I wanted to create a GitHub copilot session

30:48 like I already have in VS Code in my code,

30:52 this is the code that I would use to do that in Python.

30:55 So I would go ahead and the first thing I would do is

30:58 I'm going to I was going to I go ahead and install the SDK.

31:02 Um I actually think they should explicitly say what the SDK

31:06 is but um the SDK is co GitHub copilot SDK

31:11 on Pippi or with UV and you can also just

31:15 come to this repository and install it directly here as well.

31:19 Um but once you do you can import the copilot client

31:25 and that copilot client is going to allow you to connect to different models.

31:30 So here for example if we want to connect

31:34 to G uh to GPT5 we would say create session.

31:39 So just as how we would create a new session in VS code for example.

31:44 So here I can you know maybe create a new chat or a new copilot CLI session.

31:52 This is how we do that in the code as well.

31:55 And then after that this is using async.

31:58 So, uh, it's allowing Python to be a bit more efficient that way.

32:04 But then we would send to that session our question.

32:08 And so, we would ask, for example, what is 2 plus2?

32:11 And then it would go from there.

32:13 And this is a really nice way to actually build stuff into your application.

32:17 Like I mentioned, I'm specifically using this is Copilot SDK to do this.

32:24 Um, and there's lots of different examples here.

32:27 I think there they have a manual resource management example that we could use.

32:33 Um and that is one example in different tools.

32:38 And then we also would have if we go back to my agent example,

32:46 this would be how we would use it or initiate uh the models with lang chain.

32:51 Let me go back and see if anyone has some questions.

32:55 Okay, I see people are using different uh things.

33:00 Okay, let me go back.

33:02 Let me leave it on to the C-pilot SDK uh page

33:07 so we can look at the very pretty banner while we chat.

33:14 Uh someone says they're using TypeScript.

33:16 It's fine to use TypeScript, by the way.

33:18 I think Typescript is okay.

33:21 I don't use TypeScript personally, but lots of people do.

33:26 [gasps] So, I'm not going to hate on you for using pi TypeScript.

33:29 Please go ahead and use that.

33:31 Um, someone is asking, is there a best practice or testing?

33:38 What languages are better to use for?

33:41 I don't think I think right now the ecosystem for AI agents is growing.

33:47 So for example I showed with copilot SDK you have lots of language options.

33:54 So you can use Python, you can use Go.NET, Java.

33:58 The only thing I would say to keep in mind is that it's

34:03 it's actually going to be depending on the language that you're using,

34:09 you're going to maybe have access to more or fewer tools.

34:13 So you might have some issues if you're using one ecosystem.

34:18 Maybe there are not as many AI agent libraries in Java as compared to Python.

34:23 I'm not sure because I'm not a Java coder.

34:26 But for now, I would say, you know,

34:28 TypeScript and Python are really well supported in the AI agent space.

34:34 So those are the two I tend to recommend.

34:37 But I also think net is also good.

34:41 Um, okay.

34:44 Pontis is saying, "You really never heard about it

34:47 or just don't know what it is." In my opinion,

34:50 there's a difference between I'm not sure what,

34:54 but someone was saying they hadn't heard

34:56 about Langchain or about GitHub Copilot SDK.

34:59 So, um, oh no, someone said I'm early.

35:07 It's 10:00 a.m.

35:09 Oh no.

35:11 I didn't realize that I started this stream a little bit early.

35:16 No, this is not.

35:17 By the way, thank you, sirly Dev.

35:20 Hello from the UK.

35:21 I'm good.

35:22 I'm good.

35:24 And I am in Germany.

35:28 I'm in Germany.

35:29 And this is why I didn't realize that I started this stream a bit early.

35:35 I thought that Germany was an hour ahead of so you

35:41 know our usual stream our usual stream time is 11:00 a.m.

35:48 And so I already thought the stream I thought

35:52 the stream was I thought that it was like 11:00 a.m.

35:55 right now in the UK.

35:57 Let's say what time is it in the UK now?

36:05 Oh.

36:05 Uh, yeah.

36:06 I think I might be a little bit early.

36:08 I think I might be a bit early.

36:10 Um, I'm usually in the UK time, but it's okay.

36:14 I'm a bit early because I'm in Cologne, Germany today for a conference,

36:19 which is why um which is why I am streaming.

36:25 Uh, someone's saying,

36:27 are we getting a video of this live session so that we can re-watch and learn?

36:31 Yes, all of the live sessions will stay on the GitHub YouTube channels,

36:36 will stay on the LinkedIn if you're watching from LinkedIn.

36:41 So, don't you can always watch this back to take a look at what I said.

36:45 No worries, Alex.

36:47 I'm happy to answer the question.

36:49 Oh, someone said, "Very nice.

36:51 I use Entra a lot, too." And Okay.

36:55 Okay.

36:55 Yes.

36:56 Sly Dev is telling me that Germany is one hour ahead of the UK.

37:00 The problem is, do you know my issue is that I think I didn't change I didn't

37:07 I didn't change my settings and so I feel like I'm still in the UK, but I'm not.

37:12 I'm in Germany.

37:14 It's 11:30 in the UK.

37:16 Thank you for letting me know I have uh

37:19 at the wrong time a little bit recently, so it's okay.

37:23 Some other people are joining us from different places.

37:27 Uh, we see here someone's joining us from NYC.

37:31 It's 6:30 in New York.

37:34 Raise the roof from New York.

37:36 I like New York, by the way.

37:38 I have a bunch of co-workers that are based in New York.

37:41 And I love it.

37:42 I think it's such a fun city.

37:45 Like one of the best cities in the world for sure.

37:49 I also see someone is saying it is 3:00 am or are

37:55 you okay to be awake at 3:00 am in the morning in California

38:00 if they're California people watching the stream it's too early please go

38:06 to sleep [laughter] okay David is letting us know it's 1:30 p.m.

38:12 in Kenya.

38:13 Let me know if you're watching u from Kenya.

38:19 Okay.

38:20 Okay.

38:20 Wait.

38:20 Uh Deb is saying this is why you have to use

38:24 the time zone feature when putting calendar events in your phone in C.

38:28 Yeah, truly.

38:30 I really should have checked.

38:31 The problem is I'm like, no, this is not Yeah,

38:35 I'm not great with time zone changes.

38:38 And this is a problem.

38:39 Even when you're building apps as developers, it's it's it can be really tough.

38:44 And we also have a lot of other people greeting us.

38:46 We have someone from Azar Bjan.

38:48 Azaraijan.

38:49 I'm not sure if I'm saying that correctly.

38:53 Todd is letting us know it's 4:00 a.m.

38:55 in the States.

38:56 And programmers don't sleep.

39:01 Okay.

39:02 If you are a programmer watching this at 4:00 a.m.

39:06 or 3:00 a.m., please go to sleep.

39:10 Please adjust your sleep habits.

39:13 One of the things that I personally feel,

39:16 I don't know how other people feel about

39:18 this, but I feel like just to program well,

39:22 I typically have to like sleep a lot.

39:25 And I feel like I really need sleep or else I'm not going to be okay.

39:31 I'm gonna not be performing well.

39:34 So, I don't know with Todd's I don't know how people feel about

39:38 Todd's statement or the fact that other people in California are already up.

39:44 Uh, someone's in Italy and it's 12:30 in Italy.

39:47 That's that's good.

39:49 Okay.

39:50 [laughter] Yes, I am in Aush.

39:53 I am in Cologne just a couple of of miles away, which is great.

39:57 Oh my gosh, we have someone from YouTube.

39:59 Hi, Mustafa from from Egypt.

40:01 Sorry.

40:02 Hi.

40:03 Good to see you.

40:04 Good to see you.

40:05 Wow, [clears throat] we do have a lot

40:08 of people here from lots of different places.

40:10 We have someone from France.

40:12 We have someone from Australia,

40:14 which is like 8:30 in Australia, which is amazing.

40:18 I know.

40:20 Morocco, it is 11:30.

40:24 Okay, let's let's go back to our conversation.

40:28 Someone says, "Yeah, I slept bad.

40:29 My brain drifts when I sleep bad.

40:32 My brain drifts so much to program.

40:34 So much to programming." Yes, as programmers,

40:38 let's be getting a good night's rest.

40:41 Let's be sleeping and and resting as programmers so that we can we can be okay.

40:49 Okay, it is 6:30 for Victor in in um uh in Maryland.

40:57 That's in the in America.

40:59 I'm gonna just scroll up to our co-pilot SDK logo so people can see it.

41:05 But um good time.

41:07 And I agree with Mustafa that if you sleep one hour,

41:11 you're you're out of the loop and you're not okay.

41:15 Personally, I'm not okay if I don't get to bed.

41:20 [laughter] Okay, Todd is giving a good excuse saying, "I went to bed at 700 p.m.

41:24 Thank you for your comment about rest." I'm glad you're well rested.

41:30 And uh that's a really good thing as long as you are evening out.

41:35 You got to even out the the sleep.

41:38 So if you sleep early,

41:40 then you got to also you can wake up early and it's it's actually okay.

41:44 All right, everyone.

41:45 I am going to go back to what we were chatting about.

41:50 Okay, someone is saying it's almost 7 PM in the Philippines.

41:54 Yeah, feel free to cook some dinner while we chat.

41:58 I was talking earlier about the app that I'm building and how you can

42:06 in your code you can go ahead and I did see someone mention this.

42:11 So I loved this statement uh about intra ID.

42:17 So I don't know how many of you have um if you

42:22 have used intra ID before to be able to protect your secrets.

42:27 So one of the things I seen people let's see if we can find it.

42:31 There's lots of comments now about what time people are sleeping.

42:35 [laughter] So I don't know if I'll find the comment but someone talked about ID.

42:40 Let me know in the chat if you have um um

42:47 let me know in the chat if you've heard of intra ID.

42:50 If you haven't, Entra ID is a very cool way.

42:53 So you don't have to use environment variables.

42:57 So you can build an application.

42:59 Something that I've seen people complaining about recently

43:02 is that their environment variables or their ENV files,

43:07 the agent has access to those files and maybe you don't want to give,

43:11 you know, your agent access to those files.

43:14 And so using something like inraid is a great option to be able

43:18 to like stop your agent because you don't use uh keys in your code.

43:24 And I think that's really helpful.

43:27 Um, so in my code that you can see on the screen,

43:30 I'm actually using enter ID and you get something called a token.

43:34 So you have this token provider line here.

43:37 So the first thing you do is you want to set a default credential.

43:40 So you have to be logged into you have to create an Azure account

43:44 and then you have to like uh log into AZD uh in the CLI.

43:51 And when you do that, it is it's going

43:53 to get the default credential that's in your CLI.

43:57 So, GitHub Copilot SDK has a similar thing.

44:00 So, you're not using keys at all and instead

44:03 you'll get a token and that token is something

44:06 that will refresh all the time so that it's

44:09 not able to be exploited by people for example.

44:13 And then this is the code that I used in lang chain.

44:16 I have a main uh agent or LLM agent uh LLM connection that I'm creating.

44:23 So I would go to Langchain.

44:26 I'd import this chat open AAI and I can connect directly

44:31 to an Azure endpoint which has GPT 5.5 mini or I'm also having

44:37 a second one with GPT5 nano and then I would create the agent

44:42 which looks like this in lang chain and I would give it lots

44:46 of different tools um I would give it something called the state

44:50 where it just monitors the conversation like we saw here it was it's

44:55 going to be tracking the conversation as it goes along in that state

45:00 and uh after that it also has stuff called middleware as well.

45:04 So all of these are things you can add to your agent in the code.

45:08 And again, this is just go if you want to do something like take

45:11 your agent in copilot and actually build one that you put in the code,

45:15 that should also work as well.

45:18 Um, exactly like not a lot of people are using intra ID.

45:22 It's a very important topic because it allows us to be able if you want to look,

45:28 let me look for intra ID.

45:31 Let me look for an article.

45:34 Um, yeah, let me look for an article that I'll

45:37 show on the screen for us to see about Entra ID.

45:44 Um, let me put it in the in the thing as well.

45:48 Let's do this.

45:50 And let's make a new tab.

45:51 I have so many tabs open.

45:54 And this uh link there I'll also paste

45:58 it will have some information about identity management

46:02 and different ways you can use entra ID

46:06 and be secure or make your app more secure.

46:09 I'll also post let me post the link in the chat as well for us to look at.

46:15 And again like what I said enter ID is

46:17 a great way for you to just protect your application.

46:20 So, um, it is it it's great.

46:25 Uh, Todd is letting us know that he's heard of intra ID,

46:28 but I haven't had much time to delve into it.

46:31 This is very informative and your explanation was easy.

46:34 Thank you, Todd.

46:35 I appreciate that.

46:37 And I do think you should check it out.

46:39 It is something that could be a little like it's not always easy.

46:44 So, you do have to put some effort into initially like setting it up.

46:48 But once you have it set up,

46:50 you can use the same sort of system over and over again.

46:53 Or you can even have copilot.

46:55 You can have copilot in VS Code or Copilot in the CLI

46:59 help you install intra ID and that should that should work as well.

47:04 Um so going back to our application because we don't have much time.

47:10 This was the application.

47:12 I'm actually about to give a talk about this.

47:14 So wish me luck on the talk.

47:17 But this is the app that I'm going to be talking about.

47:21 And then I'm also going to be doing similar things

47:23 to like talking about MCP and how the app works in general.

47:29 Um, and I'm also going to Oh, something I did want to show you is that I

47:35 only noticed yesterday that you can have your Okay.

47:41 Okay.

47:41 Wait, let me show you this.

47:42 Let me show you this because this is cool.

47:44 This is cool.

47:45 You can have your agent actually test

47:48 your app in real time using simple browser.

47:51 So if you can see here,

47:53 I have this like cool button here that says sharing with agent.

47:58 And what it means is that I'm sharing my different um I'm sharing

48:02 my different tabs in simple browser with the agent and the agent can test them.

48:07 So I want to say uh can you open the app in simple browser and run

48:16 tests on uh based on each uh each um chip prompt and this is something

48:26 I saw so playright we talked about playright

48:29 last I don't know if we talked about

48:31 playright but this is I was surprised by this because VS code has this built in.

48:38 And basically what can happen is

48:40 that if you're building an application like this.

48:43 So I've built this app and I want the agent

48:45 to validate that the app is working as expected.

48:49 The agent can actually do that for you.

48:51 So we can see that I'm I'm not touching the keyboard.

48:55 The agent has opened the application on its own locally.

48:59 And then now what it's going to do is it's going to use

49:03 playwright in VS Code to start clicking on buttons and testing things.

49:10 Let me see.

49:11 Oh, no, no, no, wait.

49:13 Why is it doing that?

49:14 It's saying now if I up the No, I don't want to use the API.

49:20 Hang on, hang on.

49:21 It's Let me say use player.

49:24 Okay, now when I'm on the stream, it's not doing the way that I wanted it to do.

49:30 Let me say use playright to click on stuff and test.

49:39 Okay, I I you see this is what

49:42 happens when you whenever you're doing something live, it does the wrong thing.

49:47 But I'm excited to show you this because I actually think it's really cool.

49:52 Um, and basically what I liked about it is

49:56 that you can actually see the agent clicking on stuff

50:01 and you can see it like running tests in real

50:04 time and that was something I really enjoyed seeing.

50:07 I don't know if it's going to do it.

50:09 Okay, it did.

50:09 Okay.

50:10 Yeah, there we go.

50:11 I don't know if you saw that, but it

50:13 says clicked on this chip and it's activating it.

50:18 I don't know why it's saying it's activating Cortana,

50:20 but it clicked on the app and it's doing all of that by itself.

50:25 Um, and basically what it's using is the it is actually

50:30 using the chate the Playright MCP server that I already have installed.

50:35 And then it's going to just like click around,

50:38 test the different things on the page,

50:41 try different tests, and then click them in real time.

50:44 And then this is a great way to actually test that your app

50:48 is working and the agent gets the response that it wants.

50:51 How many of you have seen that?

50:53 I don't know if I don't know if it's just

50:55 me that's the only one that like thinks that's super cool,

50:58 but I just think that's amazing because you can actually

51:01 see it like clicking around and testing on its own.

51:05 So someone said, "Ah, looks so fun.

51:10 Looks fun.

51:10 So a machine is testing the machine." Yeah,

51:13 you get and this is the thing you need to get the agent to be able to test

51:18 its own work because one of the things is

51:21 that we don't sometimes the agents make mistake and it's

51:26 hard for you as a human to always go

51:28 and validate that the agent has done things correctly

51:31 and so using something like this like playright and instructing

51:34 the agent to do that is is really fun.

51:39 Um ah look at this comment.

51:45 Nate is saying any other trolls here?

51:47 I don't really want to learn SDK.

51:50 More likely I want to criticize the whole approach.

51:54 Nevertheless, I might try it out sometime.

51:56 Please try it out.

51:57 Please don't be a troll.

51:59 [laughter] Um, I will share a link to an article

52:05 about how to use the playright to the Playright MCP server,

52:09 but basically it's it's just playright.

52:12 You can actually go to the MCP store.

52:14 Actually, let me show you how to do this.

52:17 uh you can go here to the uh installation tab and then you can say at MCP

52:27 and that's going to bring up different MCP servers

52:29 and then you're going to click on the playright one.

52:32 So that's the one you want to install and this is what is going

52:35 to allow you to be able to do everything that I just showed as well.

52:40 Yes, I think this is super helpful.

52:43 Um I think it's it's it's it's great.

52:45 Pontis is saying, "Good idea to bring the article up.

52:48 It's easy to make a mistake by not knowing." Yes, 100%.

52:52 Um, I don't know why the agent said Cortana.

52:57 It really Yeah, I don't know why it said that.

53:02 It should not have said that.

53:04 But I do think the approach is super cool.

53:06 I think that it's nice to be able to see the agent testing in real time.

53:12 And I like that we can validate that the app is working

53:16 and that we can see the agent like yeah working in real time.

53:20 [snorts] Um okay let's let's just chat now.

53:24 We have only a few minutes.

53:26 We have about 10 minutes.

53:27 Does every anyone have any questions?

53:31 Pontis is saying when I program it's all about flow.

53:34 Sometimes I barely make a line of code and that's so sad.

53:37 But hey that's just me.

53:38 I like it.

53:39 Especially in Spain,

53:41 I'll sleep two two two nights and let let all the agents go ham 100%.

53:48 I did see someone saying how can we

53:52 use the guardrail and callbacks for these agents.

53:55 So I do mention I mentioned that lang chain has a middleware

54:01 layer and one of the things middleware is basically a way

54:05 that you can get your agent to run certain functions before every

54:10 any like LLM call and uh you can actually add guardrails then.

54:16 But I also want to mention that you you can also have your AI agent

54:24 go ahead and like if you're building your agent and you decide to use Azure.

54:31 So for example in our code, let me go to the agent.py again.

54:38 In our agent code, we use the Azure OpenAI API.

54:43 And this is a great API to use because it does

54:47 come built in with some features already that are like guardrail features.

54:52 So I can definitely recommend using Microsoft Foundry

54:56 to deploy models because it comes with some guardrails already.

55:00 Um and middleware is also a great way to do that.

55:03 Does anyone have any questions?

55:06 We can we're about to close off for the day.

55:11 Thank you Mustafa.

55:12 I'm glad the session has been good.

55:15 Um, the app has already finished running.

55:20 So, I did it already tested all of the things.

55:24 And if you want to check out the app, I have a link to it.

55:28 This is the app that I was running.

55:31 I'll put it on this screen as well in case.

55:34 Oh, that took me to the wrong page.

55:38 But this is the link.

55:41 I've made it as an Azure sample.

55:43 So if you want to actually no worries.

55:48 Um yeah, I think this is the thing with these applications.

55:53 It's like you never know.

55:54 But if you want to test out the app that I showed, which is this one here,

55:59 let me go back to the app to the sales

56:03 app that we were also having the agent test.

56:06 Um, that is the link.

56:08 I've put the link on the screen.

56:10 You can try it out yourself.

56:12 I'm making some changes to the application.

56:15 So, as we go along, it will update.

56:18 And something I'm trying as well is to get different personas

56:21 to have different access to uh different levels of information as well.

56:27 I also have a customer service agent I'm building um with it too.

56:33 No problem.

56:38 Yeah.

56:41 Okay.

56:41 I see I see I I see some some funny things there.

56:47 Uh Mustafa is asking React and Typescript for AI apps.

56:53 React and TypeScript work great.

56:55 A lot of people use that.

56:57 For [snorts] me, I like a mix of Python

56:59 for the API stuff that I showed you with like

57:03 uh the SDK or like Copilot SDK or an engine

57:07 copilot SDK and then I also mentioned lang chain.

57:11 Sorry.

57:12 So, I like that AI bit.

57:14 I like to use Python for that and then

57:16 I actually use uh React and JavaScript in the front.

57:21 Um, okay.

57:23 Todd is saying, "Are there any frameworks you have used besides the copilot

57:27 SDK and some other MCP that pairs well with Copilot SDK?" I use Langchain.

57:33 So, actually a lot the app that I've showed on the screen is lang chain.

57:38 Um, that's what I use to build it or the agent in it.

57:42 And then, um, so that's the other framework that I use.

57:46 Microsoft also has a framework called Microsoft agent framework.

57:49 So you could try that out.

57:50 But I like copilot SDK or lang chain.

57:53 Microsoft agent framework is also good by the way.

57:55 [laughter] But yeah, I just use uh I use lang chain a lot and also copilot SDK.

58:02 MCP servers.

58:03 There's so many great MCP servers.

58:06 I just recommend going to the extensions, typing in that MCP and scrolling.

58:14 I really like Playright.

58:15 That's my favorite.

58:16 Obviously, the GitHub MCP server,

58:19 it comes in, I think it comes pre-installed with uh Copilot CLI and Copilot SDK,

58:26 which is why uh it's showing that it's not installed there,

58:31 but it it it comes installed, pre-installed, I think.

58:34 So, this is my other favorite is the GitHub MCP.

58:37 You also have like a Unity MCP server, which is cool.

58:41 That could be fun to test.

58:43 Azure MCP server is great in case you want to do deployments.

58:48 I have a bicep MCP server already installed for example.

58:52 I would recommend just typing out that MCP and then

58:55 scrolling for yourself to see like what is available.

58:59 I think that could be cool to do.

59:01 [snorts] All right, I think we are almost at time everyone.

59:06 Uh no worries.

59:09 Thank you for joining me today.

59:10 I am next time we call I'm going to make sure

59:15 that I am at home and we'll be able to chat.

59:20 Uh Stefan is saying thanks for the input.

59:23 Next meeting is waiting.

59:24 Yes, I hopefully I will see you all next time.

59:28 I will be streaming at the correct time.

59:30 I'm going to double check what the time is and the time zone.

59:35 Um okay.

59:36 Okay.

59:36 Hey, I do see a question from Ada saying,

59:39 "How can a non-programmer like me who has interest in AI agents and be able

59:44 to build my own AI agents?" I do think you could should try GitHub Copilot.

59:49 I think actually if you want to, I can recommend

59:53 downloading VS Code and and trying uh Copilot in VS Code.

59:58 I think that works for anyone even if you're

1:00:00 not a um even if you're not a a programmer.

1:00:05 So great answer, but I am so happy that we were able to chat today.

1:00:12 Thank you for hanging out with me.

1:00:14 Wish me luck on my talk today and I will definitely see you all next time.

1:00:20 Thank you for joining.

1:00:21 Bye.

Study with Looplines Download Captions Watch on YouTube