TRANSCRIPTEnglish

AWS Certified Generative AI Developer - Professional: Agent architecture: planner, executor, memory

5m 8s796 words131 segmentsEnglish

FULL TRANSCRIPT

0:06

Day 17, agent architecture, planner,

0:09

executive, memory. Day 17 is where the

0:11

exam quietly checks something very

0:13

important. Do you understand the

0:16

difference between calling an LLM and

0:18

building a system that can act? This is

0:20

a conceptual jump, not a technical one.

0:23

Imagine this. A massive earthquake hits

0:25

a city. The government deploys an AI

0:28

called the disaster response commander.

0:30

Its job is not to answer questions. Its

0:32

job is to do things. It must assess

0:34

incoming damage reports, request

0:36

satellite images, check shelter

0:38

capacity, coordinate supply deliveries,

0:40

and keep track of what has already been

0:42

done. This system cannot answer once and

0:44

stop. It must think, plan, act, observe

0:48

results, and remember that is an agent.

0:51

So, let's define this clearly. An agent

0:53

is an LLM driven system that can plan

0:55

steps, call tools, observe outcomes, and

0:58

decide what to do next. A chatbot

1:00

answers, an agent acts. This distinction

1:02

matters deeply on the exam. If AWS

1:04

mentions multi-step workflows, tool

1:06

calls, decision-making or orchestration,

1:08

you are no longer in chatbot land. You

1:10

are in agent architecture.

1:13

Every agent, every real one has three

1:15

core components. A planner, an

1:18

executive,

1:19

and memory. Remove any one of these and

1:22

the agent collapses.

1:24

Let's start with the planner. The

1:26

planner is the thinker. Its job is to

1:28

take a goal and break it into steps. It

1:30

decides what should happen next. In the

1:32

disaster response system, a human says,

1:34

"Set up emergency shelters for 2,000

1:36

people." The planner does not call APIs

1:38

yet. It thinks first check available

1:41

shelters. Then calculate total capacity.

1:43

Then identify shortages. Then request

1:46

supplies. This is reasoning about

1:48

actions not performing them. On the

1:51

exam, if you see words like task

1:52

decomposition, planning steps or

1:54

deciding actions, you are looking at the

1:57

planner. Next is the executive. The

2:00

executive is the doer. It does not think

2:02

creatively. It does not decide strategy.

2:05

It performs actions chosen by the

2:06

planner. In our disaster system, the

2:08

executive calls real tools. It calls a

2:11

GIS API to locate shelters. It calls an

2:14

inventory system to check supplies. It

2:16

calls a logistics service to request

2:18

deliveries. In AWS terms, the exeutor is

2:21

almost always implemented with Lambda

2:23

functions and APIs. The LLM decides what

2:26

to call. Lambda actually calls it. This

2:29

separation is critical. Now comes

2:31

memory. Memory is what prevents the

2:33

agent from being stupid. Without memory,

2:36

the agent forgets what it already did,

2:38

repeats actions, and loops endlessly.

2:40

Memory exists in two forms. Short-term

2:42

memory holds the current conversation

2:44

and recent tool results. This often

2:46

lives in the prompt context or session

2:48

state. Long-term memory stores things

2:50

that must persist. Past decisions,

2:53

historical facts, user preferences,

2:55

completed actions. This is usually

2:58

stored in a vector database or a regular

3:00

data store. In the disaster system,

3:03

memory remembers which shelters are

3:04

already full, which supplies have been

3:06

requested, and which decisions are

3:08

final.

3:10

Because of memory, the agent does not

3:12

ask for the same supplies twice. Now

3:15

visualize the full agent loop. A user

3:17

provides a goal. The planner reasons

3:20

about the next step. The executive

3:22

performs the action by calling tools.

3:24

The system observes the results. Memory

3:26

is updated. The planner decides what to

3:28

do next. And the loop repeats. If you

3:31

can explain this loop, you can answer

3:33

any agent architecture question on the

3:35

exam. Where do AWS services fit into

3:38

this? Amazon Bedrock provides the LLM

3:41

that acts as the planner. Lambda

3:43

functions act as the exeutor. Vector

3:45

stores or databases provide long-term

3:47

memory. Cloudatch and X-ray give you

3:49

tracing and observability. IM controls

3:52

which tools the agent is allowed to use.

3:54

If the exam asks how an agent interacts

3:56

with external systems, the correct

3:58

answer is the LLM plans. Lambda

4:01

executes.

4:03

Now, it's equally important to know when

4:04

not to use an agent. Agents are

4:06

powerful, but they are expensive and

4:08

complex. They are good at multi-step

4:10

workflows, dynamic decisions, and tool

4:13

orchestration. They are bad at simple

4:15

question and answer tasks, static

4:17

responses, or one-step jobs. If the

4:20

problem is simple, an agent is the wrong

4:22

solution. AWS penalizes overengineering.

4:26

Finally, watch for the exam traps. An

4:28

agent is not just a bigger prompt. Agent

4:31

memory is not only chat history. Tools

4:33

are not called directly by users. and

4:35

agent logic does not live entirely in

4:37

lambda. The correct mental model is

4:39

simple. The LLM decides, the executive

4:42

acts, memory persists. Here is the one

4:44

sentence to lock this in. The planner

4:46

thinks, the executive acts, memory

4:49

prevents stupidity. Say that once before

4:51

the exam. Final self- test. A system

4:54

must decide which APIs to call in what

4:56

order. And remember previous results.

4:58

What architecture is required? An agent

5:01

with a planner, exeutor, and memory.

5:03

That's day 17 mastered.

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.