Skip to content

Commit 168be43

Browse files
authored
Merge pull request #8 from MicrosoftCloudEssentials-LearningHub/multi-agent-docker-patch
patch ACR to web app with multiagent
2 parents 00098be + 3d9591d commit 168be43

10 files changed

Lines changed: 429 additions & 171 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ LogFiles
88
deploy.log
99
__pycache__
1010
*.log
11+
*agents_state.json
1112

1213
# .tfstate files
1314
*.tfstate

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ graph TD
106106

107107
<!-- START BADGE -->
108108
<div align="center">
109-
<img src="https://img.shields.io/badge/Total%20views-1586-limegreen" alt="Total views">
110-
<p>Refresh Date: 2025-11-29</p>
109+
<img src="https://img.shields.io/badge/Total%20views-1611-limegreen" alt="Total views">
110+
<p>Refresh Date: 2025-12-03</p>
111111
</div>
112112
<!-- END BADGE -->

TROUBLESHOOTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ terraform apply
347347

348348
<!-- START BADGE -->
349349
<div align="center">
350-
<img src="https://img.shields.io/badge/Total%20views-1586-limegreen" alt="Total views">
351-
<p>Refresh Date: 2025-11-29</p>
350+
<img src="https://img.shields.io/badge/Total%20views-1611-limegreen" alt="Total views">
351+
<p>Refresh Date: 2025-12-03</p>
352352
</div>
353353
<!-- END BADGE -->

src/DATA_PIPELINE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ az search index show-statistics \
277277

278278
<!-- START BADGE -->
279279
<div align="center">
280-
<img src="https://img.shields.io/badge/Total%20views-1586-limegreen" alt="Total views">
281-
<p>Refresh Date: 2025-11-29</p>
280+
<img src="https://img.shields.io/badge/Total%20views-1611-limegreen" alt="Total views">
281+
<p>Refresh Date: 2025-12-03</p>
282282
</div>
283283
<!-- END BADGE -->

src/app/agents/agents_state.json

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

src/app/agents/deploy_real_agents.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ def deploy_agents():
9999
]
100100

101101
# Load prior state (instruction hashes) if present
102-
state_path = os.path.join(os.path.dirname(__file__), "agents_state.json")
102+
# Write to terraform temp directory instead of src/app/agents
103+
terraform_dir = os.path.join(os.path.dirname(__file__), "..", "..", "..", "terraform-infrastructure")
104+
state_path = os.path.join(terraform_dir, ".terraform", "agents_state.json")
105+
os.makedirs(os.path.dirname(state_path), exist_ok=True)
103106
prior_state = {}
104107
if os.path.exists(state_path):
105108
try:

src/app/templates/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ <h1>🏠 Zava AI Shopping Assistant</h1>
314314

315315
function getAgentDisplayName(agent) {
316316
const agentNames = {
317-
'cora': 'Cora',
318-
'interior_design': 'Design Specialist',
319-
'inventory': 'Inventory Manager',
320-
'customer_loyalty': 'Rewards Specialist',
321-
'cart': 'Cart Manager',
322-
'single': 'Assistant'
317+
'cora': '🏠 Cora',
318+
'interior_design': '🎨 Design Specialist',
319+
'inventory': '📦 Inventory Manager',
320+
'customer_loyalty': '🎁 Rewards Specialist',
321+
'cart': '🛒 Cart Manager',
322+
'single': '🤖 Assistant'
323323
};
324-
return agentNames[agent] || 'Assistant';
324+
return agentNames[agent] || '🤖 Assistant';
325325
}
326326

327327
function addMessage(text, type, agentName = null, imageUrl = null) {

terraform-infrastructure/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ graph TD;
119119

120120
<!-- START BADGE -->
121121
<div align="center">
122-
<img src="https://img.shields.io/badge/Total%20views-1586-limegreen" alt="Total views">
123-
<p>Refresh Date: 2025-11-29</p>
122+
<img src="https://img.shields.io/badge/Total%20views-1611-limegreen" alt="Total views">
123+
<p>Refresh Date: 2025-12-03</p>
124124
</div>
125125
<!-- END BADGE -->

0 commit comments

Comments
 (0)