Skip to content

Microsoft Agent Framework: The Successor to Semantic Kernel and AutoGen

For several years, teams building AI agents on Microsoft technology had to pick between two libraries: Semantic Kernel for production work and AutoGen for multi-agent research. Microsoft Agent Framework ends that split. This guide covers what the framework is, how its parts fit together, where it is a good fit and how to get started. Everything below reflects the state of the project in November 2026.

What is Microsoft Agent Framework?

Microsoft Agent Framework is an MIT-licensed, open-source SDK for building AI agents and multi-agent workflows in .NET and Python. The official overview calls it the direct successor to Semantic Kernel and AutoGen, built by the same teams. Version 1.0 was released on 3 April 2026.

Microsoft sums up the design in one line: the framework takes AutoGen's simple agent abstractions, adds Semantic Kernel's enterprise features – session-based state, type safety, middleware, telemetry – and introduces graph-based workflows for explicitly controlled multi-agent execution.

For organisations whose IT already runs on Microsoft, that matters in three ways:

  • It is where Microsoft's agent investment now goes. New capabilities land here, not in Semantic Kernel or AutoGen.
  • It fits existing skills. .NET developers get familiar patterns such as dependency injection and Microsoft.Extensions.AI; data teams work in Python.
  • It connects to the rest of the stack. Microsoft Foundry, Azure OpenAI, Azure AI Search, Microsoft Purview, Azure Monitor and Copilot Studio are all documented integrations.

Release status in November 2026

The 1.0 announcement promised stable APIs and backward compatibility for features marked stable. Releases have come out roughly weekly since. PyPI lists Python package 1.26.0, published on 12 November 2026, and the GitHub releases page shows .NET 1.28.0 from 6 November 2026. The Python package requires Python 3.11 or later. A Go SDK is in public preview and needs Go 1.26 or later.

Not everything is stable. At the 1.0 release, the DevUI local debugger, the AG-UI and ChatKit front-end adapters and several Foundry features were explicitly labelled preview and may still change.

How does Microsoft Agent Framework work?

The framework has four areas: individual agents, a pre-configured harness agent for long tasks, workflows for defined processes, and integrations with models and services. Underneath sit shared building blocks – model clients, sessions, context providers for memory, middleware and MCP clients – as described in the Microsoft Learn overview.

Agents

An agent combines a language model with instructions and tools. Python uses the Agent class; .NET uses the AIAgent abstraction. Tools are ordinary functions. In Python the function name becomes the tool name and the docstring becomes its description; in .NET an optional [Description] attribute is enough. Semantic Kernel's Kernel object is gone – tools are passed straight to the agent.

A minimal example based on the official quick start (Python, agent-framework 1.x, signed in with the Azure CLI):

import asyncio
import os

from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from azure.identity import AzureCliCredential

agent = Agent(
    client=FoundryChatClient(
        project_endpoint=os.environ["FOUNDRY_PROJECT_ENDPOINT"],
        model=os.environ["FOUNDRY_MODEL"],
        credential=AzureCliCredential(),
    ),
    name="Helper",
    instructions="Answer briefly and factually.",
)

async def main() -> None:
    result = await agent.run("What is a delivery note?")
    print(result)

asyncio.run(main())

Note that the framework does not load .env files on its own. Set environment variables in your shell or call load_dotenv() yourself.

Sessions, memory and context

Conversation state lives in sessions (AgentSession) that the agent creates for you. Depending on the provider, history is kept locally or by the service. Longer-term memory comes from context providers; the 1.0 post lists Foundry Agent Service, Mem0, Redis, Neo4j or a custom store as options.

Middleware

Middleware intercepts agent actions and can transform them. Common uses are logging, content filtering and compliance checks, all without touching prompts. For Microsoft shops, the integrations page lists Microsoft Purview as a middleware integration.

Workflows

Workflows connect agents and plain functions along explicit execution paths. Version 1.0 supports conditional branching, parallel fan-out and fan-in, and checkpointing so long-running processes can stop and resume later. Built-in orchestration patterns are sequential, concurrent, handoff, group chat and Magentic-One. Microsoft states that all of them support streaming, checkpoints, human approval steps and pause/resume.

The documentation offers a useful rule of thumb. Use an agent when the task is open-ended and the model should choose its own tools. Use a workflow when the process has defined steps and you need control over the order. And if a task can be written as a normal function, write the function. Whether several cooperating agents are worth it at all is covered in the guide to multi-agent systems.

Declarative definitions and protocols

Agents and workflows can be described in YAML and kept under version control. Tool access uses the Model Context Protocol (MCP). For calling remote agents there is an A2A connector, which the agent services page lists for C#, Python and Go.

