यो पाठले यस कोर्सका कोड नमूनाहरू कसरी चलाउने भनेर समेट्नेछ।
रिपो क्लोन गर्नुभन्दा पहिले, सेटअपमा सहयोग, कोर्स सम्बन्धी कुनै प्रश्नहरू, वा अन्य सिक्नेहरूसँग जडान हुनको लागि AI एजेन्टहरू प्रारम्भकर्ताका लागि Discord च्यानल मा सहभागी हुनुहोस्।
सुरु गर्नको लागि, कृपया GitHub रिपोजिटरी क्लोन वा फोर्क गर्नुहोस्। यसले कोर्स सामग्रीको आफ्नो संस्करण बनाउँछ जसले गर्दा तपाईंले कोड चलाउन, परीक्षण गर्न, र परिमार्जन गर्न सक्नुहुन्छ!
This can be done by clicking the link to रिपो फोर्क गर्नुहोस्
You should now have your own forked version of this course in the following link:

पूर्ण रिपोजिटरी पूरा इतिहास र सबै फाइलहरू डाउनलोड गर्दा ठूलो (~3 GB) हुनसक्छ। यदि तपाईं केवल कार्यशाला मा सहभागी हुनुहुन्छ वा केवल केही पाठ फोल्डरहरू चाहिएको छ भने, एक हल्का क्लोन (वा स्पार्स क्लोन) ले इतिहास छोट्याएर र/वा ब्लबहरू छोडेर त्यहाँको अधिकांश डाउनलोडबाट बचाउँछ।
Replace <your-username> in the below commands with your fork URL (or the upstream URL if you prefer).
To clone only the latest commit history (small download):
git clone --depth 1 https://github.com/<your-username>/ai-agents-for-beginners.git
To clone a specific branch:
git clone --depth 1 --branch <branch-name> https://github.com/<your-username>/ai-agents-for-beginners.git
This uses partial clone and sparse-checkout (requires Git 2.25+ and recommended modern Git with partial clone support):
git clone --depth 1 --filter=blob:none --sparse https://github.com/<your-username>/ai-agents-for-beginners.git
Traverse into the repo folder:
cd ai-agents-for-beginners
Then specify which folders you want (example below shows two folders):
git sparse-checkout set 00-course-setup 01-intro-to-ai-agents
After cloning and verifying the files, if you only need files and want to free space (no git history), please delete the repository metadata (💀irreversible — you will lose all Git functionality: no commits, pulls, pushes, or history access).
# zsh/bash
rm -rf .git
# पावरशेल
Remove-Item -Recurse -Force .git
यस रिपोको लागि GitHub UI मार्फत नयाँ Codespace सिर्जना गर्नुहोस्।
.git हटाउनुहोस् (माथि मेट्ने आदेशहरु हेर्नुहोस्)।यस कोर्सले Jupyter Notebook हरूको श्रृंखला प्रदान गर्दछ जसलाई चलाएर तपाईं AI एजेन्टहरू निर्माण गर्ने व्यावहारिक अनुभव प्राप्त गर्न सक्नुहुन्छ।
The code samples use either:
Requires GitHub Account - Free:
1) Semantic Kernel Agent Framework + GitHub Models Marketplace. (फाइल: semantic-kernel.ipynb) 2) AutoGen Framework + GitHub Models Marketplace. (फाइल: autogen.ipynb)
Azure सदस्यता आवश्यक: 3) Azure AI Foundry + Azure AI Agent Service. (फाइल: azureaiagent.ipynb)
We encourage you to try out all three types of examples to see which one works best for you.
Whichever option you choose, it will determine which setup steps you need to follow below:
NOTE: यदि तपाईंले Python3.12 स्थापना गर्नुभएको छैन भने, कृपया यसलाई स्थापना गर्नुहोस्। त्यसपछि requirements.txt फाइलबाट सहि संस्करणहरू स्थापना हुन सुनिश्चित गर्न python3.12 प्रयोग गरी आफ्नो venv सिर्जना गर्नुहोस्।
उदाहरण
Create Python venv directory:
python -m venv venv
त्यसपछि venv वातावरण सक्रिय गर्नुहोस्:
# zsh/bash
source venv/bin/activate
# Command Prompt for Windows
venv\Scripts\activate
.NET 10+: .NET प्रयोग गर्ने नमूना कोडहरूको लागि, कृपया .NET 10 SDK वा पछि संस्करण स्थापना गर्नुहोस्। त्यसपछि, आफ्नो इन्स्टल गरिएको .NET SDK संस्करण जाँच गर्नुहोस्:
dotnet --list-sdks
We have included a requirements.txt file in the root of this repository that contains all the required Python packages to run the code samples.
You can install them by running the following command in your terminal at the root of the repository:
pip install -r requirements.txt
We recommend creating a Python virtual environment to avoid any conflicts and issues.
Make sure that you are using the right version of Python in VSCode.
यो कोर्सले GitHub Models Marketplace प्रयोग गर्दछ, जसले तपाईंले AI एजेन्टहरू निर्माण गर्न प्रयोग गर्ने ठूलो भाषा मोडेलहरू (LLMs) मा निःशुल्क पहुँच प्रदान गर्छ।
GitHub Models प्रयोग गर्न, तपाईंले GitHub Personal Access Token सिर्जना गर्न आवश्यक हुनेछ।
यसलाई तपाईंको GitHub खातामा रहेको Personal Access Tokens सेटिङहरू मा गएर गर्न सकिन्छ।
कृपया टोकन बनाउँदा न्यूनतम अधिकारको सिद्धान्त पालना गर्नुहोस्। यसको अर्थ तपाइँले टोकनलाई केवल यस कोर्सका कोड नमूनाहरू चलाउन आवश्यक अधिकार मात्र दिनु पर्ने हुन्छ।
Developer settings मा गएर आफ्नो स्क्रिनको बाँया पट्टीमा रहेको Fine-grained tokens विकल्प चयन गर्नुहोस्।

