シャドーイング練習: Anthropic's CCA Exam as a Field-Guide for Agentic Engineering — Frank Coyle, UC Berkeley - 動画で英語スピーキングを学ぶ

練習モードを選ぶ

各モードは全画面の練習ルームで開きます。

263 文
文が短すぎたり長すぎる場合は、Editをタップして調整してください。
1
Frank Hoyle Reviewer Frank Hoyle Okay,
2
getting rolling and welcome aboard.
3
Just had a little technical issues, but we'll resolve them.
4
So my name is Frank Hoyle.
5
I am a computer science guy.
6
I've been teaching computer science for over 30 years, and I'm now teaching at Berkeley.
7
and one of the problems that all my students, past and present, are having is AI,
8
because computer science is no longer the magic pathway to a job.
9
So I've been trying to figure out ways to help them, come up with schemes to help them get ready for this world of agentic AI.
10
And one of the things that sort of dropped into my plate plate was the something called the Claude Certified Architect exam,
11
which I will be talking about today.
12
And it has a number of aspects to it.
13
And I think if you're interested in a career in agentic AI, to certainly take a look at least what the exam is about,
14
because I feel that Anthropic knows how people are using their system and what the issues are going to be.
15
So before we jump into that, I want to give a little bit of my philosophy.
16
May have to do this manually, getting stuck.
17
So this is a quote from a woman named Sister Corita Kent.
18
Nothing is a mistake.
19
There's no win and no fail.
20
There's only make.
21
The bottom line here is experiment, experiment, experiment.
22
Not only should you read, but you should do, you should make stuff.
23
Now, what happens when you make stuff?
24
A lot of times things don't work.
25
Thomas Edison said, I have not failed.
26
I've only found 10,000 ways that don't work.
27
And what I want to emphasize here is that what this shows us are something that in the design patterns movement,
28
which came around in the early 1990s with object-oriented programming, we had patterns for objects.
29
We now have patterns for agents.
30
But there's also anti-patterns.
31
And I think anti-patterns are a key to understanding what you should not do.
32
Because understanding what you should not do is the key to leading you to what you should do.
33
So a little bit about the CLAWD certified exam, released in March.
34
So it's brand new.
35
It is based on scenarios.
36
It is timed.
37
It is proctored.
38
It is available to companies in the CLAWD ecosystem, the anthropic ecosystem.
39
But individuals can pay $99 and take the exam once every six months.
40
And it's not just multiple choice questions.
41
It is multiple choice, but they are based on realistic constraints and realistic scenarios.
42
The five domains.
43
There are five domains that are covered and they give you the percentages of each.
44
So, agentic architecture, 27%.
45
Claude code, how to configure the Claude code system and workflow, 20%.
46
How to doing prompt engineering, structuring your output using JSON all over the place,
47
tool design, model context protocol integration.
48
These are topics that you should understand and know whether you're going to take the exam or not.
49
This is going to help you get ready for whatever the agentic world is going to throw at you.
50
And then there's going to be context management and reliability.
51
So these are the areas of the kind of questions you're going to run into.
52
Then there are, and they provide you with six production scenarios,
53
and the exam will randomly choose four, and all the questions will be centered around the four that they choose.
54
And what I'm going to do is walk you through the production scenarios
55
and give you some anti-patterns to be aware of because there's a number of ways you can solve the problem, but one of the big things is what not to do,
56
and that often can be the key to getting these questions right.
57
So number one, customer support resolution agent.
58
So we have agentic loops, control, something called stop reason, which is what Claude Code has.
59
Every time something happens, there's a stop reason, and you need to take a look at that because that can give you a lot of information about what's going on.
60
Scenario two, code generation.
61
Three, multi-agent research system, which we'll look at.
62
How do you distribute your agents?
63
Hub and spoke, who's the orchestrator, how much information should they know?
64
All these are important factors.
65
Scenario four, developer productivity with code.
66
So how do you do subtask isolation?
67
Keep your tasks in their little universes.
68
And this harkens back to what we learned in computer science from doing multi-threaded programming.
69
When you have multiple threads operating and sharing memory, then you get into issues with synchronization.
70
You got to put locks in.
71
Keep the little threads independent it, keep your agents independent.
72
And then some Claude code for continuous integration.
73
And then we'll look at some patterns for structured data extraction.
74
Okay.
75
That's kind of where we're going to go.
76
Now, here's something that I like to point out.
77
Everybody's talking about loops, right?
78
The loop is the new thing.
79
Boris Churny says he doesn't write code, but his job is to write loops.
80
And Peter Steinberger, master of open claw, says, I don't code anymore.
81
I just design loops that prompt your ages.
82
So loops are the new big thing, right?
83
Well, no, they're not.
84
OK?
85
Back in the day, early days of computing, we had programming languages were exploding.
86
We had Fortran.
87
We had COBOL.
88
And there were big fights.
89
My programming language is better than yours.
90
It can do more.
91
No, it can't.
92
We can do this.
93
Beam and Jacopini, 1966, proved that if you want a language to be Turing complete,
94
which means can compute anything, that computers are possibly able to compute, then you need only three things.
95
The ability to write statements sequentially, okay, to have if-then conditionals,
96
and the third piece is the loop.
97
If you add the loop, you have Turing computability.
98
And now we are seeing this being resurrected in the agentic world with the focus on loops, because up to now we've had sort of sequences,
99
you have prompts, you have maybe if-then, but now we have a loop, and now this is what's giving us the power.
100
This is where the agentic stuff is getting very exciting.
101
Okay, start with scenario one, customer support resolution.
102
So here we have a loop operating, and I'm gonna jump to the anti-pattern.
103
What you don't want is just to let the agent go and do something and get the response back and use it.
104
What you want to do is you want to loop with something called the stop reason.
105
So I'm going to show you a little code here.
106
So here we have while loop.
107
It's a while true.
108
It's a loop.
109
We're looping right here.
110
So the first little block is where we call the model.
111
And we pass it the messages.
112
The messages are essentially the sequence of prompts that exist in the context window.
113
And we are asking the, and we have a prompt, and we have the context, and we have a tool.
114
And we're asking the LLM to do something with this tool and help us out.
115
The problem is the LLM can't do anything.
116
It is just a probabilistic next word predictor.
117
It can't execute tools.
118
So what it does, though, is it can figure out, if you point it to a tool,
119
it can figure out how to set things up so that you or your code can execute it.
120
So it's important to understand that the LLM is not executing these tools.
121
It can't do anything except talk back to you very intelligently sometimes, but all it can do is talk back to you.
122
So when it finishes this task and has a result,
123
which is basically here is, I know what you want, I know what the tool can do,
124
here's how it sets up the parameters that can then be, then use to actually execute the tool.
125
So this second block, you see, why did the LLM come back to us?
126
That's our stop reason.
127
Tool use.
128
Oh, OK.
129
We've stopped because the LLM wants to use the tool.
130
So let's just run the tool.
131
So that's what the second block is.
132
Run tool, the response is what the LLM said, and it's basically the parameters that it has extracted from the data that you provided it.
133
Then it executes that.
134
Then it goes back.
135
Then it continues.
136
Continues means the LLM sees it, says, oh, successful run.
137
So okay, come back down.
138
We're not running a tool anymore.
139
We're ended our loop.
140
Bingo.
141
Now, then we take the answer, and this is an opportunity for you to have a human in the loop potentially.
142
Check the confidence.
143
If it looks good, you keep it.
144
If you don't, then you escalate to a human.
145
So now there's another reason why you need to make sure you check your stop reason.
146
One of the stop reasons may be you have run out of tokens, and this response is based on partial when the LLM had to stop,
147
and it's going to give you a response, but if you have run out of tokens, then you need to take action.
148
Okay.
149
Next scenario.
150
Code generation with Claude.
151
So Claude code has this concept of Claude MD file, a markdown file, where you put all the things you wanted to know.
152
What Anthropic recommends is you have three levels of Claude.
153
One that you have at the top level of your project, the other that you have inside your sort of the project folder,
154
and then within directories you can also specify.
155
So the idea is to have a hierarchical set of rules that could then control how the system is going to respond.
156
Moving right along, we have a multi-agent research system.
157
So here we're going to have the problem is how do I get my agents to go off
158
and do stuff and bring the answers back in a reasonable way?
159
The anti-pattern, you have one agent, and you load it up with tools.
160
So I like to think about you hire somebody to come to your house.
161
You hire a carpenter to come to the house, and the guy shows up with plumbing tools, carpenter tools, electrical tools.
162
He says, I can do anything.
163
Well, maybe you don't want this guy.
164
Maybe you want a professional carpenter.
165
So that's the kind of idea.
166
And this kind of takes us back to some of the functional programming ideas,
167
that functions should be do one thing.
168
And if you can get your agents to do one thing, with maybe one or two tools available to it, then that's going to be a win.
169
And that's going to help you with this exam. So specialize.
170
Don't overload.
171
The other part of this is don't let your agents' context spill over into the main context,
172
because context means tokens, tokens mean money, and the more context you have,
173
the more confused the LLM is going to be in giving you an answer.
174
So even though, oh, a million token context window, I can put everything in there.
175
No, no, don't put everything in there.
176
Limit what's going to go in there, because then you're going to get a much more accurate system.
177
So here's an example of a specialized subagent.
178
So this would be the critic.
179
So let's say you've run some stuff.
180
Now you want to get an agent to look at what's happened.
181
What you want to do is just give it what it needs to solve that critic problem.
182
I'm only giving it here the, we're passing it the claim and the evidence.
183
So your claim is sort of how we're going to solve the problem.
184
Here's the evidence.
185
But you're not giving it the thought processes that went in to creating this claim.
186
Why?
187
When you get a bunch of agents together, collaborating and talking to each other, there's a tendency to have group think.
188
And all the agents seem to kind of devolve into one idea.
189
I mean, it's like you're in a group, you're at a party, and everybody wants pizza except you.
190
But then people talk you into, you don't want to spoil the party.
191
So you go along.
192
And it seems that agents kind of work in the same way.
193
So you're going to return.
194
Basically, you're going to give each agent only a slice.
195
I didn't think about the pizza analogy, but yes, every agent gets its own slice and it should come through.
196
Okay.
197
Fourth scenario, developer productivity.
198
So the anti-pattern, let every subtask dump its full output into the primary thread, crowding out the context.
199
Again, this is what I was just talking about.
200
This is bad.
201
Let the context grow unbounded.
202
Bad, for the reasons we just talked about.
203
You want to isolate your subtask output, and you want to compact long sessions.
204
I'm going to take a second to talk about that.
205
So here's an example of a pattern.
206
You want to have your agent look at the logs and create a summary of where the problems are in the log.
207
So here's your task.
208
Scan all the logs for error.
209
Context fork.
210
So you're forking the agent into a separate thread, where whatever the agent does and thinks and adds tokens to,
211
does not come back and pollute the main context.
212
Now, you see here what happens.
213
Then you take this summation, and then you add that summation without all the other stuff into the overriding context.
214
Now, this last little block is kind of interesting, I think, because you can check your token count,
215
And you can determine how big the token count is.
216
And if you can set some limit, if you have more than 150,000 tokens, then what you want to do is you can run a compact.
217
So Anthropic and Claude have these compaction algorithms that take this giant context and compact it in some way, shape, or form.
218
Not quite sure how the implementation is of that.
219
But there is compaction.
220
Now, a little side effect, a little side channel.
221
I've been walking around.
222
When you walk outside, you see these guys handing out these books.
223
OK?
224
Anybody see these guys handing out these books?
225
Take them.
226
This is actually a pretty good little book.
227
In fact, I was looking at it last night.
228
And one of the things it had in it was this is by this guy Sam Bagua.
229
I have no connection.
230
I don't even know Sam.
231
But there's on line page 32.
232
It says his company provides custom logic for compression of context.
233
And you can write your own.
234
You can extend his base class and have your own compression of your data, whatever you think is important.
235
So I think that's kind of an interesting spin on this whole thing.
236
OK.
237
Claude Code for continuous integration.
238
Anti-pattern.
239
Always have interactive modes in a pipeline.
240
No, no, no, because interactive modes mean Claude will stop and ask you, you want to do this, you want to do that, can I have permission for that?
241
So there are ways to set it up so that it'll just run straight through.
242
The other tip that I'll give you here is there's something called the batch.
243
So you can take your prompts, you can take your work, and you can put them in a batch,
244
and for 50% fewer token costs, you will get the result they promise in at least 24 hours.
245
So if you're going to go take a nap, you're going to go on vacation, you're going to go out, take a day off, run your stuff in batch mode,
246
and you're going to have less to pay. Where am I here?
247
All right.
248
I've only got a few minutes left, a few seconds left, but I want to conclude with this.
249
Remember, nothing is a mistake.
250
There's no win.
251
There's no fail.
252
There's no exam.
253
Only make.
254
You do it, and you make it, and you're going to succeed.
255
If If you want to reach out to me, reach out to me, COIL at Berkeley.
256
Look at my websites.
257
I got a website, Code Supreme AI.
258
I'm a big jazz fan, and I named this website after John Coltrane, Love Supreme, if you know that song.
259
Great.
260
Anyway, that's my story, and I'm sticking to it.
261
And I'm at the zero time.
262
OK.
263
Thank you.

