microsoft/ai-agents-for-beginners
18 Lessons to Get Started Building AI Agents
What is this project?
AI Agents for Beginners is a free, open-source course from Microsoft that teaches you how to build AI agents—software that can perform tasks autonomously using large language models. It’s designed for people who are new to AI agents and want a hands-on, structured way to learn.
What does it include?
The course has 18 lessons, each covering a different topic. Lessons include:
- A written explanation (in the lesson’s README)
- A short video
- Python code samples that use Microsoft’s Agent Framework and Foundry Agent Service
- Links to extra resources for deeper learning
Topics range from the basics (intro to AI agents, agentic frameworks) to advanced patterns (tool use, agentic RAG, planning, multi-agent systems, metacognition) and practical concerns (trust, production deployment, security, local agents, memory, and more).
Who is it for?
It’s for beginners who want to start building AI agents. If you’ve never worked with generative AI before, the README suggests first taking Microsoft’s Generative AI for Beginners course (21 lessons).
What technologies are used?
The code examples rely on:
- Microsoft Agent Framework (MAF) – a framework for building agents
- Microsoft Foundry Agent Service V2 – a cloud service for running agents (requires an Azure account)
Some samples also support OpenAI‑compatible providers like MiniMax, which offers large‑context models.
How do I get started?
- Fork the repository to your own GitHub account.
- Follow the Course Setup instructions (in the
00-course-setupfolder) to configure your environment. - Run the code examples as you go through the lessons.
If you get stuck, you can join the Microsoft Foundry Discord channel for help.
Languages
The course is translated into 50+ languages (Arabic, Chinese, French, German, Hindi, Japanese, Spanish, and many more). Translations are maintained with a tool called Co‑op Translator.
Community and contributions
- You can star and fork the repo.
- Contributions are welcome—you can report issues or submit pull requests.
- The project follows the Microsoft Open Source Code of Conduct and requires a Contributor License Agreement (CLA) for contributions.
Other courses
The README also links to other Microsoft beginner courses (e.g., Generative AI, LangChain, Edge AI, MCP, etc.) if you want to explore related topics.
Related
- Project
- Project
- Project
- Project