内容摘录
!Microsoft Agent Framework
Welcome to Microsoft Agent Framework!
Microsoft Azure AI Foundry Discord
MS Learn Documentation
PyPI
NuGet
Welcome to Microsoft's comprehensive multi-language framework for building, orchestrating, and deploying AI agents with support for both .NET and Python implementations. This framework provides everything from simple chat agents to complex multi-agent workflows with graph-based orchestration.
<p align="center">
<a href="https://www.youtube.com/watch?v=AAgdMhftj8w" title="Watch the full Agent Framework introduction (30 min)">
<img src="https://img.youtube.com/vi/AAgdMhftj8w/hqdefault.jpg"
alt="Watch the full Agent Framework introduction (30 min)" width="480">
</a>
</p>
<p align="center">
<a href="https://www.youtube.com/watch?v=AAgdMhftj8w">
Watch the full Agent Framework introduction (30 min)
</a>
</p>
📋 Getting Started
📦 Installation
Python
.NET
📚 Documentation
**Overview** - High level overview of the framework
**Quick Start** - Get started with a simple agent
**Tutorials** - Step by step tutorials
**User Guide** - In-depth user guide for building agents and workflows
**Migration from Semantic Kernel** - Guide to migrate from Semantic Kernel
**Migration from AutoGen** - Guide to migrate from AutoGen
Still have questions? Join our weekly office hours or ask questions in our Discord channel to get help from the team and other users.
✨ **Highlights**
**Graph-based Workflows**: Connect agents and deterministic functions using data flows with streaming, checkpointing, human-in-the-loop, and time-travel capabilities
Python workflows | .NET workflows
**AF Labs**: Experimental packages for cutting-edge features including benchmarking, reinforcement learning, and research initiatives
Labs directory
**DevUI**: Interactive developer UI for agent development, testing, and debugging workflows
DevUI package
<p align="center">
<a href="https://www.youtube.com/watch?v=mOAaGY4WPvc">
<img src="https://img.youtube.com/vi/mOAaGY4WPvc/hqdefault.jpg" alt="See the DevUI in action" width="480">
</a>
</p>
<p align="center">
<a href="https://www.youtube.com/watch?v=mOAaGY4WPvc">
See the DevUI in action (1 min)
</a>
</p>
**Python and C#/.NET Support**: Full framework support for both Python and C#/.NET implementations with consistent APIs
Python packages | .NET source
**Observability**: Built-in OpenTelemetry integration for distributed tracing, monitoring, and debugging
Python observability | .NET telemetry
**Multiple Agent Provider Support**: Support for various LLM providers with more being added continuously
Python examples | .NET examples
**Middleware**: Flexible middleware system for request/response processing, exception handling, and custom pipelines
Python middleware | .NET middleware
💬 **We want your feedback!**
For bugs, please file a GitHub issue.
Quickstart
Basic Agent - Python
Create a simple Azure Responses Agent that writes a haiku about the Microsoft Agent Framework
Basic Agent - .NET
Create a simple Agent, using OpenAI Responses, that writes a haiku about the Microsoft Agent Framework
Create a simple Agent, using Azure OpenAI Responses with token based auth, that writes a haiku about the Microsoft Agent Framework
More Examples & Samples
Python
Getting Started with Agents: progressive tutorial from hello-world to hosting
Agent Concepts: deep-dive samples by topic (tools, middleware, providers, etc.)
Getting Started with Workflows: workflow creation and integration with agents
.NET
Getting Started with Agents: basic agent creation and tool usage
Agent Provider Samples: samples showing different agent providers
Workflow Samples: advanced multi-agent patterns and workflow orchestration
Contributor Resources
Contributing Guide
Python Development Guide
Design Documents
Architectural Decision Records
Important Notes
If you use the Microsoft Agent Framework to build applications that operate with third-party servers or agents, you do so at your own risk. We recommend reviewing all data being shared with third-party servers or agents and being cognizant of third-party practices for retention and location of data. It is your responsibility to manage whether your data will flow outside of your organization's Azure compliance and geographic boundaries and any related implications.