plugins/microsoft-agents-expert/skills/agent-framework/SKILL.md
Build agents and multi-agent workflows with Microsoft Agent Framework — the open-source successor to Semantic Kernel and AutoGen. Covers agents, sessions, tools, orchestration patterns, middleware, memory, MCP, and observability in C#, Python, and Go.
npx skillsauth add markus41/claude plugins/microsoft-agents-expert/skills/agent-frameworkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Open-source, multi-language SDK for AI agents and graph-based workflows — the direct successor to both Semantic Kernel and AutoGen, built by the same teams. AutoGen's simple agent abstractions + SK's enterprise features (sessions, type safety, middleware, telemetry), plus typed workflows. Docs: https://learn.microsoft.com/agent-framework/overview/ · Repo: github.com/microsoft/agent-framework (Go: agent-framework-go).
Status (mid-2026): C#/.NET core is stable v1.x; Python is primary alongside it. Many provider/integration packages are still preview (Mem0/Redis/Neo4j providers, AG-UI, Dev UI). Go is public preview. Check package status before promising GA to a user.
| Language | Install |
|---|---|
| .NET | Microsoft.Agents.AI (core), .Abstractions, .OpenAI, .Foundry, .A2A (NuGet) |
| Python | pip install agent-framework (meta) → agent-framework-core + providers: agent-framework-foundry, agent-framework-openai, agent-framework-copilotstudio, agent-framework-mem0, agent-framework-foundry-hosting |
| Go | go get github.com/microsoft/agent-framework-go (preview) |
Python imports come from agent_framework (e.g. from agent_framework.foundry import FoundryChatClient).
AIAgent (base), ChatClientAgent (wraps any Microsoft.Extensions.AI.IChatClient),
AgentSession for multi-turn state, RunAsync / RunAsync<T> (structured output →
AgentResponse<T>).Agent, BaseAgent, SupportsAgentRun, AgentSession, @tool decorator.CopilotStudioAgent (call a Copilot Studio agent from code),
A2AAgent (remote agent over the A2A protocol).from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from azure.identity import AzureCliCredential
agent = Agent(
client=FoundryChatClient(credential=AzureCliCredential()),
instructions="You are a helpful assistant",
)
result = await agent.run("Help me with this task")
using Azure.AI.Projects;
using Azure.Identity;
using Microsoft.Agents.AI;
AIAgent agent = new AIProjectClient(new Uri("<project-endpoint>"), new DefaultAzureCredential())
.AsAIAgent(model: "gpt-4o-mini", name: "Joker", instructions: "You are good at telling jokes.");
AgentSession session = await agent.CreateSessionAsync();
Console.WriteLine(await agent.RunAsync("Tell me a joke.", session));
Typed graphs of executors connected by edges (direct, conditional, switch-case,
fan-out, fan-in), with checkpointing and human-in-the-loop pauses. High-level builders in
agent_framework.orchestrations / the .NET equivalents:
| Pattern | Builder | Use when |
|---|---|---|
| Sequential | SequentialBuilder | Pipeline: research → write → review |
| Concurrent | fan-out/fan-in edges | Independent subtasks in parallel |
| Handoff | HandoffBuilder | Triage agent routes to specialists |
| Group Chat | GroupChatBuilder | Agents debate/collaborate on shared thread |
| Magentic | Magentic orchestration | Manager dynamically plans and coordinates specialists |
A workflow can itself be exposed as an agent: workflow.as_agent(name="Content Pipeline Agent").
from agent_framework.orchestrations import SequentialBuilder
workflow = SequentialBuilder(participants=[researcher, writer, reviewer]).build()
@tool / AIFunctionFactory), plus MCP clients —
MCPStreamableHTTPTool, MCPStdioTool, MCPWebsocketTool — and hosted MCP via
get_mcp_tool(...) on Foundry/OpenAI/Anthropic chat clients.OpenTelemetry per the GenAI semantic conventions — configure_otel_providers() in Python;
exports to Azure Monitor or the Aspire Dashboard. MCP trace context propagates automatically
via _meta. Instrument from day one; agent bugs are trace-shaped.
IChatClient-compatible model — the framework is provider-agnostic; don't hard-code
a single vendor path when the user needs flexibility.AgentSession for multi-turn state instead of hand-rolled history lists.RunAsync<T> beat string parsing for machine-consumed results./msagent-migrate).skills/m365-agents-sdk), or as a Foundry hosted agent
(agent-framework-foundry-hosting, ResponsesHostServer — see skills/microsoft-foundry).tools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.