Skip to content

Pydantic AI vs Microsoft Agent Framework

Microsoft Agent Framework is the successor to AutoGen and Semantic Kernel, for Python, .NET and Go: agents, graph workflows with checkpointing, a configurable harness agent, and hosting on Microsoft Foundry and Azure Functions. Pydantic AI starts from one typed Agent on any model, with structured output validated by Pydantic, pydantic-graph for workflows, and capabilities that compose into complete agents such as Coder.

Pydantic AI is one part of a stack: the Harness SDK for capabilities and complete agents, Pydantic Evals for evaluation, Pydantic Graph for graph-based workflows, Pydantic Logfire for observability, and Pydantic itself for validation. The tables below cover the whole of it.

Framework

Microsoft Agent FrameworkPydantic AI and Harness SDK
LanguagePython (also .NET and Go)Python
LicenseMITMIT
Model providersManyMany
ExtensibilityTools, middleware, context providersCapabilities and toolsets; 80+ with the Harness SDK
Harnessescreate_harness_agent, or build your ownBuilt-in Coder and Researcher, or compose your own
ObservabilityOpenTelemetryOpenTelemetry, including Pydantic Logfire
Enterprise supportWith a Microsoft Unified support agreement, when used with Azure AI servicesFor the framework itself, no platform required
Durable executionYesEight integrations
InterfacesDevUI (sample app), AG-UI, A2ACLI, web chat, AG-UI, Vercel AI, ACP (experimental), GitHub Agentic Workflows
Realtime voiceNoRealtime
EvalsYesPydantic Evals
Image generationProvider-hosted tools onlyImage Generation

Features

Microsoft Agent FrameworkPydantic AI and Harness SDK
Multi-agentYesSubagents, delegation, or pydantic-graph
PlanningYesPlanning
SkillsYesSkills
MemoryYesMemory
CompactionYesCompaction
GuardrailsYesGuardrails
Code sandboxesYes (beta)Execution environments
Browser useComputer-use tools; you run the browserWeb & research

FAQ

Can I use Pydantic AI with Microsoft Foundry? Yes. Run agents on Azure OpenAI and other Foundry model deployments, including Claude on Foundry, and voice agents on Azure AI Voice Live.

Can I build a coding agent on Pydantic AI? Yes. Give your agent the Coder() capability, or assemble your own from the same Agent; the harness repository has a complete coding agent built from the pieces Coder puts together.

Can I run my agents in CI? Yes. GitHub Agentic Workflows runs Pydantic AI agents from a Markdown workflow file in GitHub Actions, or run a Python script directly with uv run; nothing requires an Action.

Last checked: 2026-10-30

Sources