microsoft-agent-framework
Expert guidance for building AI agents and multi-agent workflows using Microsoft Agent Framework for .NET. Use when (1) creating AI agents with OpenAI or Azure OpenAI, (2) implementing function tools and structured outputs, (3) building multi-turn conversations, (4) designing graph-based workflows with streaming/checkpointing, (5) implementing middleware pipelines, (6) orchestrating multi-agent systems with fan-out/fan-in patterns, (7) adding human-in-the-loop interactions, (8) integrating OpenTelemetry observability, or (9) exposing agents as MCP tools.
npx skills add majiayu000/claude-skill-registry --skill microsoft-agent-framework-salmanferozkhan-cloud-and-fast-api --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Microsoft Agent Framework for .NET ## Overview Microsoft Agent Framework is a framework for building, orchestrating, and deploying AI agents and multi-agent workflows. It provides graph-based workflows with streaming, checkpointing, human-in-the-loop, and time-travel capabilities. ## Installation ```bash # Core AI package dotnet add package Microsoft.Agents.AI # OpenAI/Azure OpenAI support dotnet add package Microsoft.Agents.AI.OpenAI --prerelease # Google Gemini support (via Microsoft.Extensions.AI) dotnet add package Mscc.GenerativeAI.Microsoft # Azure identity for authentication dotnet add package Azure.Identity ``` ## Quick Start ### Basic Agent with OpenAI ```csharp using Microsoft.Agents.AI; using OpenAI; var agent = new OpenAIClient("<api-key>") .GetOpenAIResponseClient("gpt-4o-mini") .CreateAIAgent( name: "Assistant", instructions: "You are a helpful assistant." ); Console.WriteLine(await agent.RunAsync("Hello!")); ``` ### Azure OpenAI with Azure CLI Auth ```csharp using Azure.AI.OpenAI; using Azure.Identity; using Microsoft.Agents.AI; var agent = new AzureOpenAIClient( new Uri("https://<resource>.openai.azure.com/"), new AzureCliCredential()) .GetChatClient("gpt-4o-mini"
- Overview
- Installation
- Quick Start
- Basic Agent with OpenAI
- Azure OpenAI with Azure CLI Auth
- Azure OpenAI with Bearer Token
- Google Gemini
- Function Tools
- Function Tools with Approval
- Structured Output
- Multi-Turn Conversations
- Persisted Conversations
- Middleware
- Multi-Modal (Images)
Core AI package dotnet add package Microsoft.Agents.AI OpenAI/Azure OpenAI support dotnet add package Microsoft.Agents.AI.OpenAI --prerelease Google Gemini support (via Microsoft.Extensions.AI) dotnet add package Mscc.GenerativeAI.Microsoft Azure identity for authentication dotnet add package Azure.Identity
What does the microsoft-agent-framework skill do?
Expert guidance for building AI agents and multi-agent workflows using Microsoft Agent Framework for .NET. Use when (1) creating AI agents with OpenAI or Azure OpenAI, (2) implementing function tools and structured outputs, (3) building multi-turn conversations, (4) designing graph-based workflows with streaming/checkpointing, (5) implementing middleware pipelines, (6) orchestrating multi-agent systems with fan-out/fan-in patterns, (7) adding human-in-the-loop interactions, (8) integrating OpenTelemetry observability, or (9) exposing agents as MCP tools.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill microsoft-agent-framework-salmanferozkhan-cloud-and-fast-api --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
