MAF AcademyLearnCapstoneSandbox
MAF Academy · Microsoft Agent Framework hands-on workshop · labs verified on agent-framework-core 1.26
← All modules
MODULE 8 OF 8 2 minutes

Recap and Key Takeaways

From a 6-line agent to a governed multi-agent business assistant — in one hour.

1.Review of Microsoft Agent Framework capabilities
2.Demonstration of the completed multi-agent application
3.Key technical takeaways
4.Enterprise adoption opportunities

On this page

Everything you coveredThe completed Business Operations AssistantSeven things to rememberEnterprise adoption roadmapKey takeawaysHands-on activityQuiz
1Capabilities

Everything you covered

The 13 framework concepts from the syllabus — each one now has working code in your labs/ folder.

MAF13 concepts ✓ArchitectureAgents & executionModel providersTools & function callingMulti-turn sessionsContext providers & memoryAgent-to-agentSequential & concurrentGraph workflowsHuman-in-the-loopMiddlewareObservabilityHosting & deployment
✓ Architecture✓ Agents & execution✓ Model providers✓ Tools & function calling✓ Multi-turn sessions✓ Context providers & memory✓ Agent-to-agent✓ Sequential & concurrent✓ Graph workflows✓ Human-in-the-loop✓ Middleware✓ Observability✓ Hosting & deployment
2Demo

The completed Business Operations Assistant

User request → Coordinator plans → Research → Analysis → Recommendation → Manager approval → Coordinator consolidates → Executive brief.

Run it live in the Multi-Agent Studio (Coordinator mode + human approval) or locally with python capstone_business_ops.py. See the Capstone page for the full architecture.

3Takeaways

Seven things to remember

  1. Agent = client + instructions (+ tools, session, providers, middleware).
  2. Tools are typed Python functions; descriptions are prompts.
  3. Sessions give memory; context providers inject & learn.
  4. Specialise agents; delegate with as_tool().
  5. Workflows when the path is known; prebuilt builders for common patterns.
  6. Humans in the loop via request_info; checkpoints for durability.
  7. Middleware + OpenTelemetry + tests before production.
4Next steps

Enterprise adoption roadmap

Start small with an internal, low-risk, high-volume use case; instrument everything; then scale.

Explore

Weeks 1–2

Pick 1 internal, high-volume, low-risk use case. Prototype with tools + sessions.

Pilot

Weeks 3–6

Workflow + human approval, OpenTelemetry, eval dataset, 10–50 users.

Harden

Weeks 7–10

Guardrail middleware, Entra ID auth, checkpoints, cost dashboards.

Scale

Quarter 2+

Reusable agent catalogue, A2A interop, Foundry hosting, CoE.

Key takeaways

01

You can build, connect, orchestrate and observe agents with one framework.

02

Provider-agnostic: Groq today, Azure OpenAI / Foundry tomorrow — same code.

03

Production = workflows + human gates + telemetry + tests.

Hands-on activity

Demonstrate the completed multi-agent application

  1. 1Open the Capstone page and walk through the architecture.
  2. 2Run the Coordinator flow with human approval in the Multi-Agent Studio.
  3. 3Download the labs folder and run capstone_business_ops.py locally.
Open Multi-Agent Studio

Reference solution — labs/capstone_business_ops.py (verified on agent-framework-core 1.26)

capstone_business_ops.py
1"""Capstone — Multi-Agent Business Operations Assistant.
2
3Flow (matches the workshop architecture):
4 User request -> Coordinator (plan) -> Research -> Analysis -> Recommendation
5 -> HUMAN APPROVAL (human-in-the-loop) -> Coordinator (consolidate) -> Final brief
6
7Built with the *functional* workflow API: plain async Python + @step for
8caching/checkpointing + ctx.request_info() for human approval.
9"""
10
11import asyncio
12
13from agent_framework import Agent, RunContext, step, workflow
14from common import make_client
15
16client = make_client()
17
18coordinator = Agent(
19 client=client,
20 name="Coordinator",
21 instructions=(
22 "You are the coordinator of a business operations team. "
23 "When PLANNING: restate the goal and list 3 research questions. "
24 "When CONSOLIDATING: write an executive brief with Summary, Key Insights, "
25 "Recommendations and Next Steps. Max 250 words."
26 ),
27)
28research = Agent(client=client, name="Research", instructions="Answer the research questions with concise, factual bullets.")
29analysis = Agent(client=client, name="Analysis", instructions="Identify 3 insights, 2 risks and 2 opportunities from the research.")
30recommender = Agent(client=client, name="Recommendation", instructions="Produce 3 prioritised, actionable recommendations with a KPI each.")
31
32
33@step
34async def plan(request: str) -> str:
35 return (await coordinator.run(f"PLANNING. Request: {request}")).text
36
37
38@step
39async def do_research(plan_text: str) -> str:
40 return (await research.run(plan_text)).text
41
42
43@step
44async def do_analysis(findings: str) -> str:
45 return (await analysis.run(findings)).text
46
47
48@step
49async def do_recommend(insights: str) -> str:
50 return (await recommender.run(insights)).text
51
52
53@step
54async def consolidate(request: str, insights: str, recs: str, reviewer_note: str) -> str:
55 prompt = (
56 f"CONSOLIDATING. Original request: {request}\n\nInsights:\n{insights}\n\n"
57 f"Recommendations:\n{recs}\n\nReviewer note: {reviewer_note}"
58 )
59 return (await coordinator.run(prompt)).text
60
61
62@workflow(name="business_ops_assistant")
63async def business_ops(request: str, ctx: RunContext) -> str:
64 plan_text = await plan(request)
65 findings = await do_research(plan_text)
66 insights = await do_analysis(findings)
67 recs = await do_recommend(insights)
68
69 # Human-in-the-loop: pause and ask a manager to approve / annotate
70 note = await ctx.request_info(
71 {"question": "Approve these recommendations? Add a note or type 'approve'.", "draft": recs},
72 response_type=str,
73 request_id="manager_approval",
74 )
75 return await consolidate(request, insights, recs, note)
76
77
78async def main() -> None:
79 request = input("Business request: ") or "Reduce customer onboarding time by 30% next quarter."
80 wf = business_ops.build()
81
82 result = await wf.run(request)
83 pending = result.get_request_info_events()
84 if pending:
85 event = pending[0]
86 print("\n--- DRAFT FOR REVIEW ---\n", event.data["draft"])
87 note = input("\nManager note (or 'approve'): ") or "approve"
88 result = await wf.run(responses={event.request_id: note}) # resume; cached steps are not re-run
89
90 print("\n=== FINAL BRIEF ===\n", result.get_outputs()[-1])
91
92
93if __name__ == "__main__":
94 asyncio.run(main())

Check your understanding

0/2

Q1.Which combination best describes a production-ready agent system?

Q2.To move the workshop code from Groq to Azure OpenAI you change…

M7 · Testing & RAICapstone project