Dis lesson go show how you fit run di code samples wey dey dis course.
Before you start to clone your repo, join di AI Agents For Beginners Discord channel to get help for setup, ask any question about di course, or connect wit other learners.
To start, abeg clone or fork di GitHub Repository. Dis go make your own version of di course material so you fit run, test, and adjust di code!
You fit do am by clicking di link to fork di repo
You suppose don get your own forked version of dis course for di following link:

Di full repository fit big (~3 GB) if you download di full history and all files. If na only workshop you dey attend or you need just few lesson folders, shallow clone (or sparse clone) go help you avoid di plenty download by cutting history and/or skipping blobs.
Replace <your-username> for di commands below wit your fork URL (or di upstream URL if you prefer).
To clone only di latest commit history (small download):
git clone --depth 1 https://github.com/<your-username>/ai-agents-for-beginners.git
To clone one specific branch:
git clone --depth 1 --branch <branch-name> https://github.com/<your-username>/ai-agents-for-beginners.git
Dis one dey use partial clone and sparse-checkout (you need Git 2.25+ and modern Git wey support partial clone):
git clone --depth 1 --filter=blob:none --sparse https://github.com/<your-username>/ai-agents-for-beginners.git
Enter di repo folder:
cd ai-agents-for-beginners
Then choose di folders wey you want (example below show two folders):
git sparse-checkout set 00-course-setup 01-intro-to-ai-agents
After you don clone and confirm di files, if na only files you need and you wan free space (no git history), abeg delete di repository metadata (💀irreversible — you go lose all Git functionality: no commits, pulls, pushes, or history access).
# zsh/bash
rm -rf .git
# PowerShell
Remove-Item -Recurse -Force .git
Create new Codespace for dis repo through di GitHub UI.
Dis course get series of Jupyter Notebooks wey you fit run to get hands-on experience to build AI Agents.
Di code samples dey use either:
Requires GitHub Account - Free:
1) Semantic Kernel Agent Framework + GitHub Models Marketplace. Labelled as (semantic-kernel.ipynb) 2) AutoGen Framework + GitHub Models Marketplace. Labeled as (autogen.ipynb)
Requires Azure Subscription: 3) Azure AI Foundry + Azure AI Agent Service. Labelled as (azureaiagent.ipynb)
We dey encourage you to try all three types of examples to see which one go work best for you.
Whichever option you choose, e go determine di setup steps wey you need follow below:
NOTE: If you no get Python3.12 installed, make sure say you install am. Then create your venv using python3.12 to make sure di correct versions dey installed from di requirements.txt file.
Example
Create Python venv directory:
python -m venv venv
Then activate venv environment for:
# zsh/bash
source venv/bin/activate
# Command Prompt for Windows
venv\Scripts\activate
.NET 10+: For di sample codes wey dey use .NET, make sure say you install .NET 10 SDK or later. Then, check di version of di .NET SDK wey you don install:
dotnet --list-sdks
We don include one requirements.txt file for di root of dis repository wey get all di Python packages wey you need to run di code samples.
You fit install dem by running di command below for your terminal for di root of di repository:
pip install -r requirements.txt
We dey recommend say you create Python virtual environment to avoid any wahala or issues.
Make sure say you dey use di correct version of Python for VSCode.
Dis course dey use di GitHub Models Marketplace, wey dey give free access to Large Language Models (LLMs) wey you go use to build AI Agents.
To use di GitHub Models, you go need to create GitHub Personal Access Token.
You fit do am by going to your Personal Access Tokens settings for your GitHub Account.
Abeg follow di Principle of Least Privilege when you dey create your token. Dis mean say you suppose only give di token di permissions wey e need to run di code samples for dis course.
Select di Fine-grained tokens option for di left side of your screen by going to di Developer settings

Then select Generate new token.

Enter one name wey describe di token purpose well, so e go easy to identify later.
🔐 Token Duration Recommendation
Recommended duration: 30 days If you wan make am more secure, you fit choose shorter time—like 7 days 🛡️ E go help you set personal target and finish di course while your learning dey strong 🚀.

Limit di token scope to your fork of dis repository.

