Users Pricing

articles

Home Articles Microsoft Agent Framework for C# and Python, Moving Beyond Semantic Kernel – MindStick
Microsoft Agent Framework for C# and Python, Moving Beyond Semantic Kernel

Microsoft Agent Framework for C# and Python, Moving Beyond Semantic Kernel

Moritz Wolf 127 30 Nov 2026

For two years, Semantic Kernel was Microsoft's main open-source SDK for adding AI to .NET and Python applications. It introduced many developers to plugins, function calling, planners and memory. In parallel, Microsoft Research's AutoGen explored multi-agent conversations and orchestration.

In October 2025, Microsoft announced Microsoft Agent Framework, an open-source SDK that unifies the enterprise foundations of Semantic Kernel with AutoGen's orchestration ideas. It reached release candidate status in February 2026 and version 1.0 in April 2026, with stable APIs for .NET and Python. Microsoft positions it as the successor to both projects and provides migration guidance.

If you have Semantic Kernel code in production, or you are starting a new AI feature in C# or Python, this article explains what Agent Framework is, how its concepts map to what you know and how to plan a move.

Why a new framework

Teams building AI features hit a familiar dilemma. Semantic Kernel offered stability, telemetry and enterprise connectors. AutoGen offered flexible multi-agent patterns but was more experimental. Teams often had to choose, or combine both awkwardly.

Agent Framework aims to provide one programming model across .NET and Python that covers:

- single agents with tools
- multi-agent orchestration and workflows
- enterprise features such as observability, middleware and state management
- interoperability through open standards such as MCP

Semantic Kernel continues to receive critical fixes for a period, but new investment goes into Agent Framework.

Agents

An agent wraps a model client with instructions, tools and optional state. You create an agent, give it a name and instructions, attach tools and run it with user input. The same concept works in C# and Python, which helps mixed-language teams.

Model clients and providers

Agent Framework is model-agnostic. It supports multiple providers, including Azure OpenAI and OpenAI, Microsoft Foundry deployments, Anthropic's Claude models, local models through tools such as Ollama and others through provider packages. Some provider packages may still be in preview while the core is stable, so check package status before relying on a provider in production.

In .NET, Agent Framework builds on the Microsoft.Extensions.AI abstractions, which give a common interface for chat clients across providers.

Tools

Tools let agents call your code. In C#, you typically expose methods as tools with descriptive attributes; in Python, decorated functions with type hints and docstrings. As always with tool use, descriptions matter because the model reads them to decide when to call each tool.

Agents can also use tools from MCP servers, so integrations built for other MCP-compatible tools can be reused.

Threads and state

Conversation state is held in threads, which store message history and can be persisted, so an agent can continue a conversation across requests. Choose storage that fits your data retention and privacy requirements.

Workflows

For processes involving several steps or several agents, Agent Framework provides workflows: graph-based orchestration where you define steps, the agents or functions that perform them and how data flows between them. Workflows support patterns such as sequential pipelines, concurrent fan-out, handoffs between specialised agents and human-in-the-loop approvals, with checkpointing so long-running processes can resume.

Middleware and observability

Middleware lets you intercept agent and tool calls for logging, policy enforcement, content filtering or modification. Built-in OpenTelemetry support provides traces and metrics that flow into Application Insights or other observability tools.

Interoperability

Beyond MCP, Agent Framework supports emerging standards such as A2A, an agent-to-agent protocol, and AG-UI for connecting agents to user interfaces, so agents built with it can work alongside agents from other frameworks.

Mapping Semantic Kernel concepts

If you know Semantic Kernel, the transition is mostly a change of vocabulary and structure:

- Kernel: in Agent Framework, you work more directly with agents and chat clients rather than a central kernel object.
- Plugins and kernel functions: become tools attached to agents.
- Chat completion services: become chat clients from Microsoft.Extensions.AI or provider packages.
- Agent abstractions in Semantic Kernel: map to Agent Framework agents, with a simpler creation model.
- Planners: largely replaced by function calling with modern models and by explicit workflows.
- Filters: map to middleware.
- Vector store connectors: continue in Agent Framework with a familiar model for retrieval.

