Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Agent Framework Samples - showcasing ways in which agent framework can be utilized.
Fetched from the repository for this visit.
A comprehensive hands-on guide to building intelligent agents using the Microsoft Agent Framework. This repository contains practical examples, tutorials, and code samples that demonstrate how to create powerful AI agents using both Python and .NET implementations.
This repository provides step-by-step tutorials and real-world examples covering:
⚠️ Important Notice: Microsoft Agent Framework has officially released v1.0 (2026-04-02). You can use either the released version or the build-from-source version to complete the examples, depending on your needs.
📌 Additional Notes:
- The examples in this repository are primarily based on GitHub Models and Microsoft Foundry. You can access GitHub Models directly at https://gh.io/models
- Microsoft Foundry Agent Service uses the V2 version. V2 is GA now
Python:
pip install agent-framework --pre
.NET:
dotnet add package Microsoft.Agents.AI
If you want the latest features, we recommend building from source.
Python:
pip install -r ./Installation/requirement.txt -U
.NET:
git clone https://github.com/microsoft/agent-framework.git
cd agent-framework/dotnet
dotnet build agent-framework-dotnet.slnx
If you're running on Windows ARM64, you may need to configure OpenSSL for certain dependencies:
git config --global core.longpaths true
winget install ShiningLight.OpenSSL.Dev
$env:OPENSSL_DIR="C:\Program Files\OpenSSL-Win64-ARM"
$env:OPENSSL_LIB_DIR="C:\Program Files\OpenSSL-Win64-ARM\lib\VC\arm64\MT"
$env:OPENSSL_STATIC="1"
Create a .env file in the root directory with your configurations:
GITHUB_TOKEN="Your GitHub Models Token"
GITHUB_ENDPOINT="Your GitHub Models Endpoint"
GITHUB_MODEL_ID="Your GitHub Model ID"
AZURE_OPENAI_ENDPOINT="Your Azure OpenAI Endpoint"
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME ="Your Azure OpenAI Model Deployment Name"
FOUNDRYLOCAL_ENDPOINT="Your Foundry Local Endpoint http://localhost:5272/v1"
FOUNDRYLOCAL_MODEL_DEPLOYMENT_NAME="Your Foundry Local Model Deployment Name"
AZURE_AI_PROJECT_ENDPOINT ="Your Azure AI Foundry Project Endpoint"
AZURE_AI_MODEL_DEPLOYMENT_NAME ="Your Azure AI Foundry Project Deployment Name"
BING_CONNECTION_ID="Your Bing Connection ID"
BING_CONNECTION_NAME="Your Bing Connection Name"
OTEL_EXPORTER_OTLP_ENDPOINT="Your OpenTelemetry Collector Endpoint e.g. http://localhost:4317"
We welcome contributions! Please feel free to submit issues, feature requests, or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
Start your journey with Microsoft Agent Framework today! 🚀
GitHub checked 87h ago - refresh overdue. Recently viewed repositories target hourly refresh.