त्यसपछि Generate new token चयन गर्नुहोस्।

Enter a descriptive name for your token that reflects its purpose, making it easy to identify later.
🔐 Token Duration Recommendation
Recommended duration: 30 days For a more secure posture, you can opt for a shorter period—such as 7 days 🛡️ It’s a great way to set a personal target and complete the course while your learning momentum is high 🚀.

Limit the token’s scope to your fork of this repository.

Restrict the token’s permissions: Under Permissions, click Account tab, and click the “+ Add permissions” button. A dropdown will appear. Please search for Models and check the box for it.

Verify the permissions required before generating the token. 
Before generating the token, ensure you are ready to store the token in a secure place like a password manager vault, as it will not be shown again after you create it. 
Copy your new token that you have just created. You will now add this to your .env file included in this course.
.env फाइल सिर्जना गर्नुहोस्To create your .env file run the following command in your terminal.
# zsh वा bash
cp .env.example .env
# पावरशेल
Copy-Item .env.example .env
This will copy the example file and create a .env in your directory and where you fill in the values for the environment variables.
With your token copied, open the .env file in your favorite text editor and paste your token into the GITHUB_TOKEN field.

You should now be able to run the code samples of this course.
Azure AI Foundry मा हब र प्रोजेक्ट सिर्जना गर्ने चरणहरू यहाँ फेला पार्नुहोस्: Hub resources overview
Once you have created your project, you will need to retrieve the connection string for your project.
This can be done by going to the Overview page of your project in the Microsoft Foundry portal.