What can you build with it?

There are three basic shapes: a single agent with tools, a workflow with fixed steps, and a wrapper around agents that already run in a managed service such as Microsoft Foundry or Copilot Studio. The right choice depends on who should be in charge of the sequence – the model, your code or a hosted platform.

A single agent with tools. An agent answers questions about manuals and inspection reports by searching Azure AI Search, or it pulls case data from a service desk. This is the usual starting point and covers many of the cases described under AI agents for knowledge management and technical service.

A workflow with fixed steps. A request for quotation is classified, line items are fetched from the ERP, an agent drafts the reply and a person approves it. Checkpoints and approvals matter here because the process may run for hours or days. Quotation agents are a typical example.

Wrapping managed agents. The framework can call agents that live elsewhere: in Microsoft Foundry, Copilot Studio, the GitHub Copilot SDK, the Claude Agent SDK or behind an A2A endpoint. A business team's Copilot Studio agent can therefore become one step in a coded workflow without being rebuilt.

The harness agent for long tasks. The harness agent ships with planning and to-do tracking, context compaction, file access and tool approvals. It targets multi-step jobs where a plain agent loop would lose track.

Separate guides on Semantic Kernel in existing projects, AutoGen's retirement, a comparison of .NET options and Copilot Studio as the low-code counterpart are in preparation. Once published, they appear automatically in the list below.

How it relates to Semantic Kernel and AutoGen

For teams with existing code, the status of the predecessors often matters more than the new framework itself. As of November 2026:

ProjectVendor statusWhat it means
Semantic KernelSucceeded by Agent Framework; critical bugs and security issues still fixedExisting code keeps working, no new features
AutoGenREADME: archived, no bug fixes, security fixes or new features from MicrosoftPlan a migration
Agent Framework1.x stable for .NET and Python, Go in previewDefault for new Microsoft-centric projects

These points come from the Semantic Kernel README, the AutoGen README and Microsoft's post on Semantic Kernel and Agent Framework. In that October 2025 post, Microsoft committed to supporting Semantic Kernel 1.x for at least one year after Agent Framework became generally available. No fixed end date was given.

What do you need before you start?

On the technical side, a current .NET or Python environment (Python 3.11 or later) and access to a language model are enough. The harder prerequisites are organisational: agreed data access, an identity strategy for Azure, clarity on where data is processed and a team that will maintain code. This is a developer library, not a tool for business users.

Systems and access. The tightest integration is with Microsoft Foundry and Azure OpenAI. According to the integrations page, the framework also supports OpenAI, Anthropic, Amazon Bedrock, Google Gemini, Mistral and local models through Ollama. If data must not leave your own infrastructure, a self-hosted model is an option; see sovereign AI for the trade-offs.

Identity. Most samples use AzureCliCredential or DefaultAzureCredential. The migration guide warns that DefaultAzureCredential can probe unintended credential sources in production and recommends a specific credential such as ManagedIdentityCredential instead.

Data. An agent is only as useful as the sources it can reach. Before writing code, know where the relevant documents, master data and records live – SharePoint, an ERP, a ticketing system – and which permissions the agent should have. For SharePoint, Outlook and Teams, the guide to connecting an AI agent to Microsoft 365 explains Graph API access and permissions.

Ownership. Microsoft's documentation is explicit that testing, safety measures and decisions about data leaving your compliance and regional boundaries are your responsibility. A prototype without a named owner for operations and approvals rarely becomes a lasting system. If that role does not exist yet, a fractional head of AI is one way to fill it.

How do you approach a project step by step?

Start with one tightly scoped agent, measure it against real cases, then add workflows and further agents. The steps below apply to new projects; migrations add an inventory of the existing code at the start.

  1. Pick a process. Something frequent, with a clear input and a result you can check – for example "answer a question about a maintenance log".
  2. Choose agent or workflow. Fixed steps with sign-off: workflow. Open question with tool choice: agent.
  3. Decide on model and hosting. Foundry, Azure OpenAI, another provider or a local model, depending on data and policy.
  4. Write the tools. Small, well-described functions with narrow permissions; connect existing systems through MCP where possible.
  5. Add observability. Turn on telemetry from day one so every tool call and its parameters can be traced.
  6. Test against real cases. Build a set of real requests with expected answers and run it on every change.
  7. Set approvals and limits. Any write action goes through a human; use middleware for logging and filtering.
  8. Expand. Only once one agent runs reliably should you add more agents or orchestration patterns.

Migrating from Semantic Kernel

