Building the Agentic Future
Welcome to our intensive, hands-on workshop on building agentic AI applications using Microsoft's Semantic Kernel framework! This workshop will take you from foundational concepts to advanced multi-agent orchestration through a series of progressive labs.
This workshop explores the cutting-edge world of Agentic AI using Microsoft's Semantic Kernel framework. Through a series of four progressive labs, you'll learn how to build, customize, and orchestrate AI agents to perform complex tasks.
Semantic Kernel is an open-source SDK that integrates Large Language Models (LLMs) with conventional programming languages. It combines the strengths of:
- π Natural language semantics: Leveraging the power of LLMs to understand and generate human language
- βοΈ Traditional programming: Using the precision and reliability of conventional code
- π§© Extensible architecture: Building flexible plugin systems for enhanced capabilities
Semantic Kernel serves as the foundation for creating AI applications that can reason, learn, and interact in sophisticated ways.
Agentic AI refers to autonomous systems that can:
- π― Set and pursue goals: Define objectives and take steps to achieve them
- π Adapt to feedback: Learn from success and failure
- π οΈ Use tools and APIs: Interact with external systems and data sources
- π€ Collaborate: Work with humans and other agents to solve problems
This workshop focuses on building these capabilities using Semantic Kernel as the underlying framework.
This workshop is divided into four progressive labs, each building on the knowledge gained in the previous one:
| Lab | Title | Focus Area |
|---|---|---|
| Lab 01 | π‘ Introduction to Semantic Kernel | Core concepts, creating a simple plugin |
| Lab 02 | π§° Working with Built-in Plugins | Leveraging existing plugins, understanding plugin architecture |
| Lab 03 | π‘ Model Context Protocol (MCP) | Advanced communication patterns between models and applications |
| Lab 04 | π Multi-Agent Orchestration | Creating agent teams, managing group interactions |
Each lab includes hands-on coding exercises, conceptual explanations, and challenges to deepen your understanding.
Before starting this workshop, please ensure you have the following:
- π» Intermediate C# programming experience
- π Basic understanding of RESTful APIs
- π€ Familiarity with AI/ML concepts (helpful but not required)
- π Visual Studio Code with C# extensions (or Visual Studio 2022 or latest)
- π οΈ .NET SDK 9.0 or later
- π Git for version control
- π Azure CLI (for infrastructure deployment)
- π GitHub account
- βοΈ Microsoft Azure account with active subscription
- π OpenAI API access (or Azure OpenAI Service access)
Follow these steps to prepare your environment for the workshop:
git clone https://github.com/..../AgenticWorkshop-SemanticKernel.git
cd AgenticWorkshop-SemanticKernelEach lab contains its own project with specific dependencies. To install dependencies for all labs at once:
dotnet restore AgenticWorkshop-SemanticKernel.slnCreate a .env file in each project directory with your API keys:
# .env file example
AZURE_OPENAI_ENDPOINT=""
AZURE_OPENAI_KEY=""
GITHUB_PERSONAL_ACCESS_TOKEN=""
GOOGLE_API_KEY=""
GOOGLE_SEARCH_ENGINE_ID=""
β οΈ Security Note: Never commit API keys to your repository. The.gitignorefile includes.envto help prevent this.
This workshop requires specific Azure resources. Follow these steps to deploy them:
- π§ Azure OpenAI Service: For accessing GPT models
- π Google Custom Search: For Implementing a Built-in Web Search RAG Agent (Lab 2)
We've created automated deployment scripts to simplify the process:
cd infra
./deploy-workshop-infra.ps1 -SubscriptionId "your-subscription-id" -ResourceGroup "sk-workshop-rg" -Location "eastus"This script will:
- π Log you into Azure (if needed)
- π Create the resource group if it doesn't exist
- π Deploy all required resources with appropriate configurations
- π Set up necessary permissions and networking
- π Output a configuration file for use in the labs
After deployment completes, you'll need to:
-
π Create deployments for your Azure OpenAI models
- GPT-4 Turbo: Recommended for all labs
- GPT-3.5 Turbo: Minimum for Labs 1-2
-
π οΈ Configure the deployed resources as needed for your specific environment
π‘ Note: Detailed instructions for each step are provided in the
infra/README.mdfile.
In this lab, you'll get started with Semantic Kernel fundamentals:
- β Set up a basic Semantic Kernel project
- β Create your first semantic function
- β Implement a simple "Lights Plugin" to control virtual lights
- β Learn about prompt engineering within the Semantic Kernel context
This lab provides a gentle introduction to the framework and establishes the foundation for more complex applications.
In this lab, you'll expand your knowledge by working with pre-built plugins:
- β Integrate the Google search plugin
- β Chain multiple plugins together
- β Create a conversational agent that uses external data sources
- β Learn how to debug and trace plugin execution
You'll see how Semantic Kernel's plugin architecture enables powerful compositions of capabilities.
This lab introduces the Model Context Protocol (MCP) - an advanced communication mechanism:
- β Create an MCP client and server
- β Build a GitHub integration agent
- β Implement a code-fixing agent that can repair bugs
- β Explore request/response filters for enhanced control
MCP represents a significant step forward in managing complex AI interactions and tool usage.
The final lab explores the cutting edge of agentic systems - multiple agents working together:
- β Configure specialized agents with different roles
- β Create agent groups with hierarchical structures
- β Implement approval flows and termination strategies
- β Build a multi-agent system that can solve complex problems
You'll learn how multiple agents can collaborate, debate, and achieve goals that would be difficult for single agents.
- Semantic Kernel Official Documentation
- Semantic Kernel GitHub Repository
- Azure OpenAI Service Documentation
- Prompt Engineering Guide
- Introduction to Semantic Kernel
- Building AI Agents for Beginners (Playlist)
- Building AI Applications with Semantic Kernel (Playlist)
- Semantic Kernel Deep Dive Session
- Semantic Kernel: DevBlog
- Agentic AI: A New Paradigm In Autonomous Artificial Intelligence (Forbes)
- Multi-Agent Systems Best Practices
- β Issue: Azure OpenAI authentication failures
- π¨ Solution: Check that your API keys are correctly configured in
.envand that your Azure role assignments include "Cognitive Services OpenAI User"
- β Issue: Resource deployment fails
- π¨ Solution: Ensure you have sufficient permissions and quota in your Azure subscription. For OpenAI resources, verify your region availability and quota.
Contributions to improve this workshop are welcome! Please consider:
- Submitting issues for bugs or suggestions
- Creating pull requests with improvements
- Sharing your experience and examples
Please review our contributing guidelines before making a contribution.
This workshop is licensed under the MIT License - see the LICENSE file for details.
Created with β€οΈ by Microsoft - Marco Antonio Silva
GitHub β’ Semantic Kernel β’ Community
