MAF

Conclusion

Congratulations โ€” you have completed the Microsoft Agent Framework Workshop!

What You Built

Starting from a blank Python project, you built OpsAgent โ€” a fully featured AI-powered operations and engineering assistant:

ModuleWhat You BuiltSkills Gained
1Python project, venv, dependenciesProject setup with uv
2LLM client via GitHub ModelsOpenAI-compatible client
3First OpsAgent with instructionsAgent, OpenAIChatCompletionClient
4Azure health check & deployment tools@tool decorator, tool calling
5Microsoft Learn MCP serverMCPStreamableHTTPTool, live docs
6Conversation history & memoryInMemoryHistoryProvider
7Persistent agent memoryFile/DB-backed persistence
8Multi-agent orchestrationWorkflow, agent pipelines
9Streamlit, Chainlit, FastAPI UIsChat interface patterns
10Azure Functions HTTP endpointAgentFunctionApp, durable state

OpsAgent โ€” Final Architecture

                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚           OpsAgent               โ”‚
                        โ”‚                                  โ”‚
                        โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
  HTTP / Chat UI โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚  โ”‚ Tools    โ”‚  โ”‚  MCP Server โ”‚  โ”‚
                        โ”‚  โ”‚ (M4)     โ”‚  โ”‚  (M5)       โ”‚  โ”‚
                        โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
                        โ”‚                                  โ”‚
                        โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
                        โ”‚  โ”‚ History  โ”‚  โ”‚  Workflows  โ”‚  โ”‚
                        โ”‚  โ”‚ (M6/M7)  โ”‚  โ”‚  (M8)       โ”‚  โ”‚
                        โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
                        โ”‚                                  โ”‚
                        โ”‚     GitHub Models (GPT-4o mini)  โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                       โ”‚
                              Azure Functions
                           (Durable HTTP endpoint)

Key Concepts Recap

ConceptClass / Feature
Agent definitionAgent(client, name, instructions, tools)
Tool registration@tool(approval_mode="never_require")
MCP integrationMCPStreamableHTTPTool(url=...)
Conversation historyInMemoryHistoryProvider(load_messages=True)
Serverless hostingAgentFunctionApp(agents=[...])
Multi-turn threadsx-ms-thread-id header

Where to Go Next

Extend OpsAgent

Some ideas to keep experimenting:

  • Add a new @tool for querying Azure Monitor logs
  • Connect a second MCP server (e.g. GitHub MCP for issue triage)
  • Replace InMemoryHistoryProvider with a Cosmos DB-backed provider
  • Expose OpsAgent via the A2A protocol so other agents can call it
  • Add an OpenAI-compatible endpoint so any OpenAI client can use it
  • Wire OpsAgent into a multi-agent Workflow alongside a CodeReviewAgent

Workshop Complete โ€” You now have a solid foundation for building, extending, and deploying AI agents with Microsoft Agent Framework. The patterns learned here โ€” tools, MCP, history, workflows, and hosting โ€” apply directly to production systems.