BRK555 · Breakout
Lost in San Francisco: Build AI agents that find their way
Speakers: Anthony Bartolo, Henk Boelman
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Henk Boelman and Anthony Bartolo build a game-playing AI agent in Python with Microsoft Agent Framework and a model served from Microsoft Foundry, as preparation for Lab 667. Step by step, the agent gets its tools and prompt from an MCP game server, delegates transport decisions over A2A to a remote specialist (Agent 42, which uses Azure Maps and weather data), and grounds answers in a Foundry IQ knowledge base exposed as an MCP server. The agent is then deployed as a versioned hosted agent in Foundry, with container logs and traces of its MCP calls. Anthony then shows GitHub Copilot skills and the Foundry Toolkit in VS Code for enforcing organisational rules. The session ends with OpenHack logistics and the announcement of a Lost in the City challenge road tour with 11 events in the Americas.
Best for: Developers who want a compact end-to-end example of building an agent with Microsoft Agent Framework, MCP, A2A and Foundry IQ and hosting it in Microsoft Foundry, especially before attending Lab 667.
New material starts at 34:18. Everything before is a walkthrough of existing capabilities (Agent Framework, MCP, A2A, Foundry IQ, hosted agents, GitHub Copilot skills) followed by lab and OpenHack logistics; at 34:18 the only announcement starts, the Lost in the City challenge road tour.
Where to skip: Skip to 04:15 for the basic Agent Framework demo; the MCP demo at 07:55, the A2A demo at 12:24, the Foundry IQ demo at 17:24 and the hosted-agent deployment at 19:42 are the core. The GitHub Copilot skills demo at 24:09 is optional, and from 29:34 onward it is mostly logistics apart from the road tour mention at 34:18. Nothing here concerns Microsoft 365 Copilot.
Chapters (16)
- 00:01 Recap Depth 100 · Novelty 0/3
Session intro: the Lost in San Francisco agent mission and Lab 667
Anthony Bartolo introduces himself and Henk Boelman and frames the session around navigating a city with multiple apps versus an agent that does it for you. The mission is an AI agent that finds its way through a city, reasons about each quest and calls the right specialist. He stresses that a human in the loop who verifies results is as important as building the agent, and positions the session as a precursor to Lab 667.
- 02:21 Deep dive Depth 200 · Novelty 1/3
Game walkthrough and agent architecture: model, instructions, tools, agent harness
Henk describes the Lost in the City game: being dropped in the city, finding transport, solving clues from a city guide and reading a secret code in Klingon. He outlines the agent architecture: a model served from Microsoft Foundry, instructions retrieved from an MCP server, and tools including Foundry IQ, MCP servers, A2A agents and memory. He explains that a model needs an agent harness, here Microsoft Agent Framework, which connects tools, delivers instructions, logs what the agent does and runs the agent loop.
- 04:15 Demo Depth 300 · Novelty 1/3
Demo: basic Python agent with Microsoft Agent Framework and a Foundry model
Henk shows the Microsoft Foundry project with three deployed models and their connection strings. In Python with Microsoft Agent Framework he creates a client to Foundry, an agent with simple instructions and a name, and a message loop. He notes that the result is just a basic chatbot, but that this is the foundation every agent needs.
- 06:04 Deep dive Depth 200 · Novelty 0/3
How MCP works: tool discovery, tool calls and server-provided prompts
Henk explains that MCP replaces per-tool custom integrations with one open standard. The agent requests the list of tools, the server returns described tools (start quest, get player status, submit answer), the model selects a tool and calls it with parameters. He highlights that an MCP server can also expose prompts, so the server owner defines the prompt used to play the game.
- 07:55 Demo Depth 300 · Novelty 1/3
Demo: connecting the agent to the game MCP server and retrieving its prompt
Henk adds an MCP streamable tool pointing to the game server with an authorization key and replaces the hard-coded instructions with the game prompt retrieved from the MCP server. Running the agent discovers the tools and starts the game session. The first quest requires choosing a transport mode between two points, depending on weather and traffic.
- 09:49 Deep dive Depth 200 · Novelty 1/3
A2A protocol and Agent 42: transport advice using Azure Maps and weather data
Henk explains A2A as an open standard for discovering and communicating with agents built in different frameworks by different vendors. A2A can exchange text, structured data, URLs to files and raw data. Agent 42 validates the player key, uses Azure Maps real-time traffic and a weather API, reasons with its own model about the best transport and returns a structured answer.
- 12:24 Demo Depth 300 · Novelty 1/3
Demo: adding Agent 42 as an A2A tool and solving the transport quest
Henk creates an A2A client with an API key and the agent URL, wraps it as an A2A agent with a description and adds it as a tool. Asking for help routes the Grand Avenue to Columbus Avenue question to Agent 42, which returns weather, distances, a route map and a bike recommendation. Answering bike unlocks the next quest, a city-guide question to be answered with Foundry IQ because a few hundred PDFs could not be searched effectively by hand.
- 15:27 Deep dive Depth 200 · Novelty 1/3
MCP vs A2A, and Foundry IQ as managed retrieval exposed through an MCP server
Henk contrasts MCP, which connects agents to tools and data, with A2A, which connects agents to other agents, describing them as complementary. He presents Foundry IQ as a single interface that exposes an MCP server returning answers directly instead of raw search results, removing the need to build custom RAG per agent. For the game, about 20 markdown files are loaded into Foundry IQ.
- 17:24 Demo Depth 300 · Novelty 1/3
Demo: creating a Foundry IQ knowledge base and wiring it to the agent via MCP
In the Knowledge tab of Microsoft Foundry, Henk shows a knowledge base configured with a description, a mode (extractive data or answering), a model, settings and a markdown data source, which he says takes about 5 minutes. In code he connects to the Foundry IQ (Azure AI Search) endpoint and knowledge base like any other MCP server and adds the city guide to the tools. The agent looks up the clue and returns City Lights bookstore as the answer.
- 19:42 Demo Depth 300 · Novelty 1/3
Demo: deploying the agent as a versioned hosted agent in Microsoft Foundry
Henk explains that hosted agents in Foundry remove the need to run your own infrastructure: an agent from any framework is containerised and Foundry handles scaling, security and observability. Deployment requires a Dockerfile and an Azure CLI command, takes about 5 minutes, and each deployment is automatically versioned with a selectable default version. He chats with version 4 of the hosted agent, shows the container logs and traces of MCP calls and the model used.
- 22:13 Recap Depth 100 · Novelty 0/3
Recap of the agent build and introduction to GitHub Copilot with Foundry
Henk recaps the steps: agent harness and model, MCP for game and instructions, A2A to Agent 42, Foundry IQ retrieval, the secret note left for the lab, and hosting in Microsoft Foundry. Anthony notes Henk solved the challenge in 28 minutes while lab participants get 75 minutes. He introduces using GitHub Copilot inside an IDE together with Foundry and Agent Framework, while stressing the human must verify what is generated.
- 24:09 Demo Depth 200 · Novelty 1/3
Demo: GitHub Copilot skills and Foundry Toolkit in VS Code to enforce org rules
In VS Code with GitHub Copilot, Anthony shows skills that encode organisational rules, such as a privacy skill stating never request, collect or extract real names, and skills that pin deployments to an assigned Azure subscription; Copilot can also generate skills from business logic. The Foundry Toolkit extension brings the Foundry experience into the IDE so developers stay in flow. He recommends pasting the lab requirement into Copilot asking it to teach rather than build, so the developer stays in control and verifies the output for security.
- 29:34 Recap Depth 100 · Novelty 0/3
Recap of instructions, skills and agents; Lab 667 logistics and open-source code
Anthony distinguishes instructions (what the agent must accomplish), skills (repeatable rules such as using fictitious handles or a given subscription) and agents (the resulting specialist, like Agent 42). There are four deliveries of the lab this week, run on provided machines. Participants can fork the completed code to their own repo because the lab is open source, and a QR code links to registration.
- 31:48 Recap Depth 100 · Novelty 0/3
OpenHack challenge-based learning and the open-source Pizza OpenHack
Anthony explains that step-by-step labs are hard to remember, so the team runs OpenHacks, challenge-based events that state goals rather than steps, with documentation and GitHub Copilot available for help. Last year's Pizza OpenHack, an agent connecting to an MCP server to list and order pizzas, has been open-sourced by Henk and can be run on your own subscription. It originated at Build two years ago with over 900 participants and another thousand since.
- 34:18 New Depth 100 · Novelty 2/3
Announced: Lost in the City challenge road tour with 11 events in the Americas
After slide issues, Anthony announces a road tour of the new Lost in the City challenge, with 11 more challenges in North and South America beyond Lost in San Francisco. The events are free, challenge-based, include no-charge access to GitHub Copilot and Foundry, and have engineering proctors; Mexico City and São Paulo will be delivered in Spanish or Brazilian Portuguese. He says nobody leaves without completing the challenge and that this week's sessions are workshop-based rather than challenge-based.
- 35:45 Closing Depth 100 · Novelty 0/3
Closing: evaluation request and how Pizza OpenHack feedback shaped Foundry
Anthony asks attendees to fill out session evaluations. He says feedback from last year's Pizza OpenHack helped the team work with the Foundry team to increase Foundry capabilities. The speakers thank the audience.
Announcements (1)
-
Lost in the City challenge road tour
A series of free, challenge-based events with 11 challenges in North and South America, including no-charge access to GitHub Copilot and Foundry and engineering proctors.
Free events; access to GitHub Copilot and Foundry at no charge
Speaker’s quote (at 34:18)
„So we're excited to announce here at Ignite, we are doing the road tour of the new challenge, Lost in City Challenge.“
Demos (6)
-
A developer builds the minimal agent: a Python client connected to a Foundry-hosted model with instructions and a chat loop.
Steps (5)
- Open the Microsoft Foundry project and view the deployed models (three are deployed).
- Click a model deployment and copy its connection string.
- In Python with Microsoft Agent Framework, create a client that connects to Microsoft Foundry using that connection string.
- Create an agent, give it instructions and a name.
- Run a loop that sends user messages to the model and prints its replies.
Prerequisites: A Microsoft Foundry project with a deployed model and its connection string; Python with Microsoft Agent Framework.
-
Connect the Python agent to a remote MCP game server so it gets its instructions and tools from the server.
Steps (6)
- Keep the OpenAI client from the previous step.
- Create an MCP streamable tool pointing to the game server URL with an authorization key.
- Retrieve the game prompt from the MCP server and pass it to the agent as its instructions.
- Add the game MCP server to the agent's list of tools.
- Run the message loop and send a message to start the game; the agent discovers the tools and connects the player session.
- Type start to receive the first quest.
Prerequisites: Access to the game MCP server URL and an authorization key; the agent from the previous step.
-
Let the game agent delegate the transport decision to a remote specialist agent (Agent 42) over A2A.
Steps (8)
- Stop the previous run by typing exit.
- Create a client with an API key pointing to the URL of the A2A agent.
- Create the A2A agent object, give it a description and point it to the URL.
- Add the A2A agent to the agent's tools alongside the game MCP server.
- Run demo 3, reconnect to the game and confirm continuing the quest.
- Type help; the agent calls Agent 42, which uses Azure Maps and weather data to recommend a transport mode.
- Optionally open the game interface to view the full advice, route map and reasoning.
- Submit bike as the answer to unlock the next quest.
Prerequisites: URL and API key for the Agent 42 A2A endpoint; the MCP-connected agent from the previous step.
-
Ground the game agent in a set of city-guide documents without writing custom RAG code.
Steps (7)
- In Microsoft Foundry, open the Knowledge tab and create a knowledge base.
- Give it a description and choose the mode: extractive data or answering the question.
- Connect a model and adjust the settings.
- Connect the data source (a set of markdown files).
- In the agent code, define an MCP tool pointing to the Azure AI Search / Foundry IQ endpoint and the knowledge base.
- Add the city guide tool to the agent's tools list.
- Run the agent, resume the game and let it look up the answer in the documents.
Prerequisites: A Microsoft Foundry project with a deployed model, an Azure AI Search / Foundry IQ endpoint and the source documents.
-
Move the locally built agent to the cloud as a hosted, versioned and observable agent.
Steps (6)
- Create a Dockerfile for the agent code (same code as in the previous demos).
- Deploy it to Foundry with an Azure CLI command (about 5 minutes).
- Open the hosted agent in Foundry and check its version; publish the desired version as default.
- Send hello in the chat; the agent connects to the game server and retrieves its instructions.
- Watch the container start-up and output in the log pane.
- Open Traces to see the MCP connection and the model used.
Prerequisites: A Microsoft Foundry project, Docker and the Azure CLI.
-
A developer in a regulated organisation uses GitHub Copilot skills and Foundry Toolkit in VS Code to get guided help building the lab agent within company rules.
Steps (6)
- Open VS Code with GitHub Copilot enabled (preconfigured in the lab environment).
- Create or review a privacy skill containing the rule never request, collect, or extract real names.
- Add a skill that specifies the Azure subscription assigned through governance for deployments.
- Use the Foundry Toolkit extension in VS Code to access Foundry from the IDE.
- Copy the lab requirement into Copilot chat and ask it to teach you how to build it, not to build it for you.
- Follow the suggested steps and verify the generated code against your organisation's rules.
Prerequisites: VS Code with GitHub Copilot and the Foundry Toolkit extension; an assigned Azure subscription.