2️⃣ Create Your First Agent
In this level, you will take your first big step: creating a working agent.
Think of this as the "Hello World" moment of the Open Hack. 🎉
By connecting to Microsoft Foundry, you’ll create an agent that can run both locally and in the cloud.
This is the foundation on which you’ll build all later capabilities — from personality to store knowledge to pizza ordering.
By the end of this level, you’ll have an agent that says hello and proves your setup is working correctly.
📋 Tasks
- Connect to Azure and Microsoft Foundry in code.
- Create a basic agent that says hello.
✅ Pass Criteria and Requirements
- The agent appears in Microsoft Foundry under the Agents tab.
- You can launch the agent from both the command line and the Microsoft Foundry Agent Playground.
- The agent responds with "hello" to your input.
📚 Resources
🛠️ Hints and Tips
Things will be easier if you use GitHub Codespaces, especially for Python developers. If you do, the following tools will be pre-installed for you in the dev container:
- A recent version of python
- The Azure CLI
- A
myagentfolder for sandbox development (this folder will not be tracked by git)
(You'll need to make sure these tools are available to you otherwise.)
Use az login --use-device-code to log in to your Azure Subscription via the Azure CLI.
You could ask GitHub Codespaces Agent to "create an agent using Microsoft Foundry SDK that always responds 'Hello' to any input" to get started.
To create your agent from scratch, use either the Microsoft Foundry Agent Playground or Foundry Agent Service code samples in Python or .NET to create an AI Agent and confirm the service is properly working.