-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_agents.bat
More file actions
50 lines (42 loc) · 1.69 KB
/
start_agents.bat
File metadata and controls
50 lines (42 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
echo ========================================
echo ASI Alliance Supply Chain Agents
echo ========================================
echo.
REM Vérifie que l'environnement virtuel existe
if not exist "venv\Scripts\activate.bat" (
echo ERREUR: Environnement virtuel non trouve!
echo Execute: python -m venv venv
pause
exit /b 1
)
echo Activation de l'environnement virtuel...
call venv\Scripts\activate.bat
echo.
echo Lancement des 4 agents en parallele...
echo.
REM Lance les 4 agents dans des fenêtres séparées
start "Coordination Hub (Port 8000)" cmd /k "venv\Scripts\python.exe agents\coordination_hub.py"
timeout /t 2 /nobreak > nul
start "Inventory Monitor (Port 8001)" cmd /k "venv\Scripts\python.exe agents\inventory_monitor.py"
timeout /t 2 /nobreak > nul
start "Route Optimizer (Port 8002)" cmd /k "venv\Scripts\python.exe agents\route_optimizer.py"
timeout /t 2 /nobreak > nul
start "Demand Predictor (Port 8003)" cmd /k "venv\Scripts\python.exe agents\demand_predictor.py"
timeout /t 2 /nobreak > nul
echo.
echo ========================================
echo Tous les agents sont lances!
echo ========================================
echo.
echo Dashboard local: http://localhost:8080/dashboard.html
echo.
echo Agent Addresses:
echo - Coordination Hub: agent1q0j0ara7acrf2jr9nvcxtxvv5ptjt0gl0jrlmrlvrz8tqdaumq2cysr49g9
echo - Inventory Monitor: agent1qvjr0s6phucjm90qhmq2eud0l2njeql77fsjq9vz4zlfhqtw8nc5k2ru9fq
echo - Route Optimizer: agent1qvufwnmetz0u92yzw7ls8lh2utumwcd87fr78y7nhdg0mllgdd0tuhc3njm
echo - Demand Predictor: agent1qfj4m84me57yggpq0qpetwga6rrdkhldv8kf7ap3zwx9c9tzshkscmqdajd
echo.
echo Pour arreter tous les agents, ferme toutes les fenetres.
echo.
pause