Skip to content

Commit c232ea9

Browse files
Merge pull request #10 from ShivamGoyal03/shivam/lab01-new-scaffold-and-docs-update
feat(lab01): migrate to new Foundry Toolkit scaffold and fix docs
2 parents 94a3fdf + 5b0722e commit c232ea9

23 files changed

Lines changed: 93 additions & 150 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,3 +419,4 @@ FodyWeavers.xsd
419419
*.msix
420420
*.msm
421421
*.msp
422+
*.deployment.json

KNOWN_ISSUES.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

session-delivery-resources/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Prior to delivering the workshop, please:
2424
| Lab 02 - multi-agent workflow | [Lab 02](../workshop/lab02-multi-agent/README.md) | Hands-on lab: build the 4-agent *Resume to Job Fit Evaluator* workflow |
2525
| Demo 1: Executive Agent | [Lab01 agent](../workshop/lab01-single-agent/agent/) | Lab 01 demo: translate technical jargon into an executive summary |
2626
| Demo 2: Resume to Job Fit Evaluator | [PersonalCareerCopilot](../workshop/lab02-multi-agent/PersonalCareerCopilot/) | Lab 02 demo: 4-agent workflow that scores resume-job fit and generates recommendations |
27-
| Known issues | [KNOWN_ISSUES.md](../KNOWN_ISSUES.md) | Workarounds for known issues you may hit during delivery |
2827

