Update core/true_arf_oss.py
Browse files- core/true_arf_oss.py +13 -14
core/true_arf_oss.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
"""
|
| 2 |
-
True ARF OSS v3.3.
|
| 3 |
Production-grade multi-agent AI for reliability monitoring (Advisory only)
|
| 4 |
-
|
| 5 |
This bridges the demo orchestrator with the real ARF OSS implementation.
|
| 6 |
"""
|
| 7 |
|
|
@@ -21,7 +20,7 @@ logger = logging.getLogger(__name__)
|
|
| 21 |
|
| 22 |
class TrueARFOSS:
|
| 23 |
"""
|
| 24 |
-
True ARF OSS v3.3.
|
| 25 |
|
| 26 |
This is the class that TrueARF337Orchestrator expects to import.
|
| 27 |
It provides real ARF OSS functionality by integrating with the
|
|
@@ -40,7 +39,7 @@ class TrueARFOSS:
|
|
| 40 |
"total_time_ms": 0.0
|
| 41 |
}
|
| 42 |
|
| 43 |
-
logger.info("True ARF OSS v3.3.
|
| 44 |
|
| 45 |
async def _get_mcp_client(self):
|
| 46 |
"""Lazy load OSS MCP client"""
|
|
@@ -436,7 +435,7 @@ class TrueARFOSS:
|
|
| 436 |
"similar_incidents_count": len(similar_incidents),
|
| 437 |
"rag_similarity_score": healing_intent.rag_similarity_score,
|
| 438 |
"timestamp": time.time(),
|
| 439 |
-
"arf_version": "3.3.
|
| 440 |
}
|
| 441 |
|
| 442 |
except Exception as e:
|
|
@@ -529,7 +528,7 @@ class TrueARFOSS:
|
|
| 529 |
"similar_incidents_count": 0,
|
| 530 |
"rag_similarity_score": None,
|
| 531 |
"timestamp": time.time(),
|
| 532 |
-
"arf_version": "3.3.
|
| 533 |
}
|
| 534 |
|
| 535 |
def _compile_results(self, scenario_name: str, detection_result: Dict[str, Any],
|
|
@@ -553,10 +552,10 @@ class TrueARFOSS:
|
|
| 553 |
},
|
| 554 |
"agents_used": ["Detection", "Recall", "Decision"],
|
| 555 |
"analysis_time_ms": analysis_time_ms,
|
| 556 |
-
"arf_version": "3.3.
|
| 557 |
"oss_edition": True,
|
| 558 |
"demo_display": {
|
| 559 |
-
"real_arf_version": "3.3.
|
| 560 |
"true_oss_used": True,
|
| 561 |
"enterprise_simulated": False,
|
| 562 |
"agent_details": {
|
|
@@ -577,10 +576,10 @@ class TrueARFOSS:
|
|
| 577 |
"scenario": scenario_name,
|
| 578 |
"result": "no_anomalies_detected",
|
| 579 |
"analysis_time_ms": analysis_time_ms,
|
| 580 |
-
"arf_version": "3.3.
|
| 581 |
"oss_edition": True,
|
| 582 |
"demo_display": {
|
| 583 |
-
"real_arf_version": "3.3.
|
| 584 |
"true_oss_used": True,
|
| 585 |
"no_anomalies": True
|
| 586 |
}
|
|
@@ -596,10 +595,10 @@ class TrueARFOSS:
|
|
| 596 |
"error": error,
|
| 597 |
"scenario": scenario_name,
|
| 598 |
"analysis_time_ms": analysis_time_ms,
|
| 599 |
-
"arf_version": "3.3.
|
| 600 |
"oss_edition": True,
|
| 601 |
"demo_display": {
|
| 602 |
-
"real_arf_version": "3.3.
|
| 603 |
"true_oss_used": True,
|
| 604 |
"error": error[:100]
|
| 605 |
}
|
|
@@ -610,7 +609,7 @@ class TrueARFOSS:
|
|
| 610 |
return {
|
| 611 |
**self.agent_stats,
|
| 612 |
"oss_available": self.oss_available,
|
| 613 |
-
"arf_version": "3.3.
|
| 614 |
"avg_analysis_time_ms": (
|
| 615 |
self.agent_stats["total_time_ms"] / self.agent_stats["total_analyses"]
|
| 616 |
if self.agent_stats["total_analyses"] > 0 else 0
|
|
@@ -656,7 +655,7 @@ async def get_mock_true_arf_oss(config: Optional[Dict[str, Any]] = None) -> True
|
|
| 656 |
return {
|
| 657 |
"status": "mock",
|
| 658 |
"scenario": scenario_name,
|
| 659 |
-
"message": "Mock analysis - install true ARF OSS v3.3.
|
| 660 |
"demo_display": {
|
| 661 |
"real_arf_version": "mock",
|
| 662 |
"true_oss_used": False,
|
|
|
|
| 1 |
"""
|
| 2 |
+
True ARF OSS v3.3.9 - Integration with existing OSS MCP Client
|
| 3 |
Production-grade multi-agent AI for reliability monitoring (Advisory only)
|
|
|
|
| 4 |
This bridges the demo orchestrator with the real ARF OSS implementation.
|
| 5 |
"""
|
| 6 |
|
|
|
|
| 20 |
|
| 21 |
class TrueARFOSS:
|
| 22 |
"""
|
| 23 |
+
True ARF OSS v3.3.9 - Complete integration with OSS MCP Client
|
| 24 |
|
| 25 |
This is the class that TrueARF337Orchestrator expects to import.
|
| 26 |
It provides real ARF OSS functionality by integrating with the
|
|
|
|
| 39 |
"total_time_ms": 0.0
|
| 40 |
}
|
| 41 |
|
| 42 |
+
logger.info("True ARF OSS v3.3.9 initialized")
|
| 43 |
|
| 44 |
async def _get_mcp_client(self):
|
| 45 |
"""Lazy load OSS MCP client"""
|
|
|
|
| 435 |
"similar_incidents_count": len(similar_incidents),
|
| 436 |
"rag_similarity_score": healing_intent.rag_similarity_score,
|
| 437 |
"timestamp": time.time(),
|
| 438 |
+
"arf_version": "3.3.9" # FIXED: Updated from 3.3.7 to 3.3.9
|
| 439 |
}
|
| 440 |
|
| 441 |
except Exception as e:
|
|
|
|
| 528 |
"similar_incidents_count": 0,
|
| 529 |
"rag_similarity_score": None,
|
| 530 |
"timestamp": time.time(),
|
| 531 |
+
"arf_version": "3.3.9" # FIXED: Updated from 3.3.7 to 3.3.9
|
| 532 |
}
|
| 533 |
|
| 534 |
def _compile_results(self, scenario_name: str, detection_result: Dict[str, Any],
|
|
|
|
| 552 |
},
|
| 553 |
"agents_used": ["Detection", "Recall", "Decision"],
|
| 554 |
"analysis_time_ms": analysis_time_ms,
|
| 555 |
+
"arf_version": "3.3.9", # FIXED: Updated from 3.3.7 to 3.3.9
|
| 556 |
"oss_edition": True,
|
| 557 |
"demo_display": {
|
| 558 |
+
"real_arf_version": "3.3.9", # FIXED: Updated from 3.3.7 to 3.3.9
|
| 559 |
"true_oss_used": True,
|
| 560 |
"enterprise_simulated": False,
|
| 561 |
"agent_details": {
|
|
|
|
| 576 |
"scenario": scenario_name,
|
| 577 |
"result": "no_anomalies_detected",
|
| 578 |
"analysis_time_ms": analysis_time_ms,
|
| 579 |
+
"arf_version": "3.3.9", # FIXED: Updated from 3.3.7 to 3.3.9
|
| 580 |
"oss_edition": True,
|
| 581 |
"demo_display": {
|
| 582 |
+
"real_arf_version": "3.3.9", # FIXED: Updated from 3.3.7 to 3.3.9
|
| 583 |
"true_oss_used": True,
|
| 584 |
"no_anomalies": True
|
| 585 |
}
|
|
|
|
| 595 |
"error": error,
|
| 596 |
"scenario": scenario_name,
|
| 597 |
"analysis_time_ms": analysis_time_ms,
|
| 598 |
+
"arf_version": "3.3.9", # FIXED: Updated from 3.3.7 to 3.3.9
|
| 599 |
"oss_edition": True,
|
| 600 |
"demo_display": {
|
| 601 |
+
"real_arf_version": "3.3.9", # FIXED: Updated from 3.3.7 to 3.3.9
|
| 602 |
"true_oss_used": True,
|
| 603 |
"error": error[:100]
|
| 604 |
}
|
|
|
|
| 609 |
return {
|
| 610 |
**self.agent_stats,
|
| 611 |
"oss_available": self.oss_available,
|
| 612 |
+
"arf_version": "3.3.9", # FIXED: Updated from 3.3.7 to 3.3.9
|
| 613 |
"avg_analysis_time_ms": (
|
| 614 |
self.agent_stats["total_time_ms"] / self.agent_stats["total_analyses"]
|
| 615 |
if self.agent_stats["total_analyses"] > 0 else 0
|
|
|
|
| 655 |
return {
|
| 656 |
"status": "mock",
|
| 657 |
"scenario": scenario_name,
|
| 658 |
+
"message": "Mock analysis - install true ARF OSS v3.3.9 for real analysis", # FIXED: Updated version
|
| 659 |
"demo_display": {
|
| 660 |
"real_arf_version": "mock",
|
| 661 |
"true_oss_used": False,
|