Well. 出色地。
Hello. 你好。
My name's Ed Donner. 我叫埃德·唐纳。
I'm a two time AI startup co-founder and a former managing director for J.P. Morgan. 我是两次人工智能初创公司的联合创始人，也是摩根大通的前董事总经理。
And I'm about to take you on a wild ride. 我要带你去一次疯狂的旅程。
We're going to be spending the next six weeks together on an adventure. 我们将在接下来的六周里一起冒​​险。
I've actually just finished myself doing the six weeks worth of projects. 事实上，我刚刚完成了为期六周的项目。
There are eight projects along the way, and I can tell you I have some astonishing things in store 一路上有八个项目，我可以告诉你我有一些令人惊讶的东西
for you and I can't wait to get started. 你和我都迫不及待地想开始。
Let's do this! 让我们这样做吧！
Now, it's customary with these things to kick off with an introduction to myself and talk about the 现在，习惯上这些事情都是以自我介绍开始并谈论
goals of the course, but people who've taken my courses before will know that I don't like doing that. 课程的目标，但以前参加过我的课程的人会知道我不喜欢这样做。
Let's not do that. 我们不要那样做。
Let's get straight to action. 让我们直接开始行动吧。
Let's go and see some autonomous AI agents in practice, and we'll come back and do that other stuff 让我们去看看一些自主人工智能代理的实践，然后我们回来做其他的事情
later. 之后。
So I've taken us now to the app N810, which is an exciting app that is definitely generating interest. 现在我将带我们了解 N810 应用程序，这是一款令人兴奋的应用程序，肯定会引起人们的兴趣。
This is an example of one of these low code or no code workflow apps that allows you to construct a 这是这些低代码或无代码工作流程应用程序之一的示例，可让您构建
workflow of orchestrating between different applications and build it without necessarily needing to 在不同应用程序之间编排并构建它的工作流程，而无需
write any code yourself. 自己编写任何代码。
The difference with some of the other workflow tools like this is that it has generative AI built into 与其他一些类似的工作流程工具的区别在于，它内置了生成式人工智能
it, and that's why people are so excited about N810. 这就是人们对 N810 如此兴奋的原因。
So if you come to N810, which is the cloud version of it, you can also download it and run it locally. 所以如果你来到N810，它是它的云版本，你也可以下载并在本地运行。
But here we're using it in the cloud. 但这里我们在云中使用它。
You can press Get Started and set up an account if you want to do this yourself. 如果您想自己执行此操作，可以按开始并设置帐户。
Or you can just watch me. 或者你可以看着我。
But it might be fun to try this out yourself if you haven't used it before. 但如果您以前没有使用过，那么亲自尝试一下可能会很有趣。
So I've set up an account, I've done that, and once I've signed in, I get this beginning screen to 所以我已经设置了一个帐户，我已经完成了该操作，一旦我登录，我就会看到这个开始屏幕
add my first step. 添加我的第一步。
You can also use one of their templates right off the bat if you want to, but we're going to build 如果您愿意，您也可以立即使用他们的模板之一，但我们将构建
something ourselves right now. 我们现在的一些事情。
So we're going to add a first step. 所以我们要添加第一步。
And what we're going to do is we're going to begin by starting with a chat message. 我们要做的是从聊天消息开始。
So this if I go back to the canvas here, you press back to canvas on the top left. 所以如果我回到这里的画布，你按回到左上角的画布。
We can now see this canvas which is showing that we have a chat box here that's represented by this 我们现在可以看到这个画布，它显示我们这里有一个聊天框，用这个表示
chat window down here. 聊天窗口在下面。
and we can chat and do something as a result of that chat. 我们可以聊天并通过聊天做一些事情。
So what do we want to do? 那么我们想要做什么呢？
Well, we press the plus button right here and we come over to the right and we decide that we want 好吧，我们按下这里的加号按钮，我们走到右边，我们决定我们想要
to have advanced AI. 拥有先进的人工智能。
And we're going to create an AI agent right here. 我们将在这里创建一个人工智能代理。
And now, if I go back to canvas, I'll show you that what we have in our canvas now is a chat message 现在，如果我回到画布，我会向您展示画布中现在有一条聊天消息
going into an AI agent representing by this box. 进入由该框代表的人工智能代理。
And then something can come out at the back of that. 然后后面就会出现一些东西。
And you don't need to know all of the details here. 您无需了解此处的所有详细信息。
This is more to give you an idea. 这更多的是给你一个想法。
And by all means you can play with this yourself. 无论如何，你可以自己玩这个。
But most of this course is going to be about building things like this. 但本课程的大部分内容都是关于构建这样的东西。
But let's give this a shot. 但让我们试一试。
So the next thing we can do is add a chat model. 所以我们接下来要做的就是添加聊天模型。
And this is a large language model that's going to sit behind this AI agent. 这是一个大型语言模型，将位于该人工智能代理的后面。
And I'm going to pick open AI chat model. 我将选择开放式人工智能聊天模型。
Now that's because I have an open AI key which will be setting up for you if you don't have one already 那是因为我有一个开放的 AI 密钥，如果您还没有，它会为您设置
quite soon. 很快。
And alternatively, if you don't want to do this, you can use Olama instead and run for free, but 或者，如果您不想这样做，您可以使用 Olama 代替并免费运行，但是
you would then have to install it Locally, but I've set up my OpenAI account and you can do this yourself. 然后你必须在本地安装它，但我已经设置了我的 OpenAI 帐户，你可以自己安装。
All you do is you come down here and you press create New credential and you type in your API key. 您所要做的就是来到这里，按下“创建新凭证”，然后输入您的 API 密钥。
But I've done that already. 但我已经这么做了。
So my OpenAI account is linked. 这样我的 OpenAI 帐户就被链接了。
It's as simple as that. 就这么简单。
And here it is. 就是这样。
It looks here OpenAI chat is connected to my chat model. 看起来 OpenAI 聊天已连接到我的聊天模型。
So far so good. 到目前为止，一切都很好。
Let's keep moving. 让我们继续前进吧。
We're now going to add in a tool. 我们现在要添加一个工具。
Now, tools are one of the most fundamental building blocks of a gigantic AI. 现在，工具是庞大人工智能最基本的构建模块之一。
And this week is going to be a lot about building tools. 本周将有很多关于构建工具的内容。
So I pressed the plus button to open up the list of tools that I could connect with the AI agent. 因此，我按下加号按钮打开可以与人工智能代理连接的工具列表。
And you can see there's a large number of tools, a lot of different things that this agent could, 你可以看到有大量的工具，这个代理可以做很多不同的事情，
could use, could take advantage of. 可以利用，可以利用。
It could do calculations with a calculator. 它可以用计算器进行计算。
It can book meetings using my Google calendar or read my emails, look at my Facebook timeline, lots 它可以使用我的 Google 日历预订会议或阅读我的电子邮件、查看我的 Facebook 时间线等等
of things that it can do, as you will see here, read Hacker News for me. 正如您将在这里看到的，它可以做的事情，请为我阅读《黑客新闻》。
I would like that. 我愿意。
Okay, but we're going to go all the way down and we're going to find something here that I just want 好吧，但我们要一直往下走，我们会在这里找到我想要的东西
to show off, which is the Philips Hue tool. 炫耀一下，这就是飞利浦Hue工具。
I don't know if you know about Philips Hue. 不知道你是否了解飞利浦Hue。
It's something which is, uh, gives you light bulbs. 它是，呃，给你电灯泡的东西。
And I have a lot of light bulbs in my apartment here, and we're just going to pick a light bulb. 我的公寓里有很多灯泡，我们只需要挑选一个灯泡即可。
This one here called the bed strip. 这里称为床条。
And we can add a field. 我们可以添加一个字段。
We'll say brightness. 我们会说亮度。
We'll let the AI automatically choose what it wants to do with brightness. 我们会让人工智能自动选择它想要对亮度做什么。
We'll add a field hue which is like the color. 我们将添加一个类似于颜色的场色调。
And we'll let that do that too. 我们也会让它这样做。
And that's all there is to it. 这就是全部内容。
We've now when I go back to the canvas, you'll see that we have given a tool to this agent that you 现在，当我回到画布时，您会看到我们已经为该代理提供了一个工具，您可以使用它
can see visually here, that it is able to control the Philips Hue light bulb. 在这里可以直观地看到，它能够控制飞利浦 Hue 灯泡。
So here we are looking at our chat, our agent, the LM and the tool. 所以在这里我们关注的是我们的聊天、我们的代理、LM 和工具。
Let's get going with bringing up the chat message that's associated with this input. 让我们开始显示与此输入关联的聊天消息。
And let's say well hi there. 让我们打个招呼吧。
And you can see it working and thinking hello, how may I assist you today. 您可以看到它正在工作并思考“你好，今天我可以为您提供什么帮助”。
Let's say please Turn the lights on. 假设请把灯打开。
Bright white. 亮白色。
And let's see. 让我们看看。
And bam! 砰！
Did you see that coming? 你看到了吗？
On come the lights that I am, in fact, wearing my light strip. 事实上，我戴着灯带，灯亮了。
Uh, so here we go. 呃，所以我们开始吧。
Now, you may say to me, okay, that's cool. 现在，你可能会对我说，好吧，那很酷。
I see tools in action. 我看到工具正在发挥作用。
I see an LM that I'm chatting with. 我看到一个 LM 正在跟我聊天。
It's controlling my lights in my apartment. 它控制着我公寓里的灯。
Great. 伟大的。
But it's not really showing me autonomy. 但这并没有真正向我展示自主权。
I'm not seeing something where it's making its own decision. 我没有看到它自己做出决定的事情。
Well, then let me show you that. 好吧，那么让我告诉你。
So to make it autonomous, we need to give this agent some agency. 因此，为了使其自治，我们需要给这个代理一些代理权。
So let's say please pick a color. 所以假设请选择一种颜色。
Let's say, uh, either deep red or deep blue and change the lights to that color. 假设，呃，深红色或深蓝色，然后将灯光更改为该颜色。
Let's see how it does with that. 让我们看看它是如何做到的。
And there we go a lovely red comes out. 就这样，一种可爱的红色出现了。
Fantastic. 极好的。
So there you have it. 这样你就得到了。
We have an autonomous agent. 我们有一个自主代理。
Maybe it's a simple task, but nonetheless, you just saw it making its own decision, picking red over 也许这是一个简单的任务，但尽管如此，你只是看到它做出自己的决定，选择红色
blue and changing the light bulb all through Nathan's web app. 蓝色并通过 Nathan 的网络应用程序更换灯泡。
So look, that was a bit small and superficial, but nonetheless, it was our first foray into the world 所以看，这有点小和肤浅，但尽管如此，这是我们第一次涉足这个世界
of Agentic AI. 代理人工智能。
And I strongly encourage you to go and take a look at N810. 我强烈建议您去看看N810。
It's so easy to use. 它非常容易使用。
It's so quick to set up an account, to hook up a web form to your Google Calendar, and lots of other 设置帐户、将网络表单连接到 Google 日历以及许多其他功能都非常快捷
things to try out, and it gives you a nice hands on sense of what it's like to work with agents. 可以尝试的事情，它可以让您很好地了解与代理商合作的感觉。
But I should say, this is the last time that we'll be using a tool, a low code, no code tool like 但我应该说，这是我们最后一次使用工具，低代码，无代码工具，如
this. 这。
As a user of AI, for the next six weeks, we're going to be rolling up our sleeves and we're going 作为人工智能的用户，在接下来的六周里，我们将卷起袖子，我们将
to be coding agents. 成为编码剂。
We're going to be building them ourselves and working with frameworks that allow us to build and have 我们将自己构建它们，并使用允许我们构建和拥有的框架
different agents interact, be orchestrated to solve problems. 不同的代理相互作用，被协调来解决问题。
Okay. 好的。
So in the next lecture, I will tell you more about what I have in store for you. 因此，在下一堂课中，我将向您详细介绍我为您准备的内容。
See you then. 到时候见。