This section provides comprehensive Microsoft Agent Framework examples that extend and complement the content from Microsoft's AI Agents for Beginners curriculum. These practical code samples demonstrate how to build intelligent agents using both Python and .NET implementations of the Microsoft Agent Framework.
The examples in this directory are designed to provide hands-on experience with Microsoft Agent Framework, covering fundamental concepts through advanced multi-agent systems. Each lesson includes both Python and .NET code samples to accommodate different development preferences and environments.
Learn the foundational concepts of AI agents and get started with your first Microsoft Agent Framework implementation.
Code Samples:
Dive deeper into the Microsoft Agent Framework architecture and understand different implementation patterns.
Code Samples:
Explore common design patterns and best practices for building robust AI agents with GitHub Models integration.
Code Samples:
- Python:
python-agent-framework-ghmodel-basicagent.ipynb - .NET:
dotnet-agent-framework-ghmodel-basicagent.ipynb
Learn how to enhance your agents with external tools and capabilities using GitHub Models.
Code Samples:
Implement knowledge-enhanced agents using Azure AI Foundry's file search capabilities.
Code Samples:
- Python:
python-agent-framework-aifoundry-file-search.ipynb - .NET:
dotnet-agent-framework-aifoundry-file-search.ipynb
Supporting Files:
document.md- Sample document for RAG demonstrations
Explore advanced planning capabilities and design patterns with GitHub Models integration.
Code Samples:
- Python:
python-agent-framrwork-ghmodel-planningdesign.ipynb - .NET:
dotnet-agent-framrwork-ghmodel-planningdesign.ipynb
Build collaborative multi-agent workflows using GitHub Models for complex problem-solving scenarios.
Code Samples:
- Python:
python-agent-framework-ghmodel-workflow-multi-agents.ipynb - .NET:
dotnet-agent-framework-ghmodel-workflow-multi-agents.ipynb
Coming Soon - Advanced metacognitive capabilities for self-aware agents.
Coming Soon - Best practices for deploying and managing agents in production environments.
Coming Soon - Advanced communication protocols and standards for agent interactions.
Coming Soon - Advanced techniques for context management and optimization.
- Python: Python 3.10 or higher
- .NET: .NET 9.0 or higher
- Visual Studio Code with appropriate extensions
- Azure AI Foundry: For RAG examples and advanced capabilities
- GitHub Models: For GitHub-integrated examples
- Azure OpenAI Service: For certain provider examples
Create a .env file or set environment variables for the examples:
# GitHub Models Configuration
GITHUB_TOKEN=your_github_token
GITHUB_ENDPOINT=https://models.inference.ai.azure.com
GITHUB_MODEL_ID=gpt-4o-mini
# Azure AI Foundry Configuration
FOUNDRY_PROJECT_ENDPOINT=your_foundry_endpoint
FOUNDRY_MODEL_DEPLOYMENT_NAME=your_model_name
# Azure OpenAI Configuration (if needed)
AZURE_OPENAI_ENDPOINT=your_aoai_endpoint
AZURE_OPENAI_API_KEY=your_aoai_key
AZURE_OPENAI_DEPLOYMENT_NAME=your_deployment_name- Choose your preferred language: Python or .NET
- Start with lesson 01: Introduction to AI Agents
- Follow the sequential path: Each lesson builds upon previous concepts
- Experiment with the code: Modify examples to understand the framework better
- Apply learnings: Use the patterns in your own agent projects
Each code sample is provided as a Jupyter notebook (.ipynb) containing:
- Detailed explanations of concepts and implementation
- Step-by-step code with comments and documentation
- Practical examples you can run and modify
- Best practices for Microsoft Agent Framework usage
- Microsoft AI Agents for Beginners - Foundational curriculum
- Microsoft Agent Framework - Official framework repository
- Azure AI Foundry - AI development platform
- GitHub Models - GitHub's AI model marketplace
We welcome contributions to improve these examples:
- Report issues or bugs
- Suggest new examples or improvements
- Submit pull requests with enhancements
- Share your own agent implementations
Ready to build intelligent agents? Start with lesson 01 and begin your Microsoft Agent Framework journey! 🚀