microsoft-foundry / Foundry-Agent-Lab
PublicReady-to-use structured and progressively complex agent demos with demo scripts and How-it works.
Microsoft Foundry Agent Lab is an official educational project from Microsoft containing 9 progressive examples that teach you how to build AI agents. Starting from the simplest chat agent, each demo adds one new concept: function calling with live APIs, desktop and web interfaces, built-in web search with citations, code execution in a sandbox, document search (RAG), external tool integration via MCP, centralized tool governance with Toolbox, and self-hosted agents. The project uses Azure authentication (no hardcoded secrets), includes detailed presenter guides and demo scripts, and works with Microsoft Foundry's Model Router to automatically select the best AI model for each task.
How It Works
You've heard about AI agents and want to create one that can search the web, answer questions, and use tools.
You grab a collection of 9 ready-to-run examples from Microsoft that teach you one concept at a time.
With just a few lines of code, your agent comes to life and you can chat with it in the terminal.
You add abilities one by one: weather lookup, web search with citations, code execution, and searching through your own documents.
Type messages directly in your command window
Chat in a friendly pop-up window with scrollback
Access your agent through any browser tab
You link your agent to GitHub and other services with human approval required before any action runs.
Your agent can search the web, run code, read your documents, and connect to external services—all with enterprise-grade security.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.