Skip to main content
← Frameworks

Microsoft Agent Framework

Microsoft
Orchestration framework Python Open source MIT Graph execution Workflows checkpoint superstep Persistence State management HITL human-in-the-loop Multi-agent MCP A2A Multiple backends 8 axes checked Active Checked 2026-10-23

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

In one line

The Microsoft-official agent foundation that merged Semantic Kernel and AutoGen — the…

How you use it

Local / self-hosted · Framework / SDK

Licence / commercial use

Open licence

Read the original licence before commercial use
Mainland China

Direct in mainland · Not in filing list

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • A framework-level default file-system permission model and process/container sandbox (not stated officially; overview page and providers sample README checked)
  • After switching providers, a reliability comparison of tool calling / structured output (not stated officially; overview page and providers sample README checked)
  • The concrete price list across the framework/hosting/model three layers (not stated officially; overview page and README checked)
  • MCP / A2A transport-matrix details (not given in one place officially; overview and a2a pages checked)
  • A unified context-compaction mechanism for long histories (no dedicated chapter at the official overview level; overview and checkpoints pages checked)
  • API stability and the GA timeline during public preview (officially only labeled public preview)
  • The A2A protocol specification itself (an external protocol, outside our research scope)
  • Progress on merging with the Microsoft 365 Agents SDK (the announcement only states a direction)

What it is: "the Microsoft-official agent foundation that merged Semantic Kernel and AutoGen". Full name Microsoft Agent Framework (MAF below). The official announcement page puts the lineage most plainly — "Microsoft Agent Framework doesn't replace Semantic Kernel and AutoGen — it builds on them" — and the official overview is just as direct: "It brings together and extends ideas from Semantic Kernel and AutoGen projects... Built by the same teams, it is the unified foundation for building AI agents going forward." One thing is enough to remember: it is not "yet another new framework" — Microsoft folded two product lines into one.

When to use it, when not to

It is a graph-workflow orchestration framework — a fit for five cases.

  • Organizing multiple agents into a deterministic graph workflow with branching, human-in-the-loop, and checkpoint-based recovery
  • Needing a consistent API across .NET and Python
  • Teams already inside the Azure / Microsoft Foundry ecosystem
  • Requiring observability (built-in OpenTelemetry), durability, governance, and provider flexibility
  • Needing MCP and A2A cross-runtime interop, or migrating from Semantic Kernel / AutoGen

Not a fit for running just a single agent without a graph (OpenAI Agents SDK is lighter); needing a framework-level file or process sandbox (not provided — default permissions come from the chosen provider); wanting a stack with no Azure dependency (Ollama and Foundry Local exist, but the official hosting path is still Azure-centric); requiring a stable GA API (currently public preview, so breaking changes are possible).

China availability domestic / direct access / CAC filing · snapshot 2026-10-23

Origin
foreign-made foreign entity (no matching filing entity in the CAC registry).
Direct access
direct OK learn.microsoft.com measured 200 direct.
CAC filing
not in filing list:not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

8 questions, one table

8 questions, each comparable item by item with its peers.

Model & openness

Its providers are comprehensive, and each one can be verified individually in the official samples directory.

The official answer is the combo of "provider flexibility + consistent multi-language API".

Official overview page, verbatim:

Official wording: "Agents support model providers including Azure OpenAI, OpenAI, and Azure AI."

The README's first paragraph expands the ecosystem:

Official wording: "supports a broad ecosystem including Microsoft Foundry, Azure OpenAI, OpenAI, and the GitHub Copilot SDK"

The full provider list is verified (official samples-directory README):

python/samples/02-agents/providers

  • Anthropic — AnthropicClient / ClaudeAgent
  • AWS Bedrock — BedrockChatClient
  • Azure OpenAI — OpenAIChatCompletionClient
  • Copilot Studio
  • Microsoft Foundry and Foundry Local — FoundryChatClient
  • Google Gemini
  • GitHub Copilot — GitHubCopilotAgent
  • Mistral — embedding
  • Ollama local models — OllamaChatClient, officially marked as the recommended usage
  • OpenAI

Self-built providers extend BaseAgent / BaseChatClient.

⚠ Unknown: after switching providers, a reliability comparison of tool calling / structured output is not stated by the official docs. (Overview page and providers sample README both checked.)

Where it runs

