GraphN vs Microsoft Agent Framework: decide where the platform begins
- Published
- August 9, 2026
- Reading time
- 12 min
Decision summary
Choose Microsoft Agent Framework with Foundry when
the application is Azure-native, Entra identities and Azure resources should define the security boundary, and the team wants C# or Python orchestration code.
Choose GraphN when
workflows should be shared visual and YAML resources, workspace-scoped models and isolated Python functions should be built in, or Azure should not be the organizing boundary for agent operations.
- Microsoft Agent Framework is an open-source C#/.NET and Python SDK, documented as public preview at the time of review.
- Microsoft Foundry Agent Service is the managed Azure runtime. The hosted service is generally available, while the Python Agent Framework hosting integration is documented as prerelease.
Product boundary
| Layer | Microsoft stack | GraphN |
|---|---|---|
| Authoring | Agent Framework SDK in C# or Python | Canvas and versioned YAML DSL |
| Orchestration | Agents plus explicit workflows in application code | Published workflow graph with supported step types |
| Hosting | Foundry prompt agents or containerized hosted agents | Managed published workflow endpoints |
| Identity | Entra and dedicated hosted-agent identity | Workspace membership and workspace API keys |
| Tools | Foundry Toolbox, MCP, OpenAPI, code interpreter, search, custom code | MCP servers, workspace functions, connectors, knowledge |
| Models | Foundry model catalog and SDK model clients | Built-in open-weight models, imported endpoints, custom weights |
| Telemetry | OpenTelemetry and Application Insights/Foundry traces | Execution traces, spans, timing, usage, logs |
| Deployment ownership | Azure managed service or your external hosting | Managed GraphN platform |
Orchestration: application workflow versus platform workflow
- Agent Framework lets an application team create any abstraction the language permits.
- GraphN constrains workflows to a platform vocabulary so a workflow can move between visual editing, source-controlled YAML, and platform APIs.
State and long-running work
$HOME and uploaded files across turns and idle periods.- Agent Framework workflow state belongs to the SDK execution.
- Foundry conversation/session state belongs to the hosted protocol.
- Files persisted under a hosted session are not the same as a governed knowledge index.
- Application databases still own business records and idempotency.
Tools, code, and isolation
- MCP servers expose structured tools.
- Workspace Python functions provide managed isolation for deterministic code.
- Secrets bind credentials without putting values into prompts.
- Knowledge bases and storage provide retrieval and file operations through the function SDK.
Deployment and API behavior
- Foundry's Responses protocol is an interface to the hosted agent.
- GraphN uses OpenAI-compatible APIs primarily at the model/inference boundary while published workflows have GraphN's workflow-run contract.
Observability
- prompt and completion redaction;
- end-user identity propagation;
- sampling and retention;
- trace export;
- cost attribution per model and tool;
- evaluation workflows, not only request traces.
Models and inference
- If model access is already standardized through Azure AI Foundry, use that existing governance and quota plane.
- If open-weight inference, custom weights, LoRA deployments, and agent workflows should share one managed platform, evaluate GraphN's integrated path.
- If a company model gateway must stay authoritative, prove both products can use it without bypassing policy or duplicating credentials.
Knowledge, files, and data boundaries
Authentication and secrets
- the human user;
- the workspace or project;
- the deployed agent;
- the tool;
- the platform service.
What AutoGen teams should do
- exposing workflows to visual builders;
- replacing application-managed tool code with isolated functions and MCP resources;
- consolidating model serving and knowledge resources;
- publishing versioned workflows as managed endpoints.
handoff_router, and a GraphN handoff workflow does not map one-to-one to Agent Framework orchestration. Preserve test conversations and tool-call traces, then compare behavior.Migration boundaries
Agent Framework to GraphN
- Classify each agent, workflow executor, tool, model client, and state store.
- Represent supported control flow in GraphN YAML.
- Move bounded deterministic Python into workspace functions; keep long-lived services external.
- Register external tools through MCP and bind credentials as GraphN secrets.
- Import or register models and rebuild data retrieval as knowledge/storage resources where appropriate.
- Re-run a fixed corpus and compare structured outputs, tool side effects, and trace completeness.
GraphN to Agent Framework and Foundry
- Export workflow and linked resource definitions.
- Recreate steps as typed agents, executors, and workflow edges.
- Choose Foundry tools or implement MCP/OpenAPI clients.
- Select session persistence, search, file, and business-data stores.
- Containerize the agent, assign an Entra identity, and define Azure networking.
- Instrument OpenTelemetry and connect operational alerts and evaluations.
Choose Microsoft Agent Framework and Foundry when
- C#/.NET or Python application code should remain the source of orchestration truth.
- AutoGen or Semantic Kernel migration continuity is important.
- Entra identity, Azure AI Search, Application Insights, and Azure networking are strategic standards.
- You need a whole custom agent container, custom protocols, or Azure-managed session files.
- Your platform team is comfortable managing Azure projects, policies, quotas, and resource topology.
Choose GraphN when
- Visual and code-based builders must share one workflow definition.
- Workspace agents, MCP servers, functions, secrets, knowledge, storage, and models should publish together.
- Isolated short-lived Python functions should be a built-in execution primitive.
- Open-weight and custom model hosting should sit beside agent orchestration.
- You want the application platform boundary without making Azure the control plane.
A proof-of-concept that exposes the difference
- ingest a private file;
- retrieve supporting passages;
- ask two model-backed specialists;
- pause for a human decision;
- call a side-effecting external API;
- return structured JSON and an audit trail.
Related comparisons
- GraphN vs LangGraph — code-first state graphs and modular deployment
- GraphN vs Google ADK and Agent Platform — another cloud-native SDK plus managed runtime
- GraphN vs Amazon Bedrock AgentCore and Strands Agents — AWS identity, gateway, memory, and runtime services
Primary sources
- Microsoft Agent Framework overview
Defines Agent Framework's SDK scope, supported languages, workflow model, and relationship to AutoGen and Semantic Kernel.
- AutoGen to Microsoft Agent Framework migration guide
Supports the article's treatment of Agent Framework as Microsoft's current migration target for AutoGen applications.
- Microsoft Foundry hosted-agent integration
Documents how Agent Framework code integrates with the managed Foundry hosted-agent runtime.
- Microsoft Foundry hosted agents
Describes hosted-agent lifecycle, service boundaries, identity, and managed execution in Foundry.
- Microsoft Foundry agent tracing
Documents the Application Insights and tracing path evaluated in the observability comparison.
- GraphN workflow DSL
Documents GraphN's versioned YAML workflow model and orchestration primitives.
- GraphN models reference
Defines the built-in, imported, and custom model boundary discussed in the platform comparison.