2928
> **Note for trainers:** Slide deck and video links will be added once the recordings are published. Until then, ping the maintainer (see [Contacts](#contacts)) for the latest assets.
3029
@@ -67,7 +66,6 @@ The workshop is divided into multiple sections including slides, **2 live demos*
6766
| Prerequisites checklist | [00-prerequisites.md](../workshop/lab01-single-agent/docs/00-prerequisites.md) | Tools, accounts, and Azure access required |
6867
| Hosted agents quickstart (azd) | [Learn](https://learn.microsoft.com/azure/foundry/agents/quickstarts/quickstart-hosted-agent?pivots=azd) | Official quickstart for deploying a hosted agent with `azd` |
6968
| Hosted agents region availability | [Learn](https://learn.microsoft.com/azure/foundry/agents/concepts/hosted-agents#region-availability) | Supported regions for hosted agents (preview) |
70-
| Known issues | [KNOWN_ISSUES.md](../KNOWN_ISSUES.md) | Workarounds for known issues |
7169

7270
### Trainer prerequisites
7371

workshop/lab01-single-agent/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ flowchart TD
5050
Complete the tutorial modules before starting this lab:
5151

5252
- [x] [Module 0 - Prerequisites](docs/00-prerequisites.md)
53-
- [x] [Module 1 - Install Foundry Toolkit](docs/01-install-foundry-toolkit.md)
54-
- [x] [Module 2 - Create Foundry Project](docs/02-create-foundry-project.md)
53+
- [x] [Module 1 - Setup: Extension, Project & Model](docs/01-setup.md)
54+
- [x] [Module 2 - Create Hosted Agent](docs/02-create-hosted-agent.md)
5555

5656
---
5757

@@ -107,7 +107,7 @@ Rules:
107107
### 2.2 Configure `.env`
108108

109109
```env
110-
AZURE_AI_PROJECT_ENDPOINT=https://<your-account>.services.ai.azure.com/api/projects/<your-project>
110+
FOUNDRY_PROJECT_ENDPOINT=https://<your-account>.services.ai.azure.com/api/projects/<your-project>
111111
AZURE_AI_MODEL_DEPLOYMENT_NAME=gpt-4.1-mini (or gpt-5-mini)
112112
```
113113

@@ -230,10 +230,10 @@ Key solution files:
230230

231231
| File | Description |
232232
|------|-------------|
233-
| [`agent/main.py`](agent/main.py) | Agent entry point with executive summary instructions and validation |
233+
| [`agent/main.py`](agent/main.py) | Agent entry point with executive summary instructions and `get_current_date` tool |
234234
| [`agent/agent.yaml`](agent/agent.yaml) | Agent definition (`kind: hosted`, protocols, env vars, resources) |
235235
| [`agent/Dockerfile`](agent/Dockerfile) | Container image for deployment (Python slim base image, port `8088`) |
236-
| [`agent/requirements.txt`](agent/requirements.txt) | Python dependencies (`agent-framework>=1.1.0`, `agent-framework-foundry-hosting`) |
236+
| [`agent/requirements.txt`](agent/requirements.txt) | Python dependencies (`agent-framework-foundry`, `agent-framework-foundry-hosting`, `mcp`, `debugpy`) |
237237

238238
---
239239

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
agent.manifest.yaml
2+
agent.yaml
3+
.env.example

workshop/lab01-single-agent/agent/.dockerignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ __pycache__
44
*.pyo
55
*.pyd
66
.Python
7-
.foundry
8-
.vscode
9-
.env
10-
README.md
7+
.env

workshop/lab01-single-agent/agent/.env.example

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
# Copy this file to .env and fill in your values:
33
# cp .env.example .env
44

5-
AZURE_AI_PROJECT_ENDPOINT="https://<your-resource-name>.services.ai.azure.com/api/projects/<your-project-name>"
5+
FOUNDRY_PROJECT_ENDPOINT="https://<your-resource-name>.services.ai.azure.com/api/projects/<your-project-name>"
66
AZURE_AI_MODEL_DEPLOYMENT_NAME="<your-model-deployment-name>"
7-
8-
# Optional: if your hosted agent uses MCP connection IDs from Foundry
9-
PROJECT_TOOL_CONNECTION_ID="<optional-foundry-project-connection-id>"
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"hostedAgentDeployOptions": {
3+
"deploymentMethod": "container"
4+
},
25
"projectId": "<your-foundry-project-id>",
36
"containerRegistry": "<your-container-registry>"
4-
}
7+
}

workshop/lab01-single-agent/agent/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "Debug Local Agent Server",
5+
"name": "Debug Local Agent HTTP Server",
66
"type": "debugpy",
77
"request": "attach",
88
"connect": {

workshop/lab01-single-agent/agent/.vscode/tasks.json

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,28 @@
66
"type": "aitk",
77
"command": "debug-check-prerequisites",
88
"args": {
9-
"portOccupancy": [5679, 8088],
10-
"pyPackageInstalled": ["agent-framework", "debugpy", "agent-framework-foundry-hosting"]
9+
"portOccupancy": [
10+
5679,
11+
8088
12+
],
13+
"pyPackageInstalled": ["debugpy", "agent-framework-foundry", "agent-framework-foundry-hosting"]
1114
}
1215
},
1316
{
14-
"label": "Run Agent/Workflow HTTP Server",
17+
"label": "Run Agent HTTP Server",
1518
"type": "shell",
1619
"command": {
17-
"value": "${workspaceFolder}/.venv/bin/python",
20+
"value": "${command:python.interpreterPath}",
1821
"quoting": "strong"
1922
},
2023
"args": ["-m", "debugpy", "--listen", "127.0.0.1:5679", "main.py", "--port", "8088"],
2124
"isBackground": true,
2225
"options": {
2326
"cwd": "${workspaceFolder}"
2427
},
25-
"dependsOn": ["Validate prerequisites"],
28+
"dependsOn": [
29+
"Validate prerequisites"
30+
],
2631
"problemMatcher": {
2732
"pattern": [
2833
{
@@ -35,7 +40,7 @@
3540
"background": {
3641
"activeOnStart": true,
3742
"beginsPattern": ".*",
38-
"endsPattern": "AgentServerHost started|Running on|Started server process"
43+
"endsPattern": "Application startup complete|running on|Running on|Started server process|AgentServerHost started"
3944
}
4045
}
4146
},
@@ -46,7 +51,9 @@
4651
"presentation": {
4752
"reveal": "never"
4853
},
49-
"dependsOn": ["Run Agent/Workflow HTTP Server"]
54+
"dependsOn": [
55+
"Run Agent HTTP Server"
56+
]
5057
},
5158
{
5259
"label": "Terminate All Tasks",
@@ -72,4 +79,4 @@
7279
"args": "terminateAll"
7380
}
7481
]
75-
}
82+
}

0 commit comments

Comments
 (0)