It is a bilingual library (SDK), but the official docs add three "hosting & persistence" channels.

Two install forms:

  • Python: pip install agent-framework --pre (README — note the --pre)
  • .NET: dotnet add package Microsoft.Agents.AI

The official overview states explicitly:

Official wording: "Microsoft Agent Framework is currently in public preview."

Three hosting/runtime channels verified:

① Foundry Hosted Agents (official hosting) — officially:

Official wording: "Deploy and host your agents to Foundry-hosted infrastructure with just 2 additional lines of code"

② Durable Task extension — lands on Azure Functions (serverless, scale-to-zero), or bring-your-own-compute / self-hosted (containers, K8s, resident worker).

③ Local development via DevUI (interactive dev/debug console) and the VS Code AI Toolkit.

Responsibility boundary: the framework itself does not run the agent loop. Hosting is either Foundry's or your own deployment.

Like CrewAI it is a "library", but MAF's official hosting path is written more front-and-center than CrewAI's.

Local files

The framework core ships no file read/write tools; file capability comes from providers and the tool layer.

The default boundary is not systematically defined by the official docs.

The official overview only describes agents as "call tools and MCP servers to perform actions".

It does not list "read/write local files" as a built-in capability, nor describe a default file-access boundary.

The only concrete wording we can currently verify sits in the official providers sample README.

The GitHub Copilot sample demonstrates this line:

Official wording: "permission-scoped shell/file/url access"

i.e. the permission scope of files/commands/network is decided by that provider's permission model, not provided uniformly by the framework.

There is also a security-samples group (python/samples/02-agents/security) demonstrating three things: prompt-injection defense, MCP tool proxying, cross-tool data-exfiltration protection.

That is "harden it yourself with middleware", not a file sandbox.

⚠ Unknown: a framework-level default file-system permission model and process/container sandbox are not stated by the official docs. (Overview page and providers sample README both checked.)

Tasks after shutdown

"Still running after shutdown" is delivered here by the official Durable extension, at superstep granularity.

① State persistence (official workflows/checkpoints page, verbatim):

Official wording: "workflows are executed in supersteps... Checkpoints are created at the end of each superstep, after all executors in that superstep have completed"

One checkpoint captures four things:

  • all executor states
  • pending messages
  • pending requests/responses
  • shared state

② Three persistence backends verified:

  • InMemoryCheckpointStorage — in-process
  • FileCheckpointStorage — local disk, storage_path required, no default directory
  • CosmosCheckpointStorage — Azure Cosmos DB, distributed cross-process, managed identity/RBAC auth recommended

Python 1.13.0 also adds entry checkpoints.

A full run therefore becomes "replayable".

③ True background: the official Durable Task extension provides durable sessions, recovery after crash/restart, plus Azure Functions scale-to-zero and session TTL.

Official wording (when waiting on a human): "Pause for human input or external events without consuming compute or model tokens"

The pure SDK does not host background: without the Durable extension, you must keep the process resident yourself.

Tools & extensions

The tool ecosystem is its strength against ADK: MCP and A2A are both officially named first-class capabilities.

The first item of the announcement page's "Four Pillars" lists three open standards.

Official wording (MCP): "Agents can dynamically discover and invoke external tools or data servers exposed over MCP"

Official wording (A2A): "Agents can collaborate across runtimes using structured, protocol-driven messaging"

Official wording (OpenAPI): "Any REST API with an OpenAPI specification can be imported as a callable tool instantly"

The overview page also confirms agents call tools and MCP servers:

Official wording: agent "call tools and MCP servers to perform actions"

On the A2A side the implementation package is verified (official integrations/a2a page):

Microsoft.Agents.AI.Hosting.A2A.AspNetCore

It exposes agents over the A2A protocol, including AgentCard configuration.

Three more items:

  • Middleware — request/response handling, exception handling, custom pipelines
  • Agent Skills — build domain knowledge bases from files/inline code/libraries
  • Declarative Agents — declare agents in YAML/JSON

Plus the experimental AF Labs package.

⚠ Unknown: MCP/A2A transport-matrix details are not given in one place by the official docs. (Overview and a2a pages checked.)

Context & memory

The official docs split "session state" and "memory" into two primitive groups.

Workflows additionally have superstep-level checkpoints.

These two map exactly onto our "state ≠ context" claim.

