WEBVTT

1
00:00:00.900 --> 00:00:03.740
Together with this course, there is a sample

2
00:00:03.740 --> 00:00:06.580
repository up on GitHub that you can access.

3
00:00:07.600 --> 00:00:12.540
It's called Agent Framework Course, and inside it

4
00:00:12.540 --> 00:00:15.500
there will be samples and all the source

5
00:00:15.500 --> 00:00:19.520
code that will be shown in this course

6
00:00:19.520 --> 00:00:21.320
from this point on.

7
00:00:21.320 --> 00:00:28.160
If you wish to discuss something, you can

8
00:00:28.160 --> 00:00:30.760
go to the discussion part, or if you

9
00:00:30.760 --> 00:00:32.920
have some issues, go to the issue part

10
00:00:32.920 --> 00:00:34.320
like normal GitHub.

11
00:00:36.720 --> 00:00:39.900
The URL for the repo is down here,

12
00:00:40.120 --> 00:00:42.900
but also in the resources of this lecture.

13
00:00:44.680 --> 00:00:48.620
Inside, you will see a solution called Agent

14
00:00:48.620 --> 00:00:52.940
Framework Course that have primarily two projects.

15
00:00:53.280 --> 00:00:55.300
If we need in some of the bonus

16
00:00:55.300 --> 00:00:58.860
content to make separate projects on that, I

17
00:00:58.860 --> 00:01:01.860
will put those in as well, because a

18
00:01:01.860 --> 00:01:06.960
repo like this is a living thing that

19
00:01:06.960 --> 00:01:09.800
gets more and more as we go along.

20
00:01:10.780 --> 00:01:13.600
But what I've done is I've put in

21
00:01:13.600 --> 00:01:16.480
all the samples into the different sections that

22
00:01:16.480 --> 00:01:19.800
are in this course, and for example, in

23
00:01:19.800 --> 00:01:22.340
section three, which we are at right now,

24
00:01:22.600 --> 00:01:26.040
we will see something about token usage, so

25
00:01:26.040 --> 00:01:28.400
there will be a token usage sample inside

26
00:01:28.400 --> 00:01:31.980
section three, while section four is all about

27
00:01:31.980 --> 00:01:33.680
chat and so on and so forth.

28
00:01:34.060 --> 00:01:37.260
So you can get the defaults here.

29
00:01:38.100 --> 00:01:41.120
You can configure what defaults you want in

30
00:01:41.120 --> 00:01:45.480
the system, and in this, you can put

31
00:01:45.480 --> 00:01:49.700
in your own credentials using secrets, so you

32
00:01:49.700 --> 00:01:52.140
simply right-click and add the user secrets

33
00:01:52.140 --> 00:01:54.240
to this part, so you can run them.

34
00:01:55.140 --> 00:01:57.000
And for running them, there is the sample

35
00:01:57.000 --> 00:01:57.720
console run.

36
00:01:59.800 --> 00:02:03.320
It's a one-liner inside the programme.cs

37
00:02:03.320 --> 00:02:05.820
of this, where you just go in and

38
00:02:05.820 --> 00:02:07.960
see what sample you wish to run.

39
00:02:08.340 --> 00:02:10.520
So if you want to run the sample

40
00:02:10.520 --> 00:02:14.480
about chat loops, you choose that sample, or

41
00:02:14.480 --> 00:02:17.160
if you want to be shown an interactive

42
00:02:17.160 --> 00:02:23.220
page of what you want to choose, you

43
00:02:23.220 --> 00:02:27.340
simply choose the interactive here, and it will

44
00:02:27.340 --> 00:02:33.440
show you what section we are in, so

45
00:02:33.440 --> 00:02:35.240
in this case, it would be the section

46
00:02:35.240 --> 00:02:37.860
before we dive deeper, and there will be

47
00:02:37.860 --> 00:02:40.060
a sample on token usage.

48
00:02:40.920 --> 00:02:43.320
In chat, that would be about streaming response,

49
00:02:43.740 --> 00:02:44.700
chat and so on.

50
00:02:46.020 --> 00:02:47.800
So you have the option.

51
00:02:48.000 --> 00:02:48.960
You see a number.

52
00:02:49.120 --> 00:02:50.600
You put in that number, and it will

53
00:02:50.600 --> 00:02:51.940
run that sample.

54
00:02:54.700 --> 00:02:56.960
So let's see that in action.

55
00:02:57.960 --> 00:03:01.220
So if I'm here, and I want to

56
00:03:01.220 --> 00:03:07.040
run a sample, say interactive, I can then

57
00:03:07.040 --> 00:03:14.780
run it, and we get this, and I

58
00:03:14.780 --> 00:03:16.940
can say I want to see sample 300,

59
00:03:17.600 --> 00:03:21.740
and it will run sample 300, which you

60
00:03:21.740 --> 00:03:23.500
haven't seen yet, but this is the next

61
00:03:23.500 --> 00:03:25.780
video in this series.

62
00:03:28.680 --> 00:03:30.400
If you want to run them again and

63
00:03:30.400 --> 00:03:32.740
again, we could say, okay, we want the

64
00:03:32.740 --> 00:03:36.980
token usage sample, so we take that, and

65
00:03:36.980 --> 00:03:40.700
it will run that directly instead of asking

66
00:03:40.700 --> 00:03:41.540
for interactive.

67
00:03:42.080 --> 00:03:44.840
That is how you would use it sitting

68
00:03:44.840 --> 00:03:48.020
and trying it out, and if you want

69
00:03:48.020 --> 00:03:50.340
to find the token usage, it's over here,

70
00:03:50.580 --> 00:03:54.100
so we can find it and go through

71
00:03:54.100 --> 00:03:55.640
it in details.

72
00:03:57.020 --> 00:04:00.500
So that's everything there is to using the

73
00:04:00.500 --> 00:04:05.040
sample repo, but again, if there's issues or

74
00:04:05.040 --> 00:04:09.500
discussions, please put them into the GitHub repo.
