Download backend/monitoring/__init__.py from ACA050/aegislm: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/spaces/ACA050/aegislm/resolve/main/backend/monitoring/__init__.py
- Command line
-
hf download hf://spaces/ACA050/aegislm/backend/monitoring/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/ACA050/aegislm/resolve/main/backend/monitoring/__init__.py
1.92 kB
| """ | |
| Monitoring Module | |
| Continuous AI Governance Infrastructure for AegisLM. | |
| Provides: | |
| - Streaming evaluation pipeline for real-time monitoring | |
| - Drift detection with statistical analysis | |
| - Alert generation and management | |
| - Dashboard data API | |
| Architecture: | |
| Live Prompt Stream | |
| β | |
| Streaming Evaluator | |
| β | |
| Defender + Judge | |
| β | |
| Rolling Metrics Store | |
| β | |
| Drift Detection | |
| β | |
| Alerting Engine | |
| β | |
| Dashboard (Monitoring Tab) | |
| """ | |
| from .alerting import ( | |
| AlertManager, | |
| AlertSeverity, | |
| AlertSummary, | |
| AlertType, | |
| get_alert_manager, | |
| ) | |
| from .drift_detection import ( | |
| DriftDetector, | |
| DriftDetectionResult, | |
| MetricWindow, | |
| get_drift_detector, | |
| ) | |
| from .pipeline import ( | |
| MonitoringPipeline, | |
| MonitoringConfig, | |
| MonitoringDashboardData, | |
| get_monitoring_pipeline, | |
| ) | |
| from .schemas import ( | |
| Alert, | |
| AlertSeverity, | |
| AlertSummary, | |
| AlertType, | |
| DriftDetectionResult, | |
| MonitoringConfig, | |
| MonitoringDashboardData, | |
| MonitoringRequest, | |
| MonitoringResponse, | |
| RollingMetrics, | |
| ) | |
| from .streaming_evaluator import ( | |
| StreamingEvaluator, | |
| get_streaming_evaluator, | |
| ) | |
| __all__ = [ | |
| # Pipeline | |
| "MonitoringPipeline", | |
| "MonitoringConfig", | |
| "MonitoringDashboardData", | |
| "get_monitoring_pipeline", | |
| # Streaming Evaluator | |
| "StreamingEvaluator", | |
| "get_streaming_evaluator", | |
| # Drift Detection | |
| "DriftDetector", | |
| "DriftDetectionResult", | |
| "MetricWindow", | |
| "get_drift_detector", | |
| # Alerting | |
| "AlertManager", | |
| "Alert", | |
| "AlertType", | |
| "AlertSeverity", | |
| "AlertSummary", | |
| "get_alert_manager", | |
| # Schemas | |
| "MonitoringRequest", | |
| "MonitoringResponse", | |
| "RollingMetrics", | |
| ] | |
| # Version | |
| __version__ = "0.1.0" | |