The migration guide lists the main changes. Namespaces move from Microsoft.SemanticKernel to Microsoft.Agents.AI; the Kernel disappears; InvokeAsync becomes RunAsync; threads become sessions. In .NET, specialised classes such as ChatCompletionAgent and AzureAIAgent give way to a single ChatClientAgent that works with any service implementing IChatClient. In Python, existing KernelFunction objects can be reused through .as_agent_framework_tool() (requires semantic-kernel 1.38 or later), which allows a gradual switch.

# Python: meta package with core and common providers
pip install agent-framework

# .NET: Foundry connector (currently installed with --prerelease per the docs)
dotnet add package Microsoft.Agents.AI.Foundry --prerelease

What are the limits and risks?

The framework handles plumbing, not accountability. The main risks are the fast release pace, features that are still in preview, dependence on Azure services, and agents with tools taking wrong actions. It is the wrong choice if nobody on the team writes code.

Release pace. Between April and November 2026 the Python package went from 1.0 to 1.26. Compatibility guarantees cover stable features only. Pin package versions and schedule regular upgrades.

Preview features in production. DevUI, AG-UI, ChatKit and parts of the Foundry integration were preview at 1.0. The Go SDK is preview as a whole and, per the documentation, lacks declarative agents and functional workflows. Check the current status of every feature your design depends on.

Ecosystem lock-in. The core is open and works with many providers, but the documentation and many convenience features – hosted agents, evaluations, managed memory – are built around Foundry and Azure. Using them ties you to them.

Data flows to third parties. Microsoft's overview reminds you to review where data goes when you use third-party models or servers, and whether it leaves your compliance or regional boundaries. This also applies to MCP servers you did not write. Whether a deployment can be operated in line with the GDPR depends on these choices; treat this guide as orientation, not legal advice.

Agents doing the wrong thing. An agent with write access to an ERP can create wrong entries. Put write tools behind approvals and keep permissions as narrow as possible.

When it does not fit. If business users should build agents without code, Copilot Studio is the closer match. If your team works only in TypeScript or Java, there is no stable Agent Framework SDK for those languages. And if a task can be solved with a deterministic function, Microsoft itself advises against using an agent.

How should you get started?

Begin with one agent for one real process, pinned package versions and telemetry from the first day. Keep working Semantic Kernel code running, but build new agents on Agent Framework. Migrate AutoGen projects actively, because they no longer receive security fixes.

A practical plan for the first weeks:

  • Take stock. Where does Semantic Kernel or AutoGen code already exist, and who maintains it?
  • Choose a pilot. One process with a measurable outcome, read-only tools and limited risk.
  • Settle model access. Foundry, Azure OpenAI or another provider, including region and data processing terms.
  • Build the first agent. Use the official quick start and two or three of your own tools. Microsoft also publishes a skill for coding assistants, agent-framework-builder-python, to scaffold Python projects.
  • Collect test cases. At least a few dozen real requests with expected answers before anyone outside the project uses the agent.
  • Define operations. Who monitors, who upgrades, who approves write actions?

For an overview of which agent types tend to pay off in mid-sized companies and how they work together, see AI agents for business. In our own operations, keeping the first agent deliberately small and spending the time on clean tools and test cases has worked better than starting with elaborate orchestration.

Frequently asked questions

Does Microsoft Agent Framework cost money?

The framework is MIT-licensed and free. You pay for the models and cloud services you call, such as Azure OpenAI or Microsoft Foundry.

Can I use it without Azure?

Yes. It has connectors for OpenAI, Anthropic, Amazon Bedrock, Google Gemini, Mistral and local models via Ollama. The convenience features, however, are built around Microsoft services.

Should I rewrite my Semantic Kernel application now?

Not necessarily. Microsoft still fixes critical bugs and security issues in Semantic Kernel 1.x, so working code can stay. Build new agents on Agent Framework and migrate old ones when you next touch them.

Which languages are supported?

Stable SDKs exist for .NET and Python. A Go SDK is in public preview with a reduced feature set.

Sources

  1. Microsoft Learn: Microsoft Agent Framework Overview learn.microsoft.com
  2. Microsoft DevBlogs: Microsoft Agent Framework Version 1.0 (3 April 2026) devblogs.microsoft.com
  3. Microsoft Learn: Semantic Kernel to Microsoft Agent Framework Migration Guide learn.microsoft.com
  4. Microsoft DevBlogs: Semantic Kernel and Microsoft Agent Framework (7 October 2025) devblogs.microsoft.com
  5. GitHub: microsoft/autogen (README status notice) github.com
  6. GitHub: microsoft/semantic-kernel (README) github.com
  7. Microsoft Learn: Agent Framework Integrations learn.microsoft.com
  8. Microsoft Learn: Agent services learn.microsoft.com
  9. PyPI: agent-framework pypi.org
  10. GitHub: microsoft/agent-framework releases github.com