WEBVTT

00:00:00.099 --> 00:00:04.038
Another thing you can control here
is the mode of this chat.

00:00:04.639 --> 00:00:07.819
By default,
it's typically agent these days.

00:00:07.839 --> 00:00:11.800
But at the point of time where I'm
recording this, there also

00:00:11.980 --> 00:00:15.839
plan, background, and ask. Now, ask
is the most

00:00:15.899 --> 00:00:18.880
straightforward mode here.
If you switch to that...

00:00:18.879 --> 00:00:22.860
And by the way,
you can also switch by pressing shift tab

00:00:23.399 --> 00:00:26.840
If you switch to ask mode,
it's really just a chat that

00:00:26.979 --> 00:00:30.920
answers questions. So if I ask,
"What does the

00:00:31.040 --> 00:00:34.479
code in this demo.py file do?"

00:00:35.059 --> 00:00:38.620
It'll answer this.
And it'll know about this file because it

00:00:38.700 --> 00:00:42.259
project, so it can find this file,
especially if you have the file open.

00:00:42.259 --> 00:00:46.180
It typically has a lot of knowledge about
that anyways, and it will then try

00:00:46.220 --> 00:00:49.880
to answer your question. So in my case,
it describes what the different functions

00:00:49.919 --> 00:00:53.459
in this file do, and it suggests
that I open this in

00:00:53.559 --> 00:00:57.299
agent window, which I don't wanna do here.
So that's the ask mode.

00:00:57.299 --> 00:00:59.520
You can ask questions about your code.

00:00:59.540 --> 00:01:02.819
You can also have discussions about your
code and how you could potentially improve

00:01:02.880 --> 00:01:06.219
it. So I could ask,
"How could I improve this

00:01:06.340 --> 00:01:10.019
code?" And it won't make any changes,
but it'll answer this

00:01:10.099 --> 00:01:14.040
question.
It'll first do some internal thinking

00:01:14.080 --> 00:01:18.059
such a smart model, such a brain model,
a deep think model selected, and

00:01:18.099 --> 00:01:21.799
then it'll give me an answer.
And here it suggests, uh,

00:01:22.220 --> 00:01:25.879
that I might wanna add error handling,
type hints, and it even gives me an

00:01:25.900 --> 00:01:29.339
improved version.
But it doesn't apply that here, it just

00:01:29.419 --> 00:01:33.059
suggests it here. Now,
if you want to use that

00:01:33.079 --> 00:01:36.579
suggestion, you can always, of course,
copy it though, and then

00:01:36.639 --> 00:01:39.359
manually replace your code with it.

00:01:39.480 --> 00:01:42.279
I'll not do that here though,
but you could do that.

00:01:42.299 --> 00:01:45.979
You also got some controls down here to,
for example, copy the

00:01:46.000 --> 00:01:49.539
entire chat here, rate it, or also

00:01:49.580 --> 00:01:52.999
duplicate it and so on.
So that's the ask mode.

00:01:53.019 --> 00:01:56.939
It's a nice mode,
but most of the time you'll probably use

00:01:57.000 --> 00:01:59.720
mode instead.
