Slide 1

Slide 1 text

Workshop: Building AI Agents Bethany Jepchumba | @bethanyjep

Slide 2

Slide 2 text

• Cloud Advocate (DevRel) at Microsoft • Works with NGOs & Communities, currently ICT Director at TOFA • I am a hobbist, I enjoy trying out new hobbies Today’s session: https://bethany-jep.com/events/agentcon-accra-2025/ Bethany Jepchumba Microsoft confidential 2

Slide 3

Slide 3 text

Question: Have you built an agent before?

Slide 4

Slide 4 text

The concept of LLMs…. 4

Slide 5

Slide 5 text

How language models work Natural language input Model Tokens Probability distribution Natural language output Decoding + Post-processing Get results Pre-processing

Slide 6

Slide 6 text

RAG, Agents and MCP Giving your LLMs some powers, sort of…. 6

Slide 7

Slide 7 text

BYOD -> Retrieval-Augmented Generation (RAG)

Slide 8

Slide 8 text

What is an AI agent? LLM Instructions Tools Agent + + An AI agent is a micro-service that takes unstructured messages, optionally invokes other APIs and returns messages/action 1 2 3 Input System events User messages Agent messages 1 Tool calls Knowledge Actions Memory 2 Output Agent messages Tool results 3

Slide 9

Slide 9 text

Unlike previous tools, AI Agent can… reason, act and learn

Slide 10

Slide 10 text

What is Model Context Protocol (MCP)? Ship once – reach every MCP-enabled client in your organization A secure, open standard that lets AI agents access tools, APIs, and data through a consistent interface — without custom integrations. In Azure AI Foundry Agent Service, MCP connects agents to your enterprise and external systems with a single, reusable protocol — secured, governed, and observable by Azure. Clients • Foundry Agents • Copilot Studio • GitHub Copilot • VS Code Servers/ Tools • Azure Services (Search, Cosmos DB, Power Platform, etc.) • Third-party APIs (Salesforce, ServiceNow, REST APIs) • On-prem data MCP Protocol • One standard interface • Security: Entra ID • Observability: Azure Monitor

Slide 11

Slide 11 text

MCP Model Context Protocol - Easier to give context to models - Optimized communication between LLMs, external tools, data sources and applications - Uses a client-server model for interactions

Slide 12

Slide 12 text

Model Context Protocol At Microsoft Model Context Protocol MCP enables seamless integration between LLM Apps and external data sources Azure API Management Build Local & Remote MCPs MCP SDK Microsoft Connectors Azure Functions Tools Etc. … Community Windows Registry VS Code BYO Enterprise or MCP Clients & Host Copilot Studio Foundry agents Visual Studio Windows VS Code GitHub Copilot Entra ID

Slide 13

Slide 13 text

Enhancing Security for MCP Servers Use credential manager to authorize access to your backend MCP servers Protect your remote MCP servers with OAuth 2.0 and API Management Blog aka.ms/remote-mcp-apim-auth-blog Generally Available Azure API Management Safety Policies Azure OpenAI MCP enabled Tools Azure Monitor Logs & Metrics … Credential Manager Agents …

Slide 14

Slide 14 text

AI development natively embedded in your VS Code workflow AI Toolkit Extension

Slide 15

Slide 15 text

MCP Servers AI Toolkit

Slide 16

Slide 16 text

GitHub Copilot Agent Mode Develop alongside AI agents that can automatically review and update your code

Slide 17

Slide 17 text

https://bethany-jep.com/events/alx-workshop/ Let’s build an AI Agent

Slide 18

Slide 18 text

Security, monitoring and evaluations. Agents in production…. 19

Slide 19

Slide 19 text

Generative AI Development Lifecycle Hypo thesis Find LLMs Try prompts Manage Customize Design Managing PREPARE FOR APP DEPLOYMENT ADVANCE PROJECT BUSINESS NEED Deploy LLM App/UI Quo ta and cost management REVERT PROJECT C ontent Filtering M onitoring SEND FEEDBACK Prompt Engine ering or Fine-tuning Evalua tion Exceptio n Handling Retrieval Augmente d Generation Prote ct & govern

Slide 20

Slide 20 text

How do you typically test if a model or application is working as intended?

Slide 21

Slide 21 text

The value of evaluating AI systems Quality assurance Performance metrics Bias detection User trust

Slide 22

Slide 22 text

Mitigation layers Application Platform

Slide 23

Slide 23 text

• Violence • Sexual • Self-harm • Hate and Unfairness • Ungrounded Attributes • Code Vulnerability • Protected Materials • Content Safety Evaluators in Azure AI Foundry Safety & Security • Fluency • QA • Coherence • Intent Resolution • Task Adherence • Tool call accuracy General Purpose • Retrieval • Document Retrieval • Groundedness • Relevance • Response Completeness RAG Agents

Slide 24

Slide 24 text

Evaluate agentic workflows User query “Weather tomorrow.” Intent resolution User wants to know the local weather and the time to forecast. Tool calls Call location and time API Call weather API Final response “The temperature will be 30 degrees. Rain will…” Intent resolution evaluation • User intent identification • Clarification for ambiguity Tool call accuracy evaluation • Correct tool call selection • Correct parameter extraction Final response evaluation • Task adherence • Response completeness Quality and Safety evaluation • RAG quality (Groundedness/Relevance/Retrieval) • Risk and Safety (Jailbreak/Code Vulnerabilities/Ungrounded Attributes

Slide 25

Slide 25 text

Tips for meaningful agent evaluation Change one variable at a time Use identical prompts for fair tests Score with a consistent rubric Keep a changelog of changes Note trade-offs (e.g., speed vs. quality) Learn why a version wins

Slide 26

Slide 26 text

Production Ready

Slide 27

Slide 27 text

Azure AI Foundry Foundry Models Foundry Agents Azure AI Search Azure AI Services Azure Machine Learning Azure AI Content Safety Foundry Observability Security • Identity • Management Copilot Studio Visual Studio GitHub Foundry SDK Cloud Azure Azure Arc Foundry Local Edge Serverless Control Azure Kubernetes Service Azure Container Apps Azure App Service Azure Functions

Slide 28

Slide 28 text

Foundry Observability Dashboard Azure AI Foundry Observability, integrated with Azure Monitor Application Insights, enables you to continuously monitor your AI applications

Slide 29

Slide 29 text

Rapidly prototype with GitHub-hosted models using the AI Toolkit Design and evaluate agents in VS Code using Agent Builder Use GitHub Copilot Agent Mode to integrate your agent code to an existing application Deploy to Azure AI Foundry for scale, security, and observability From idea to impact In this session, you saw how to: 4 3 2 1 What we’ve built in VS Code… powers production app.

Slide 30

Slide 30 text

Your tools are ready. What will you build? Access this session’s resources https://bethany-jep.com/events/alx-workshop/

Slide 31

Slide 31 text

Thank You