.env फाइल सिर्जना गर्नुहोस्To create your .env file run the following command in your terminal.
# zsh/bash
cp .env.example .env
# पावरशेल
Copy-Item .env.example .env
This will copy the example file and create a .env in your directory and where you fill in the values for the environment variables.
With your token copied, open the .env file in your favorite text editor and paste your token into the PROJECT_ENDPOINT field.
सुरक्षा उत्तम अभ्यासको रूपमा, हामी Microsoft Entra ID मार्फत Azure OpenAI लाई प्रमाणीकृत गर्न कुञ्जीविहीन प्रमाणीकरण प्रयोग गर्नेछौं।
Next, open a terminal and run az login --use-device-code to sign in to your Azure account.
Once you’ve logged in, select your subscription in the terminal.
For the Agentic RAG Lesson - Lesson 5 - there are samples that use Azure Search and Azure OpenAI.
If you want to run these samples, you will need to add the following environment variables to your .env file:
AZURE_SUBSCRIPTION_ID - आफ्नो प्रोजेक्टको Overview पृष्ठमा रहेको Project details हेर्नुहोस्।
AZURE_AI_PROJECT_NAME - आफ्नो प्रोजेक्टको Overview पृष्ठको शीर्षमा हेर्नुहोस्।
AZURE_OPENAI_SERVICE - Overview पृष्ठमा रहेको Included capabilities ट्याबमा Azure OpenAI Service हेर्नुहोस्।
AZURE_OPENAI_RESOURCE_GROUP - Management Center को Overview पृष्ठमा रहेको Project properties मा जानुहोस्।
GLOBAL_LLM_SERVICE - Connected resources अन्तर्गत, Azure AI Services कनेक्सन नाम खोज्नुहोस्। सूचीमा नभएमा, आफ्नो स्रोत समूह अन्तर्गत Azure portal मा AI Services स्रोत नाम जाँच गर्नुहोस्।
AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME - आफ्नो embedding मोडेल (जस्तै, text-embedding-ada-002) चयन गर्नुहोस् र मोडेल विवरणबाट Deployment name नोट गर्नुहोस्।
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME - आफ्नो chat मोडेल (जस्तै, gpt-4o-mini) चयन गर्नुहोस् र मोडेल विवरणबाट Deployment name नोट गर्नुहोस्।
AZURE_OPENAI_ENDPOINT - Azure AI services खोज्नुहोस्, त्यसमा क्लिक गर्नुहोस्, त्यसपछि Resource Management, Keys and Endpoint मा जानुहोस्, “Azure OpenAI endpoints” सम्म स्क्रोल गर्नुहोस्, र “Language APIs” भनिएको एकलाई प्रतिलिपि गर्नुहोस्।
AZURE_OPENAI_API_KEY - सोही स्क्रिनबाट KEY 1 वा KEY 2 प्रतिलिपि गर्नुहोस्।
AZURE_SEARCH_SERVICE_ENDPOINT - आफ्नो Azure AI Search स्रोत खोज्नुहोस्, यसमा क्लिक गर्नुहोस्, र Overview हेर्नुहोस्।
AZURE_SEARCH_API_KEY - त्यसपछि Settings मा जानुहोस् र Keys मा मुख्य वा गौण एडमिन की प्रतिलिपि गर्नुहोस्।
AZURE_OPENAI_API_VERSION - कृपया API version lifecycle पृष्ठको Latest GA API release भाग हेर्नुहोस्।Rather than hardcode your credentials, we’ll use a keyless connection with Azure OpenAI. To do so, we’ll import DefaultAzureCredential and later call the DefaultAzureCredential function to get the credential.
# पाइथन
from azure.identity import DefaultAzureCredential, InteractiveBrowserCredential
यदि तपाईंले यो सेटअप चलाउँदा कुनै समस्या भएमा, हाम्रो Azure AI समुदाय Discord मा आउनुहोस् वा इश्यू सिर्जना गर्नुहोस्।
अब तपाईं यो कोर्सको कोड चलाउन तयार हुनुहुन्छ। AI एजेन्टहरूको संसारबारे थप सिक्न शुभकामना!
AI एजेन्टहरू र एजेन्ट प्रयोगका केसहरूको परिचय
अस्वीकरण: यो दस्तावेज AI अनुवाद सेवा Co-op Translator प्रयोग गरेर अनुवाद गरिएको हो। हामी सहीताको लागि प्रयास गर्छौं भने पनि, कृपया ध्यान दिनुहोस् कि स्वचालित अनुवादमा त्रुटि वा अशुद्धता हुन सक्छ। मूल भाषामा रहेको दस्तावेजलाई आधिकारिक स्रोतको रूपमा मानिनु पर्छ। महत्वपुर्ण जानकारीका लागि पेशेवर मानवीय अनुवाद सिफारिस गरिन्छ। यो अनुवादको प्रयोगबाट उत्पन्न कुनै पनि गलतफहमी वा गलत व्याख्याका लागि हामी जिम्मेवार छैनौं।