Skip to content

Microsoft Agent Framework (Python)

Unified 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

Terminal window
pip install agent-framework

Version

Core 1.18.0 stable · agent-framework-foundry and agent-framework-openai bundled via agent-framework==1.18.0 · September 2026 · Python 3.10 – 3.13 · consolidated Class & API Reference

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.

What’s shipped (September 2026 introspection)

Section titled “What’s shipped (September 2026 introspection)”
  • Stable coreagent-framework-core 1.18.0 (September 2026). The full class-by-class API surface — previously spread across 49 per-volume “class deep dive” pages — is now consolidated into one Class & API Reference section of the comprehensive guide (plus an azure-ai-agents add-on appendix). See the Revision history below for the version-by-version summary.
  • First-party chat clientsagent_framework.foundry.FoundryChatClient, agent_framework.openai.OpenAIChatClient, agent_framework.anthropic.AnthropicClient, plus Bedrock / Ollama in the 1.0.0b provider line.
  • Skills (experimental)MemoryStore, SkillResource, InlineSkillResource, ClassSkill, InlineSkill, FileSkill now emit ExperimentalWarning on import — do not depend on these APIs in production yet.
  • Middleware@chat_middleware / @agent_middleware / @function_middleware decorators and base classes; pass middleware=[...] (must be a list in 2026 releases).
  • WorkflowsWorkflowBuilder 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.
  • Functional workflows (experimental)@workflow / @step decorators and RunContext for HITL and state — write workflows as plain async Python functions without graph wiring.
  • Declarative agents (beta)agent_framework.declarative.AgentFactory / WorkflowFactory load from YAML.
  • A2A (beta) — one class, agent_framework.a2a.A2AAgent, wraps a remote A2A endpoint as a local Agent.
import asyncio
from agent_framework import Agent
from 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. ChatAgent is not a public class in agent-framework-core 1.4.0 — the primary agent class is Agent and the keyword is client= (not chat_client=).

Ready for the full walk-through? Start with Core Fundamentals →


DateVersionChanges
2026-09-141.18.0Installed and introspected agent-framework==1.18.0 source. Added 10-API Deep Dives Vol. 4 covering eight classes (VectorStoreField, VectorStoreCollectionDefinition, InMemoryCollection, InMemoryStore, Filter, FilterGroup, SecretString, GroupChatBuilder) and two functions (load_settings, create_agent_hooks_middleware) — all with source-verified constructors, method tables, and runnable examples. Vol. 2 and Vol. 3 LinkCards added to Reference section. Version card updated to 1.18.0.
2026-09-081.17.0Consistency sweep. Version card and page description moved 1.15.0 → 1.17.0 to match the newest source-verified deep dives (Vol. 3, agent-framework==1.17.0); comprehensive-guide header now states agent-framework 1.17.0 as latest and 1.14.0 as the verified-against version. Zero → Hero deep links into the 2025-features page retargeted to headings that exist. No package installation or symbol verification performed.
2026-08-241.15.0Upgraded to agent-framework 1.15.0 (latest). Added 10-Class Deep Dives document covering WorkflowViz, FileMemoryProvider, AgentModeProvider, BackgroundAgentsProvider, ToolApprovalMiddleware, SwitchCaseEdgeGroup, MessageInjectionMiddleware, ToolResultCompactionStrategy, SummarizationStrategy, and TokenBudgetComposedStrategy — all source-verified with runnable examples.
2026-08-211.14.0Consolidated the 49 per-volume “class deep dive” pages (base + v2–v44 main series, plus the 5-volume azure-ai-agents add-on series) into one Class & API Reference section — 11 subsections (Workflows & Execution, Agents/Modes & Orchestration, Memory/Sessions & File Stores, Tools & MCP, Security & FIDES, Skills, Checkpointing & Compaction, Middleware & Function Invocation, Evaluation, Settings & Configuration, A2A Protocol & Declarative Graphs) plus an azure-ai-agents appendix — inside the comprehensive guide. This index page was rewritten to match: old per-volume LinkCards removed, changelog condensed to this table.
2026-07-10 – 2026-08-031.11.0 – 1.13.0SecureMCPToolProxy + apply_mcp_security_labels (FIDES MCP security proxy); AgentMiddlewareLayer/ChatMiddlewareLayer reworked as public MRO mixins; DevUI (DiscoveryResponse, EntityInfo); Gemini / Mistral / Anthropic-Vertex / Bedrock provider clients; AGUIThreadSnapshot + thread-state persistence; FoundrySessionStore; Foundry hosting (ResponsesHostServer / InvocationsHostServer); FileMemoryProvider.
2026-06-12 – 2026-07-091.8.1 – 1.10.0ToolApprovalMiddleware + AgentLoopMiddleware + JudgeVerdict; six Supports* capability Protocols; WorkflowGraphValidator + typed validation errors; A2A (A2AAgent); declarative graphs (AgentFactory / WorkflowFactory + control-flow/basic executors); WorkflowBuilder output routing (output_from / intermediate_output_from); durable execution (agent-framework-durabletask).
2026-05-15 – 2026-06-051.4.0 – 1.8.0SecureAgentConfig (FIDES/IFC prompt-injection defence: label tracking, policy enforcement, quarantined LLM calls); AgentFileStore + FileAccessProvider; harness providers (TodoProvider, MemoryContextProvider, AgentModeProvider, BackgroundAgentsProvider); WorkflowViz.
2026-04-20 – 2026-05-091.0.1 – 1.3.0agent-framework-foundry and agent-framework-openai promoted to stable; dedicated pages added for Model Providers, Orchestration, Middleware, MCP, HITL, Tools, Skills, Checkpointing, Compaction, Observability, Evaluation. A 2026-05-29 pass corrected an accidental reframing of this index as an azure-ai-agents-only site — agent-framework is the primary framework; azure-ai-agents is the optional add-on.
2026-04-161.0 GAGraduated from Preview; ChatClientAgentOptions.Instructions removed; first-party connectors; Azure App Service support.
2025-111.0 PreviewInitial Python guide; multi-agent orchestration.