Restrict di token permissions: Under Permissions, click Account tab, and click di “+ Add permissions” button. Dropdown go show. Abeg search for Models and check di box for am.

Confirm di permissions wey you need before you generate di token. 
Before you generate di token, make sure say you ready to store di token for safe place like password manager vault, because e no go show again after you create am. 
Copy di new token wey you don create. You go now add am to your .env file wey dey dis course.
.env FileTo create your .env file, run di command below for your terminal.
# zsh/bash
cp .env.example .env
# PowerShell
Copy-Item .env.example .env
Dis go copy di example file and create .env for your directory where you go fill di values for di environment variables.
With your token wey you don copy, open di .env file for your favorite text editor and paste di token inside di GITHUB_TOKEN field.

You suppose fit run di code samples for dis course now.
Follow di steps to create hub and project for Azure AI Foundry wey dey here: Hub resources overview
After you don create your project, you go need to get di connection string for your project.
You fit do am by going to di Overview page of your project for di Azure AI Foundry portal.

.env FileTo create your .env file, run di command below for your terminal.
# zsh/bash
cp .env.example .env
# PowerShell
Copy-Item .env.example .env
Dis go copy di example file and create .env for your directory where you go fill di values for di environment variables.
With your token wey you don copy, open di .env file for your favorite text editor and paste di token inside di PROJECT_ENDPOINT field.
As security best practice, we go use keyless authentication to authenticate to Azure OpenAI wit Microsoft Entra ID.
Next, open terminal and run az login --use-device-code to sign in to your Azure account.
After you don log in, select your subscription for di terminal.
For di Agentic RAG Lesson - Lesson 5 - some samples dey wey dey use Azure Search and Azure OpenAI.
If you wan run dis samples, you go need to add di following environment variables to your .env file:
AZURE_SUBSCRIPTION_ID - Check Project details for di Overview page of your project.
AZURE_AI_PROJECT_NAME - Look di top of di Overview page for your project.
AZURE_OPENAI_SERVICE - Find am for di Included capabilities tab for Azure OpenAI Service for di Overview page.
AZURE_OPENAI_RESOURCE_GROUP - Go Project properties for di Overview page of di Management Center.
GLOBAL_LLM_SERVICE - Under Connected resources, find di Azure AI Services connection name. If e no dey listed, check di Azure portal under your resource group for di AI Services resource name.
AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME - Select your embedding model (e.g., text-embedding-ada-002) and note di Deployment name from di model details.
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME - Select your chat model (e.g., gpt-4o-mini) and note di Deployment name from di model details.
AZURE_OPENAI_ENDPOINT - Look for Azure AI services, click am, then go Resource Management, Keys and Endpoint, scroll down to “Azure OpenAI endpoints”, and copy di one wey say “Language APIs”.
AZURE_OPENAI_API_KEY - From di same screen, copy KEY 1 or KEY 2.
AZURE_SEARCH_SERVICE_ENDPOINT - Find your Azure AI Search resource, click am, and see Overview.
AZURE_SEARCH_API_KEY - Then go Settings and then Keys to copy di primary or secondary admin key.
AZURE_OPENAI_API_VERSION - Visit di API version lifecycle page under Latest GA API release.Instead of hardcode your credentials, we go use keyless connection wit Azure OpenAI. To do am, we go import DefaultAzureCredential and later call di DefaultAzureCredential function to get di credential.
# Python
from azure.identity import DefaultAzureCredential, InteractiveBrowserCredential
If you get any wahala to run dis setup, enter our Azure AI Community Discord or create one issue.
You don ready now to run di code for dis course. Enjoy as you dey learn more about di world of AI Agents!
Introduction to AI Agents and Agent Use Cases
Disclaimer:
Dis dokyument don use AI transle-shon service Co-op Translator do di transle-shon. Even as we dey try make am accurate, abeg make you sabi say transle-shon wey machine do fit get mistake or no dey correct well. Di original dokyument for im native language na di one wey you go take as di correct source. For important mata, e good make you use professional human transle-shon. We no go fit take blame for any misunderstanding or wrong interpretation wey fit happen because you use dis transle-shon.