Skip to content

Commit 7b70f7b

Browse files
committed
patch ACR to web app with multiagent
1 parent 00098be commit 7b70f7b

6 files changed

Lines changed: 421 additions & 163 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

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) {

0 commit comments

Comments
 (0)