20 lines
829 B
Python
20 lines
829 B
Python
#!/usr/bin/env python3
|
|
"""V71 Risk+Hallu+Plan summary helper"""
|
|
import json, urllib.request, sys
|
|
try:
|
|
r = urllib.request.urlopen('http://127.0.0.1:5890/api/wevia-v71-risk-halu-plan.php', timeout=5)
|
|
d = json.loads(r.read().decode())
|
|
s = d['summary']
|
|
ps = d['plan_stats']
|
|
print(f"Risk KPIs: {s['total_kpis']} ({s['ok']}/{s['warn']}/{s['err']})")
|
|
print(f"Overall risk score: {d['overall_risk_score']}%")
|
|
print(f"Hallu benchmarks: {len(d['hallucination_benchmarks'])} - all NOT EVALUATED")
|
|
print(f"Best practices areas: {len(d['best_practices'])}")
|
|
print(f"Action plan: {ps['total']} items")
|
|
print(f" by status: {ps['by_status']}")
|
|
print(f" by priority: {ps['by_priority']}")
|
|
print(f" by source: {ps['by_source']}")
|
|
except Exception as e:
|
|
print(f"V71 ERR: {e}")
|
|
sys.exit(1)
|