Skip to main content

Welcome to Microsoft Agent Framework

Microsoft Agent Framework is a comprehensive multi-language framework for building, orchestrating, and deploying AI agents with support for Python and .NET. From simple chat agents to complex multi-agent workflows with graph-based orchestration, the framework provides everything you need to build production-ready AI agent systems.

Quick Start

Get started in minutes with your first agent

Python SDK

Build agents with Python

.NET SDK

Build agents with C# and .NET

API Reference

Explore the complete API

Key Features

Multi-Language Support

Full framework support for both Python and .NET with consistent APIs across both languages

Graph-Based Workflows

Connect agents and functions using data flows with streaming, checkpointing, and time-travel capabilities

Flexible Middleware

Middleware system for request/response processing, exception handling, and custom pipelines

Multiple Providers

Support for OpenAI, Azure OpenAI, Anthropic, AWS Bedrock, Ollama, and more

Built-in Observability

OpenTelemetry integration for distributed tracing, monitoring, and debugging

Human-in-the-Loop

Tool approval workflows and human review capabilities

Developer UI

Interactive DevUI for agent development, testing, and debugging workflows

A2A Protocol

Agent-to-Agent protocol for building distributed agent systems

Quick Example

Get started with a simple agent in just a few lines of code:
import asyncio
from agent_framework.azure import AzureOpenAIResponsesClient
from azure.identity import AzureCliCredential

async def main():
    agent = AzureOpenAIResponsesClient(
        credential=AzureCliCredential(),
    ).as_agent(
        name="HaikuBot",
        instructions="You are an upbeat assistant that writes beautifully.",
    )
    
    print(await agent.run("Write a haiku about Microsoft Agent Framework."))

asyncio.run(main())

What You Can Build

Chat Agents

Build conversational agents with memory, tools, and multi-turn interactions

Multi-Agent Workflows

Orchestrate multiple agents working together with handoffs and group chat patterns

RAG Systems

Create retrieval-augmented generation systems with vector search and context providers

Tool-Using Agents

Build agents that can call functions, APIs, and external services

Next Steps

1

Install the Framework

Choose your language and install the package
pip install agent-framework --pre
2

Follow the Quickstart

Build your first agent in under 5 minutesGet Started →
3

Explore the Guides

Learn about agents, tools, workflows, and moreCore Concepts →

Community & Support

Discord

Join our community on Discord

GitHub

View source and contribute

Issues

Report bugs and request features

Build docs developers (and LLMs) love