アプリをダウンロード

流暢に話すために必要なすべて

AI発音採点文ごとに採点
IPA練習すべての音をマスター
単語学習自分の単語帳を作る
単語ゲーム遊びながら覚える

同じチャンネル

FOR YOU

おすすめ動画

背景とコンテキスト

この動画では、カリフォルニア大学バークレー校のフランク・ホイル教授が、AI分野のキャリアを準備する学生たちのために、AnthropicのCLAUDE認定アーキテクト試験について語っています。教授は30年以上コンピューターサイエンスを教えており、AIの進化に伴う職業環境の変化に直面する学生たちを支援するため、この試験の重要性を説明しています。動画の中では、「失敗はなく、ただ10,000通りの方法を見つけただけ」というトーマス・エジソンの言葉を引用し、実験や試行錯誤の重要性を強調しています。

日常会話に使える注目の5フレーズ

  • 「getting rolling」(始める、進める)- 会議や作業の開始時に使えるフレーズです。
  • 「dropped into my plate」(私の手に渡ってきた)- 予期せず任務や機会が与えられた時に使います。
  • 「bottom line」(要するに、結局のところ)- 要点をまとめる際に便利です。
  • 「make stuff」(ものを作る、実践する)- 理論だけでなく実際に行動することを指します。
  • 「throw at you」(直面させる、与える)- 困難な状況や課題が訪れることを表します。

