Install
pip install agent-frameworkUnified agent SDK that merges Semantic Kernel and AutoGen into one Pythonic library. Build single agents, multi-agent orchestration, cross-framework collaboration (A2A), and declarative workflows against the same primitives.
Install
pip install agent-frameworkVersion
Core 1.2.2 stable · providers 1.0.0b260429 beta · May 2026 · Python 3.10 – 3.13
Best for
Azure-native agents, multi-agent orchestration via WorkflowBuilder, cross-framework A2A, declarative YAML agents.
A guided reading order across the comprehensive guide, 2025 features, advanced and production docs. Each checkpoint is a section — read linearly or dive in wherever suits you.
agent-framework-core 1.2.2 with LTS commitment.agent_framework.foundry.FoundryChatClient, agent_framework.openai.OpenAIChatClient, agent_framework.anthropic.AnthropicClient, plus Bedrock / Ollama in the 1.0.0b provider line.@chat_middleware / @agent_middleware / @function_middleware decorators and base classes; pass middleware=[...] (must be a list in 2026 releases).WorkflowBuilder with .add_edge / .add_chain / .add_fan_in_edges / .add_fan_out_edges / .add_switch_case_edge_group / .add_multi_selection_edge_group; checkpoint via FileCheckpointStorage / InMemoryCheckpointStorage.@workflow / @step decorators and RunContext for HITL and state — write workflows as plain async Python functions without graph wiring.agent_framework.declarative.AgentFactory / WorkflowFactory load from YAML.agent_framework.a2a.A2AAgent, wraps a remote A2A endpoint as a local Agent.import asynciofrom agent_framework import Agentfrom agent_framework.openai import OpenAIChatClient
async def main(): agent = Agent( client=OpenAIChatClient(), # positional or keyword instructions="You are a helpful assistant.", ) response = await agent.run("What is the Microsoft Agent Framework?") print(response.text)
asyncio.run(main())Previous drafts of this page used a
ChatAgent(chat_client=...)minimal example.ChatAgentis not a public class inagent-framework-core1.2.2 — the primary agent class isAgentand the keyword isclient=(notchat_client=).
Ready for the full walk-through? Start with Core Fundamentals →
| Date | Version | Changes |
|---|---|---|
| 2026-05-04 | 1.0.5 | Added dedicated Functional Workflows page covering @workflow, @step, RunContext, FunctionalWorkflow.as_agent(). Enhanced Graphs & Declarative page with WorkflowViz examples, add_chain, add_multi_selection_edge_group, @executor decorator, and Agent.as_tool(). All verified against agent-framework-core==1.2.2 source. |
| 2026-05-01 | 1.0.4 | Bumped pinned core/provider versions to agent-framework-core==1.2.2 and 1.0.0b260429 provider line. Expanded streaming, function-middleware, functional-workflow, and feature-stage code examples after re-introspecting the installed library. |
| 2026-04-22 | 1.0.3 | Added dedicated pages: Tools, Skills, Checkpointing, Compaction, Observability & Telemetry, Evaluation. Zero→Hero reflow to 18 steps; Jump-to-topic grid and Reference card grid updated. |
| 2026-04-22 | 1.0.2 | Added dedicated pages: Model Providers, Orchestration, Middleware, MCP, Human-in-the-loop. Verified against source of agent-framework-core==1.1.0; corrected context_providers plural-vs-singular errata. |
| 2026-04-21 | 1.0.1 | Index redesigned into Zero → Hero reading order + Jump-to-topic grid using Starlight cards. |
| 2026-04-20 | 1.0.1 | Version pin corrected to v1.0.1; verified via agent-framework PyPI package. |
| April 16, 2026 | 1.0 GA | Graduated from Preview; ChatClientAgentOptions.Instructions removed; first-party connectors; Azure App Service support. |
| November 2025 | 1.0 Preview | Initial Python guide; multi-agent orchestration. |