-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_setup.py
More file actions
68 lines (56 loc) · 1.86 KB
/
verify_setup.py
File metadata and controls
68 lines (56 loc) · 1.86 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import sys
import os
# Ensure we can import from local
sys.path.append(os.getcwd())
def main():
print("=== Medical Assistant Setup Verification ===")
# 1. Check Directory Structure
req_dirs = ["Agents", "Data", "Utils"]
for d in req_dirs:
if os.path.exists(d):
print(f"[PASS] Directory found: {d}")
else:
print(f"[FAIL] Missing directory: {d}")
# 2. Check Data Files
req_files_actual = [
"Data/medicines.csv",
"Data/inventory.csv",
"Data/zipcodes.csv",
"Data/pharmacies.json",
"Data/doctors.csv",
"Data/interactions.csv"
]
for f in req_files_actual:
if os.path.exists(f):
print(f"[PASS] Data file found: {f}")
else:
print(f"[FAIL] Missing data file: {f}")
# 3. Check Imports
try:
from Agents.ingestion import IngestionAgent
print("[PASS] Imported IngestionAgent")
except ImportError as e:
print(f"[FAIL] IngestionAgent import failed: {e}")
try:
from Agents.imaging import ImagingAgent
print("[PASS] Imported ImagingAgent")
except ImportError as e:
print(f"[FAIL] ImagingAgent import failed: {e}")
try:
from Agents.therapy import TherapyAgent
print("[PASS] Imported TherapyAgent")
except ImportError as e:
print(f"[FAIL] TherapyAgent import failed: {e}")
try:
from Agents.pharmacy_match import PharmacyAgent
print("[PASS] Imported PharmacyAgent")
except ImportError as e:
print(f"[FAIL] PharmacyAgent import failed: {e}")
try:
from Agents.coordinator import Orchestrator
print("[PASS] Imported Orchestrator")
except ImportError as e:
print(f"[FAIL] Orchestrator import failed: {e}")
print("\n=== Verification Complete ===")
if __name__ == "__main__":
main()