shadow speechのステップバイステップガイド

この動画は専門用語が多く、スピーチが速いため、shadow speakをする際は少し工夫が必要です。まず、動画を1分ずつ区切り、その部分を何度も聴きましょう。教授の発音のリズムとイントネーションに注目し、「getting rolling」のような口語的なフレーズの発音を真似ます。次に、自分で同じ内容を話してみて、録音して比較しましょう。「agentic AI」のような専門用語は、正確な発音を覚えるために、単語ごとに分解して練習します。最後に、全体を一気にshadowingして、自然な流れを身につけましょう。この方法で、英語の発音を良くするだけでなく、専門的な会話もスムーズに理解できるようになります。動画で英語学習をする際は、忍耐強く繰り返すことが大切です。

この動画の文法

話し手がよく使っている文型を、動画の実際の表現とともに紹介します。

文型動画での表現
現在完了進行形 have/has been + -ing — 以前に始まり今も続いている動作I've been teaching · I've been trying · I've been walking
現在完了形 have/has + 過去分詞 — 過去の出来事が今も関係しているhave not failed · I've only found · we've had
受動態 be + 過去分詞 — 誰がするかより、何が起きるかに焦点を当てるis based · is timed · is proctored

シャドーイングとは?英語上達に効果的な理由

シャドーイング(Shadowing)は、もともとプロの通訳者養成プログラムで開発された言語学習法で、多言語習得者として知られるDr. Alexander Arguelles によって広く普及されました。方法はシンプルですが非常に効果的:ネイティブスピーカーの英語を聞きながら、1〜2秒の遅延で声に出してすぐに繰り返す——まるで「影(shadow)」のように話者を追いかけます。文法ドリルや受動的なリスニングと異なり、シャドーイングは脳と口の筋肉が同時にリアルタイムで英語を処理・再現することを強制します。研究により、発音精度、抑揚、リズム、連音、リスニング力、そして会話の流暢さが大幅に向上することが確認されています。IELTSスピーキング対策や自然な英語コミュニケーションを目指す方に特におすすめです。

シャドーイングのやり方: ステップ別の完全ガイドを読む →