Purpose
Microsoft Agent Framework (MAF) is Microsoft's open-source, production-oriented, multi-language framework for building, orchestrating, and deploying AI agents and multi-agent workflows. It is officially positioned as a framework that inherits from both AutoGen and Semantic Kernel, and is suitable for teams that want to move agents from prototype to production systems. According to the official description, if you need orchestration beyond a single prompt or stateless chat loop, need graph-style sequential/concurrent/handoff/group collaboration patterns, or care about durability, restartability, observability, governance, and human-in-the-loop control, MAF will be a suitable choice.
Main capabilities
- Multi-language support: Full support for Python and C#/.NET, both providing a consistent API; the Go SDK is in a separate repository (microsoft/agent-framework-go), and language support is in preview status.
- Multi-provider support: Supports multiple LLM providers, with the official list including Microsoft Foundry, Azure OpenAI, OpenAI, and GitHub Copilot SDK, and continues to grow.
- Middleware: Provides a flexible middleware system for request/response processing, exception handling, and custom pipelines.
- Orchestration patterns and workflows: Build multi-agent systems with graph-based workflows, supporting sequential, concurrent, handoff, and group collaboration patterns; includes checkpoints, streaming, human-in-the-loop, and time travel.
- Foundry hosted agents: The official statement says that with just two additional lines of code, agents can be deployed and hosted on Foundry hosted infrastructure.
- Observability: Built-in OpenTelemetry integration for distributed tracing, monitoring, and debugging.
- Declarative agents: Define agents using YAML for faster setup and versioning.
- Agent Skills: Build domain knowledge bases from multiple sources such as files, inline code, and class libraries for agents to discover and use.
- AF Labs: Experimental packages covering frontier features such as benchmarking, reinforcement learning, and research projects.
- DevUI: An interactive developer interface for agent development, testing, and workflow debugging.
- Hosting and protocols: Provides A2A, self-hosting protocol assistance, and Foundry hosted agent examples; durable tasks and Azure Functions examples are located in the Durable Agent Framework extension.
Usage
Official repositories provide getting-started documentation (Overview, Quick Start, Tutorials, User Guide) as well as migration guides from Semantic Kernel and AutoGen. Examples are listed by language, including Python and .NET getting-started tutorials, agent concepts, providers, workflows, hosting, and end-to-end examples. For installation, specific code, and commands, refer to the corresponding documentation and example READMEs in the repository. Environment variable configuration varies by example, so check the README in each example directory.
Applicable Scenarios
Suitable for multi-agent systems that require production-grade operation, complex workflows that require graph-based orchestration (sequential, concurrent, handoff, group collaboration), systems that require persistence and restartability, observability, governance, or human-in-the-loop control, and teams that want to maintain provider flexibility and avoid large-scale rewrites caused by architectural evolution.
Limitations and Considerations
Official note: If you use MAF to build applications that work with any third-party servers, agents, code, or non-Azure Direct models ("third-party systems"), you do so at your own risk; third-party systems are non-Microsoft products under Microsoft product terms and are subject to their own third-party license terms, and usage and related costs are the user's responsibility. The official recommendation is to review all data shared with and received from third-party systems, and to pay attention to third parties' practices regarding data processing, sharing, retention, and location; users must manage whether data will flow outside the organization's Azure compliance and geographic boundaries and the related implications, and ensure they have appropriate permissions, boundaries, and approvals. Users need to carefully review and test the applications they build for their own use cases and make appropriate decisions and customizations, including implementing their own responsible AI mitigations (such as metaprompts, content filters, or other safety systems), and ensure the application meets appropriate quality, reliability, safety, and trustworthiness standards. In addition, the official note states that DefaultAzureCredential is suitable for development, but for production environments it is recommended to use specific credentials (such as ManagedIdentityCredential) to avoid latency issues, unexpected credential probing, and security risks that may arise from fallback mechanisms.
Community and Feedback
You can submit GitHub issues to provide feedback, join Discord, or attend weekly office hours; the repository also includes contribution guidelines,AI-assisted contribution policy, code of conduct, Python development guide, design documents, and architecture decision records.