agentleFS
MicrosoftKnown publishermicrosoft/ai-agents-for-beginners/translations/pcm/AGENTS.md

ai-agents-for-beginners / pcm

AGENTS.md76k starsChanged 5 months agoMITView on GitHub

Dis repo contain "AI Agents for Beginners" - na comprehensive educational course wey dey teach everything wey person need to build AI Agents. Di course get 18 lessons (dem number 00-18) wey cover fundamentals, design patterns, frameworks, production deployment, local/on-device agents, plus security for AI agents. Key Technologies: - Python 3.12+ - Jupyter Notebooks for interactive learning - AI Frameworks: Microsoft Agent Framework (MAF) - Azure AI Services: Microsoft Foundry, Microsoft Foundry Agent Service V2 Architecture: - Lesson-based structure (00-15+…

  • Reads credentials
  • Installs packages

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about microsoft/ai-agents-for-beginners

The biggest 5 of 88 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 88

Talked about on GitHub, Bluesky and Hacker News (88 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 35

30 more on Bluesky

On Hacker News · 3

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

30 rules. About 0 are common, 23 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈23

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Every lesson get multiple Jupyter notebooks for different frameworks:

    line 69
  2. Distinctive:

    Code Style: Follow standard Python PEP 8 conventions

    line 130
  3. Distinctive:

    Notebooks: Use clear markdown cells to explain concepts

    line 131
  4. Distinctive:

    Add output examples for notebooks reference

    line 137
  5. Distinctive:

    Use clear variable names wey match lesson concepts

    line 138
  6. Distinctive:

    Keep notebook execution order linear (cell 1 → 2 → 3...)

    line 139
  7. Distinctive:

    Run notebooks locally or for GitHub Codespaces

    line 174
  8. Distinctive:

    Run all affected notebooks full

    line 182
  9. Distinctive:

    Verify all cells run without error

    line 183
  10. Distinctive:

    Check say outputs correct

    line 184
  11. Distinctive:

    Update README.md if you add new concepts

    line 187
  12. Distinctive:

    Add comments inside notebooks for complex code

    line 188
  13. Distinctive:

    Make sure markdown cells explain wetin dem dey do

    line 189
  14. Very specific:

    No commit .env files (use .env.example)

    line 192
  15. Very specific:

    No commit venv/ or __pycache__/ directories

    line 193
  16. Distinctive:

    Keep notebook outputs when dem dey show concepts

    line 194
  17. Very specific:

    Remove temporary files and backup notebooks (*-backup.ipynb)

    line 195
  18. Distinctive:

    Follow di code patterns wey dey this repository

    line 209
  19. Distinctive:

    Keep consistency with other lessons

    line 210
  20. Distinctive:

    Make sure you dey use Python 3.12+

    line 217
  21. Very specific:

    Use python3 -m venv to specify Python version clearly

    line 219
  22. Very specific:

    Always create .env from .env.example

    line 222
  23. Very specific:

    No commit .env file (e dey .gitignore)

    line 223
  24. Very specific:

    Use az login to sign in for keyless Entra ID authentication

    line 224
  25. Distinctive:

    Use fresh virtual environment

    line 227
  26. Distinctive:

    Make sure say your Azure OpenAI model deployment support Responses API

    line 234
  27. Distinctive:

    00-course-setup: - Start here to setup environment

    line 239
  28. Distinctive:

    Check lesson README files for specific guidance

    line 254
  29. Distinctive:

    Check main README.md for course overview

    line 255
  30. Distinctive:

    Every lesson follow consistent pattern:

    line 281

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Project Overview

Dis repo contain "AI Agents for Beginners" - na comprehensive educational course wey dey teach everything wey person need to build AI Agents. Di course get 18 lessons (dem number 00-18) wey cover fundamentals, design patterns, frameworks, production deployment, local/on-device agents, plus security for AI agents.

Key Technologies:

  • Python 3.12+
  • Jupyter Notebooks for interactive learning
  • AI Frameworks: Microsoft Agent Framework (MAF)
  • Azure AI Services: Microsoft Foundry, Microsoft Foundry Agent Service V2

Architecture:

  • Lesson-based structure (00-15+ directories)
  • Each lesson get: README documentation, code samples (Jupyter notebooks), and images
  • Multi-language support via automated translation system
  • One Python notebook per lesson wey dey use Microsoft Agent Framework

Setup Commands

Prerequisites

  • Python 3.12 or higher
  • Azure subscription (for Microsoft Foundry)
  • Azure CLI installed and authenticated (az login)

Initial Setup

  1. Clone or fork di repository:
    gh repo fork microsoft/ai-agents-for-beginners --clone
    # OR
    git clone https://github.com/microsoft/ai-agents-for-beginners.git
    cd ai-agents-for-beginners
  2. Create and activate Python virtual environment:
    python3 -m venv venv
    source venv/bin/activate  # For Windows: venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Set up environment variables:
    cp .env.example .env
    # Change .env wit your API keys and endpoints

Required Environment Variables

For Microsoft Foundry (Required):

  • AZURE_AI_PROJECT_ENDPOINT - Microsoft Foundry project endpoint
  • AZURE_AI_MODEL_DEPLOYMENT_NAME - Model deployment name (e.g., gpt-5-mini)

For Azure AI Search (Lesson 05 - RAG):

  • AZURE_SEARCH_SERVICE_ENDPOINT - Azure AI Search endpoint
  • AZURE_SEARCH_API_KEY - Azure AI Search API key

Authentication: Run az login before you run notebooks (e dey use AzureCliCredential).

Development Workflow

Running Jupyter Notebooks

Every lesson get multiple Jupyter notebooks for different frameworks:

  1. Start Jupyter:
    jupyter notebook
  2. Navigate to di lesson directory (e.g., 01-intro-to-ai-agents/code_samples/)
  3. Open and run notebooks:
    • *-python-agent-framework.ipynb - Using Microsoft Agent Framework (Python)
    • *-dotnet-agent-framework.ipynb - Using Microsoft Agent Framework (.NET)

Working with Microsoft Agent Framework

Microsoft Agent Framework + Microsoft Foundry:

  • Need Azure subscription
  • Dem dey use FoundryChatClient for Agent Service V2 (agents dey visible for Foundry portal)
  • Production-ready with built-in observability
  • File pattern: *-python-agent-framework.ipynb

Testing Instructions

Dis na educational repository wey get example code instead of production code wey get automated tests. To check your setup and changes:

Manual Testing

  1. Test Python environment:
    python --version  # E suppose be 3.12+
    pip list | grep -E "(agent-framework|azure-ai|azure-identity)"
  2. Test notebook execution:
    # Change notebook go script and run am (test di imports)
    jupyter nbconvert --to script <lesson-folder>/code_samples/<notebook>.ipynb --stdout | python
  3. Verify environment variables:
    python -c "import os; from dotenv import load_dotenv; load_dotenv(); print('✓ AZURE_AI_PROJECT_ENDPOINT' if os.getenv('AZURE_AI_PROJECT_ENDPOINT') else '✗ AZURE_AI_PROJECT_ENDPOINT missing')"

Running Individual Notebooks

Open notebooks for Jupyter and run cells one by one. Every notebook get:

  • Import statements
  • Configuration loading
  • Example agent implementations
  • Expected outputs for markdown cells

Smoke-Testing Deployed Agents

For lessons wey dem deploy agent as Microsoft Foundry hosted agent (01, 04, 05, 16), di repo get smoke-test catalogs under tests/ wey .github/workflows/smoke-test.yml workflow dey run through AI Smoke Test action. Dem be lightweight post-deploy gate (agent fit reach and e dey follow basic prompt expectations?), e dey complement evaluation pipeline for Lessons 10 and 16. Check tests/README.md for catalog-to-lesson-to-agent mapping. Lesson 17 dey run locally with Foundry Local and e no get hosted endpoint, so e dey validated by running e notebook direct.

Code Style

Python Conventions

  • Python Version: 3.12+
  • Code Style: Follow standard Python PEP 8 conventions
  • Notebooks: Use clear markdown cells to explain concepts
  • Imports: Group by standard library, third-party, local imports

Jupyter Notebook Conventions

  • Include descriptive markdown cells before code cells
  • Add output examples for notebooks reference
  • Use clear variable names wey match lesson concepts
  • Keep notebook execution order linear (cell 1 → 2 → 3...)

File Organization

<lesson-number>-<lesson-name>/
├── README.md                     # Lesson documentation
├── code_samples/
│   ├── <number>-python-agent-framework.ipynb
│   └── <number>-dotnet-agent-framework.ipynb  (optional)
└── images/
    └── *.png

Build and Deployment

Building Documentation

Dis repository dey use Markdown for documentation:

  • README.md files dey for each lesson folder
  • Main README.md dey for repository root
  • Automated translation system via GitHub Actions

CI/CD Pipeline

E dey for .github/workflows/:

  1. co-op-translator.yml - Automatic translation to 50+ languages
  2. welcome-issue.yml - Welcomes new issue creators
  3. welcome-pr.yml - Welcomes new pull request contributors

Deployment

Dis na educational repository - no deployment process. Users go:

  1. Fork or clone di repository
  2. Run notebooks locally or for GitHub Codespaces
  3. Learn by modifying and experimenting with examples

Pull Request Guidelines

Before Submitting

  1. Test your changes:
    • Run all affected notebooks full
    • Verify all cells run without error
    • Check say outputs correct
  2. Documentation updates:
    • Update README.md if you add new concepts
    • Add comments inside notebooks for complex code
    • Make sure markdown cells explain wetin dem dey do
  3. File changes:
    • No commit .env files (use .env.example)
    • No commit venv/ or __pycache__/ directories
    • Keep notebook outputs when dem dey show concepts
    • Remove temporary files and backup notebooks (*-backup.ipynb)

PR Title Format

Use descriptive titles:

  • [Lesson-XX] Add new example for <concept>
  • [Fix] Correct typo for lesson-XX README
  • [Update] Improve code sample for lesson-XX
  • [Docs] Update setup instructions

Required Checks

  • Notebooks suppose run without errors
  • README files suppose clear and accurate
  • Follow di code patterns wey dey this repository
  • Keep consistency with other lessons

Additional Notes

Common Gotchas

  1. Python version mismatch:
    • Make sure you dey use Python 3.12+
    • Some packages no go work wit old versions
    • Use python3 -m venv to specify Python version clearly
  2. Environment variables:
    • Always create .env from .env.example
    • No commit .env file (e dey .gitignore)
    • Use az login to sign in for keyless Entra ID authentication
  3. Package conflicts:
    • Use fresh virtual environment
    • Install from requirements.txt instead of individual packages
    • Some notebooks fit need extra packages wey dem talk for markdown cells
  4. Azure services:
    • Azure AI services need active subscription
    • Some features dey region-specific
    • Make sure say your Azure OpenAI model deployment support Responses API

Learning Path

How e go better if you dey follow lessons:

  1. 00-course-setup - Start here to setup environment
  2. 01-intro-to-ai-agents - Understand AI agent basics
  3. 02-explore-agentic-frameworks - Learn different frameworks
  4. 03-agentic-design-patterns - Core design patterns
  5. Continue through di lessons in order

Framework Selection

Choose framework based on wetin you want achieve:

  • All lessons: Microsoft Agent Framework (MAF) wit FoundryChatClient
  • Agents register server-side inside Microsoft Foundry Agent Service V2 and dem dey visible for Foundry portal

Getting Help

  • Join the Microsoft Foundry Community Discord
  • Check lesson README files for specific guidance
  • Check main README.md for course overview
  • Refer to Course Setup for detailed setup instructions

Contributing

Dis na open educational project. Contributions dey welcome:

  • Improve code examples
  • Fix typos or errors
  • Add clarifying comments
  • Suggest new lesson topics
  • Translate to other languages

See GitHub Issues for wetin dem need now.

Project-Specific Context

Multi-Language Support

Dis repository dey use automated translation system:

  • 50+ languages supported
  • Translations dey for /translations/<lang-code>/ directories
  • GitHub Actions workflow dey handle translation updates
  • Source files na English for repository root

Lesson Structure

Every lesson follow consistent pattern:

  1. Video thumbnail wit link
  2. Written lesson content (README.md)
  3. Code samples for multiple frameworks
  4. Learning objectives and prerequisites
  5. Extra learning resources wey get link

Code Sample Naming

Format: <lesson-number>-python-agent-framework.ipynb

  • 01-python-agent-framework.ipynb - Lesson 1, MAF Python
  • 14-sequential.ipynb - Lesson 14, MAF advanced patterns
  • 16-python-agent-framework.ipynb - Lesson 16, production customer-support agent
  • 17-local-agent-foundry-local.ipynb - Lesson 17, local agent with Foundry Local + Qwen

Special Directories

  • translated_images/ - Localized images for translations
  • images/ - Original images for English content
  • .devcontainer/ - VS Code development container configuration
  • .github/ - GitHub Actions workflows and templates

Dependencies

Key packages from requirements.txt:

  • agent-framework - Microsoft Agent Framework
  • a2a-sdk - Agent-to-Agent protocol support
  • azure-ai-inference, azure-ai-projects - Azure AI services
  • azure-identity - Azure authentication (AzureCliCredential)
  • azure-search-documents - Azure AI Search integration
  • mcp[cli] - Model Context Protocol support

<!-- CO-OP TRANSLATOR DISCLAIMER START -->

Disclaimer: Dis document don translate wit AI translation service Co-op Translator. Even tho we dey try make am correct, abeg make you know say automated translation fit get errors or mistakes. Di original document for dia own language na im be di correct source. For important info, make person wey sabi human translation do am. We no go responsible for any misunderstanding or wrong understanding wey fit happen because of dis translation.

<!-- CO-OP TRANSLATOR DISCLAIMER END -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.