Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Request, Chat, and Agent

Not every AI tool is an agent. A translation box on a website, the chat app you type into, and an assistant that books a trip all use a model, but they use it in different ways. These are the three ways you’ll meet most often.

Three Ways to Use a Model

Here’s how a single request, a chat, and an agent compare:

What happens What keeps it going
A single request One question goes to the model, and one answer comes back. Nothing else happens unless something acts on the answer. Nothing. It’s finished after one answer.
A chat Each message you send goes to the model along with the conversation so far, and the reply comes back to you. You do, one message at a time.
An agent The app sends the model what it needs, uses tools when the model asks, and checks with you when it should. The app does, step after step, until the task is done.

All three are built from the same thing. Each message in a chat is one request, and an agent sends many requests in a row, acting on each answer in between. What makes something an agent is the app around the model: it keeps the task going, offers tools, and acts on what the model asks for. That’s the agent loop at work.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 Request, Chat, and Agent.

00:03 Not every AI tool is an agent. Think of a translation box on a website. Or the chat app you type into. Or an assistant that books a trip. All three use a model, but they use it in different ways.

00:16 These are the three ways you’ll meet most often.

00:20 The simplest is a single request. One question goes to the model, and one answer comes back. Nothing else happens, unless something acts on the answer. It’s finished after one answer.

00:31 A translation box on a website works this way. In a chat, each message you send goes to the model along with the conversation so far. The reply comes back to you.

00:42 What keeps it going is you, one message at a time. That’s the chat app you type into. With an agent, the app sends the model what it needs. It uses tools when the model asks, and it checks with you when it should.

00:55 What keeps it going is the app, step after step, until the task is done. That’s the assistant that books a trip, asking you before it books. So the real difference is what keeps it going.

01:07 For a single request, nothing does. For a chat, you do. And for an agent, the app does. All three are built from the same thing. A single request is one round trip to the model.

01:20 Each message in a chat is one request, too, and you start the next one. And an agent sends many requests in a row, acting on each answer in between.

01:31 What makes something an agent is the app around the model. It keeps the task going. It offers tools, and it acts on what the model asks for. That’s the agent loop at work.

01:43 Knowing which of the three you’re using tells you what to expect. A single request won’t remember your last one. A chat goes only as far as your next message.

01:52 And an agent keeps acting until the task is done.

01:56 Because an agent keeps acting, it’s worth knowing what it can reach. That’s where the next section of the course picks up. So a single request is one question and one answer.

02:06 A chat is one request per message, and you keep it going. An agent is many requests, and the app keeps it going. Below this video, you can sort four examples into those three, and then open the answers to check.

Become a Member to join the conversation.