Microsoft Agent Framework Best Practices
Ten practices for structuring conversations, workflows, and governance in production on Microsoft Agent Framework 1.0. Use them as a design rubric and a PR checklist.
Search across all documentation pages
Ten practices for structuring conversations, workflows, and governance in production on Microsoft Agent Framework 1.0. Use them as a design rubric and a PR checklist.
name / executor ids beat anonymous multi-agent soup in logs.AgentSession (or provider sessions) per user thread and tenant.Items 1-10 are the core shipping practices. Items 11-15 extend them into governance and migration so the list stays useful after go-live.
Host-enforced budgets plus least-privilege tools. Everything else fails more safely when loops and tools cannot run unbounded.
When specialists need different instructions, tools, or approval boundaries and you can name a stop condition. Otherwise keep one agent.
When steps, joins, approvals, or resume requirements must be explicit for auditability or reliability - not when you only want a friendlier demo.
No. They apply to open-source Agent Framework generally. Foundry strengthens identity, hosted tools, and observability when you choose that host.
Use a shared middleware pack in non-prod with logging + allowlists early. Add stricter approvals and redaction as tools gain privileges.
At every new tool or MCP server addition, and during incident reviews when traces are hard to read.
Golden task suite, tool schema linting, middleware fail-closed tests, and a cost/latency budget check on representative traces.
Treat them as multi-agent shapes under practices 2-5 with mandatory stall/reset/round caps and manager tool limits.
No. YAML is still production config - review tools, middleware hooks, and environment bindings in PRs.
Three near-identical agents, shared full tool belts, and no handoff contract - cost up, quality flat.
Section close-out in docs, architecture decision records for agent systems, and on-call runbook footers for multi-agent incidents.
Stack versions: Pins from the category manifest (verify at build): OpenRouter (~315+ models, July 2026 pricing/fees); LangGraph 1.0+; CrewAI 1.14+; Microsoft Agent Framework 1.0; Vercel AI SDK 6; Pydantic AI (latest); LlamaIndex (latest); OpenAI Agents SDK (latest + MCP); MCP (Linux Foundation governance); A2A (HTTP+SSE+JSON-RPC 2.0); Solana
@solana/web3.js+@solana/spl-token.
Reviewed by Chris St. John·Last updated Jul 16, 2026