Together with this course, there is a sample
repository up on GitHub that you can access.
It's called Agent Framework Course, and inside it
there will be samples and all the source
code that will be shown in this course
from this point on.
If you wish to discuss something, you can
go to the discussion part, or if you
have some issues, go to the issue part
like normal GitHub.
The URL for the repo is down here,
but also in the resources of this lecture.
Inside, you will see a solution called Agent
Framework Course that have primarily two projects.
If we need in some of the bonus
content to make separate projects on that, I
will put those in as well, because a
repo like this is a living thing that
gets more and more as we go along.
But what I've done is I've put in
all the samples into the different sections that
are in this course, and for example, in
section three, which we are at right now,
we will see something about token usage, so
there will be a token usage sample inside
section three, while section four is all about
chat and so on and so forth.
So you can get the defaults here.
You can configure what defaults you want in
the system, and in this, you can put
in your own credentials using secrets, so you
simply right-click and add the user secrets
to this part, so you can run them.
And for running them, there is the sample
console run.
It's a one-liner inside the programme.cs
of this, where you just go in and
see what sample you wish to run.
So if you want to run the sample
about chat loops, you choose that sample, or
if you want to be shown an interactive
page of what you want to choose, you
simply choose the interactive here, and it will
show you what section we are in, so
in this case, it would be the section
before we dive deeper, and there will be
a sample on token usage.
In chat, that would be about streaming response,
chat and so on.
So you have the option.
You see a number.
You put in that number, and it will
run that sample.
So let's see that in action.
So if I'm here, and I want to
run a sample, say interactive, I can then
run it, and we get this, and I
can say I want to see sample 300,
and it will run sample 300, which you
haven't seen yet, but this is the next
video in this series.
If you want to run them again and
again, we could say, okay, we want the
token usage sample, so we take that, and
it will run that directly instead of asking
for interactive.
That is how you would use it sitting
and trying it out, and if you want
to find the token usage, it's over here,
so we can find it and go through
it in details.
So that's everything there is to using the
sample repo, but again, if there's issues or
discussions, please put them into the GitHub repo.