The overview page lists the basic building blocks, verbatim:

Official wording: "an agent session for state management, context providers for agent memory, middleware..., and MCP clients for tool integration."

The announcement page gives pluggable memory backends:

Official wording: "Developers can choose Redis, Pinecone, Qdrant, Weaviate, Elasticsearch, Postgres, or their own store for conversational memory." "Agent Framework provides the abstraction; you decide the backend."

This layer is what we call "context/memory".

The workflow checkpoint is a different thing.

It persists executor states and pending messages.

That is "flow state" — see the background axis.

The two mechanisms are described in separate official sections and must not be conflated.

⚠ Unknown: how long histories get compacted into the window — the official docs give no unified mechanism at the overview level. (Overview and checkpoints pages checked; no dedicated chapter like ADK's Context Compaction found.)

Permissions & limits

The officially explicit mechanisms are "HITL request/response + tool-level human approval".

Both are execution interception, not boundary setting.

① Workflow-layer HITL (official workflows/human-in-the-loop page):

Official wording: HITL "is achieved through the request and response handling mechanism"

.NET uses RequestPort (emits RequestInfoEvent). Python uses ctx.request_info() with @response_handler.

Checkpoints also save pending requests and re-emit them on resume.

② Tool-level approval (official announcement page, verbatim):

Official wording: "tools can be marked as requiring human approval." "Agent Framework automatically emits a pending approval request that can be routed to a UI or queue, then continues or denies execution accordingly."

③ Security samples (official 02-agents/security):

  • SecureAgentConfig + quarantined_llm for prompt-injection defense
  • SecureMCPToolProxy hardening external MCP tools
  • cross-tool confidential-data exfiltration protection

⚠ Unknown: framework-level process/container sandbox defaults are not stated by the official docs. (Overview, checkpoints, and a2a pages checked.)

Best for

It is a "graph workflow" style orchestration framework, fitting five scenarios.

  • Organizing multiple agents into deterministic graph workflows with branches, human intervention, and checkpoint recovery
  • Needing consistent APIs across .NET and Python, both languages first-class
  • Your team is inside the Azure / Microsoft Foundry ecosystem
  • You require observability (built-in OpenTelemetry), durability, governance, and provider flexibility
  • You need MCP and A2A cross-runtime interop, or you are migrating from Semantic Kernel / AutoGen

Four scenarios it does not fit.

  • Running a single agent with no graph structure — OpenAI Agents SDK is lighter
  • Requiring framework-built file/process-level sandbox boundaries — not provided officially; default permissions depend on the chosen provider
  • A pure local stack avoiding Azure dependencies — Ollama and Foundry Local exist, but the official hosting path remains Azure-first
  • Requiring a stable GA API — officially public preview today; upgrades may bring breaking changes

Licence and terms of use

MIT

Top misconception

  • Treating it as "yet another new framework" — officially it is the successor of Semantic Kernel + AutoGen, built by the same teams
  • Assuming it is .NET-only — officially it is Python and C#/.NET with consistent APIs, plus a separate Go repo (microsoft/agent-framework-go)
  • Assuming it is already GA — the official overview marks it public preview and the Python install requires --pre
  • Assuming AutoGen / AG2 code upgrades as-is — official migration guides exist, and both the agent model and the APIs changed; it is not a drop-in
  • Reading a workflow checkpoint as context compression — checkpoints persist superstep-level workflow state, a different mechanism from conversational memory

Evidence sources

Checked 2026-10-23,Content updated 2026-10-08。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
repomicrosoft/agent-framework · repository (14,281★, MIT, pushed_at 2026-10-23, rolling verification 2026-10-23)https://learn.microsoft.com/en-us/agent-framework/overview/
docsMain README (eleven Key Features, bilingual install, A2A/Go repos, Foundry Hosted Agents, Declarative Agents, Agent Skills)https://learn.microsoft.com/en-us/agent-framework/overview/
docsOfficial docs · Overview (Semantic Kernel + AutoGen successor, Agent/Workflow two API families, public preview, session/context providers/middleware/MCP clients)https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview
migrationOfficial docs · Migration from AutoGen (model clients, single/multi-agent feature mapping, observability)https://learn.microsoft.com/en-us/agent-framework/migration-guide/from-autogen
docsOfficial docs · Workflows Checkpoints (end-of-superstep persistence, InMemory/File/Cosmos three storage tiers, allowed_checkpoint_types security item)https://learn.microsoft.com/en-us/agent-framework/workflows/checkpoints
docsOfficial docs · Human-in-the-loop (RequestPort / ctx.request_info(), response handlers, checkpoints saving pending requests)https://learn.microsoft.com/en-us/agent-framework/workflows/human-in-the-loop
docsOfficial docs · A2A Integration (Microsoft.Agents.AI.Hosting.A2A.AspNetCore, AgentCard configuration)https://learn.microsoft.com/en-us/agent-framework/integrations/a2a
docsOfficial docs · Durable Extension (durable sessions, crash recovery, Azure Functions / self-hosted, waiting on humans costs no compute, session TTL)https://learn.microsoft.com/en-us/agent-framework/integrations/durable-extension
docsOfficial providers sample-directory README (Anthropic/Bedrock/Azure/Gemini/GitHub Copilot/Mistral/Ollama/OpenAI/Foundry list, GitHub Copilot permission-scope example)https://learn.microsoft.com/en-us/agent-framework/overview/
engineeringMicrosoft Foundry Blog · Introducing Microsoft Agent Framework (2025-10-01: successor positioning, Four Pillars, MCP/A2A/OpenAPI, Magentic and other orchestration patterns, tool-level human approval)https://devblogs.microsoft.com/foundry/introducing-microsoft-agent-framework-the-open-source-engine-for-agentic-ai-apps/
changelogReleases (latest python-1.20.0 @ 2026-10-02)https://learn.microsoft.com/en-us/agent-framework/overview/
repomicrosoft/agent-framework-go · standalone Go SDK repository (the third language named in the README)https://learn.microsoft.com/en-us/agent-framework/overview/-go

Test notes

This site has not completed measured runs. The test protocol is at protocols/framework/_protocol.md.

Suggested runs (tailored to orchestration framework + bilingual dimensions):

#What to testWhy it is worth testing
1Write the same workflow once in Python and once in .NET — how consistent are the APIsthe official docs promise consistent APIs — must verify
2With FileCheckpointStorage, kill the process mid-run then resume — does it truly skip completed superstepsthe official docs describe superstep persistence — verify real behavior
3Run a full Magentic orchestration with an Ollama local modelOllama is named officially — verify local feasibility
4Interruption frequency and recovery behavior of tool-level human approval in long flowsthe mechanism is known (pending approval); the experience needs testing
5Migration diff: bring an existing AutoGen / AG2 codebase into MAFthe official docs give migration guides — verify the real cost
6Frequency of breaking changes across version upgrades during public previewofficially marked preview — selection risk needs quantifying

Two API families: Agent and Workflow

The official overview page splits the capabilities into two families.

FamilyOfficial definitionMaps to our dimension
AI agents"Individual agents that use LLMs to process user inputs, call tools and MCP servers to perform actions"single-agent primitives
Workflows"Graph-based workflows... connecting multiple agents and functions to perform complex, multi-step tasks", with type-based routing, nesting, checkpointing, request/response (HITL)graph orchestration / state persistence

The official docs also give an honest answer on "when not to use an agent".

If it can be a function, make it a function.

"If you can write a function to handle the task, do that instead of using an AI agent."

Orchestration patterns: five, including the research-lineage Magentic

The announcement page lists a built-in set of orchestration patterns: Sequential, Concurrent, Group chat, Handoff, Magentic.

Magentic has a clear research pedigree (official docs, verbatim):

"Magentic orchestration is designed based on the Magentic-One system invented by AutoGen."

i.e. a pattern from the AutoGen research line, adopted into production-ready orchestration.

The checkpoints page also confirms the default name of these five built-in orchestrations:

  • Concurrent
  • Sequential
  • GroupChat
  • Handoff
  • Magentic

State and persistence: superstep-level checkpoints

This is one of the dimensions we care about most.

The official docs are detailed (workflows/checkpoints page).

Granularity: workflows execute in supersteps.

A checkpoint is written at the end of each superstep (official wording):

"workflows are executed in supersteps... Checkpoints are created at the end of each superstep, after all executors in that superstep have completed"

One checkpoint captures four things:

  • all executor states
  • pending messages
  • pending requests/responses
  • shared state

Three interchangeable backends, all behind one CheckpointStorage protocol:

ProviderPersistenceFits
InMemoryCheckpointStoragein-processtesting / demo / short flows
FileCheckpointStoragelocal disksingle machine, local dev (storage_path required)
CosmosCheckpointStorageAzure Cosmos DBproduction, distributed, cross-process

Python 1.13.0 also adds entry checkpoints.

A full run therefore becomes replayable.

"Still running after your computer is off" is delivered by the Durable extension (official wording):

pause for human input "without consuming compute or model tokens"

Pair it with Azure Functions and you get scale-to-zero.

Tools: three open standards — MCP, A2A, OpenAPI

The first item of the announcement page's "Four Pillars" is open standards.

  • MCP: dynamically discover and invoke external MCP tool/data servers.
  • A2A: cross-runtime, protocol-driven agent collaboration (the official Hosting.A2A.AspNetCore package handles external exposure).
  • OpenAPI: any REST API with an OpenAPI spec can be imported as a callable tool in one step.

A few more designs worth recording:

  • Middleware: request/response handling, exception handling, custom pipelines.
  • Agent Skills: build knowledge bases from files/libraries.
  • Declarative Agents: define agents declaratively in YAML/JSON, versionable.

Permissions: HITL and tool-level human approval

Both official mechanisms are "execution interception".

The workflow layer uses RequestPort (.NET) or ctx.request_info() (Python). Checkpoints also save pending requests and re-emit them on resume.

The tool layer, official wording:

tools "can be marked as requiring human approval"

The framework automatically emits a pending approval request, routed to a UI or queue. Then execution continues or is denied.

Note: this is only "ask before executing", not a sandbox.

Framework-level process/container sandbox defaults are not stated by the official docs (overview, checkpoints, and a2a pages checked).

Verification notes

Basis for confidence: partial:

Why not verified: the 2026-10-08 check verified quite a few mechanisms.

  • The lineage positioning
  • The Agent / Workflow two API families
  • superstep-level checkpoints and three storage backends
  • The HITL request/response mechanism
  • The MCP / A2A / OpenAPI three standards
  • The five orchestration patterns and the provider list

But three items remain that the official docs genuinely do not give:

  • A framework-level default file-system permission model and process/container sandbox
  • After switching providers, a reliability comparison of tool calling / structured output
  • The concrete price list across the three layers (framework/hosting/model)

Officially self-labeled public preview; the API may still change.

So it cannot rise to verified.

Official pages checked the 2026-10-08 check:

  • Repository and README
  • overview/agent-framework-overview
  • migration-guide/from-autogen
  • workflows/checkpoints
  • workflows/human-in-the-loop
  • integrations/a2a
  • integrations/durable-extension
  • the providers sample-directory README
  • the Foundry Blog announcement page
  • the releases page

Verified metadata:

  • Repository exists, ★14,281 (rolling verification 2026-10-23), license MIT (via license API)
  • Last push 2026-10-23 (still active)
  • Latest release python-1.23.0 (releases @ 2026-10-22)

Related entries

  • Google ADK(Agent Development Kit)Same-kind graph-orchestration contrast: ADK uses Workflow Runtime nodes/routing; MAF uses WorkflowBuilder executors/edges; both run superstep + checkpoint and both build in HITL — two vendor answers to the same problem.
  • AG2The two branches of the AutoGen lineage: AG2 is the community continuation (ag2ai/ag2); MAF is Microsoft's official successor merging AutoGen with Semantic Kernel, with official migration guides. The two are not affiliated.
  • CrewAIAbstraction-level contrast: CrewAI uses two business abstractions, Crew (role collaboration) / Flow (event-driven); MAF uses a unified graph workflow + five built-in orchestration patterns; CrewAI is more "business-like", MAF more "systematic + enterprise".
  • GitHub CopilotOther layer · AI coding

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
AG2Local / self-hostedOpen licence8 questions checked
Active
The community continuation of AutoGen after the original repo stalled. T
Google ADK(Agent Development Kit)Cloud / APIOpen licence8 questions checked
Active
In one line: Google ADK is a code-first agent orchestration framework wh
CrewAILocal / self-hostedOpen licence8 questions checked
Active
"Organises multi-agent collaboration through role division and business

Same vendor

More from Microsoft

One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.