Microsoft publishes migration guides for Semantic Kernel and AutoGen, and tooling that analyses existing code and suggests migration steps.

1. Inventory your usage

List where your code uses Semantic Kernel: chat calls, plugins, agents, planners, memory or vector stores, filters and telemetry. Simple chat and function calling code migrates easily; complex planner-based flows need more thought.

2. Freeze behaviour with tests

Before changing anything, build an evaluation set of real inputs and expected outcomes for each AI feature. You need it to prove the migrated version behaves at least as well.

3. Migrate incrementally

Agent Framework and Semantic Kernel can coexist in a solution during transition. Migrate one feature at a time, starting with the simplest, and compare results.

4. Replace planners with explicit design

Older planner-based designs often become simpler as either a single agent with well-described tools, letting the model choose the order, or an explicit workflow when steps and order are known. Explicit workflows are easier to test and debug.

5. Adopt middleware and telemetry

Move filters to middleware and connect OpenTelemetry to your monitoring stack early, so you can see behaviour from day one.

6. Check provider packages

Confirm the provider packages you need are stable, or accept preview status consciously, and pin versions.

Starting a new project

For new AI features in .NET or Python on the Microsoft stack, Agent Framework is the recommended starting point. A sensible path:

1. Start with a single agent, clear instructions and one or two tools.
2. Add retrieval with a vector store or Azure AI Search for grounded answers.
3. Add middleware for logging and policy checks.
4. Introduce workflows only when the process genuinely needs multiple steps or agents.
5. Deploy with Microsoft Foundry for model hosting, or self-host your application on App Service, Container Apps or your own servers.

Design advice that still applies

A new framework does not change the fundamentals:

- Prefer the simplest design that works; many features need one agent, not five.
- Write detailed tool descriptions and return concise results.
- Validate tool arguments and enforce permissions in code.
- Cap steps and budgets for agents.
- Require human approval for sensitive actions.
- Evaluate continuously and trace everything.

When to consider alternatives

Agent Framework is a strong choice for Microsoft-centred teams, especially in .NET. Alternatives may suit you if:

- you work mainly in TypeScript, where other frameworks or vendor SDKs may fit better
- you need only simple model calls, where a provider SDK alone is enough
- you are standardising on a vendor-specific agent SDK, such as the Claude Agent SDK or OpenAI Agents SDK, for particular capabilities

Thanks to MCP and A2A support, agents built with different frameworks can still interoperate.

Key takeaways

- Microsoft Agent Framework succeeds Semantic Kernel and AutoGen, with version 1.0 released in April 2026.
- It offers agents, tools, threads, workflows, middleware and OpenTelemetry across .NET and Python.
- It is model-agnostic and supports MCP, A2A and AG-UI standards.
- Semantic Kernel concepts map to agents, tools, middleware and workflows.
- Migrate incrementally with evaluation tests, replacing planners with explicit designs.
- Start new Microsoft-stack AI projects on Agent Framework, keeping designs simple.

For .NET developers in particular, Agent Framework finally offers one well-supported way to build everything from a simple assistant to a governed multi-agent workflow.

Related articles on MindStick

- Building AI Apps on Azure With Microsoft Foundry
- Designing Multi-Agent Systems, Orchestration Patterns Explained
- Building AI Agents With Claude, Patterns That Work
- Tool Use in Claude, Letting the Model Call Your Functions

Microsoft Agent Framework is evolving quickly, and package names, APIs and provider support may change. Check Microsoft's official documentation and migration guides for current details.


Moritz Wolf

Software Engineer at Accenture

I am a Software Engineer at Accenture, Munich, with 1 year of experience in backend development and cloud platforms. I graduated from TH Koeln with a BSc in Computer Science and completed an MSc in Computer Science at LMU Munich. I am originally from Cologne, North Rhine-Westphalia. Outside work I enjoy skiing and bouldering.


Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md