|
|
import sys
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
import raj_rule_engine
|
|
|
import raj_ai_agent
|
|
|
|
|
|
print("Successfully imported raj_rule_engine and raj_ai_agent")
|
|
|
|
|
|
if hasattr(raj_rule_engine, 'analyze_dcrm_advanced'):
|
|
|
print("raj_rule_engine.analyze_dcrm_advanced found")
|
|
|
else:
|
|
|
print("ERROR: raj_rule_engine.analyze_dcrm_advanced NOT found")
|
|
|
|
|
|
if hasattr(raj_ai_agent, 'detect_fault'):
|
|
|
print("raj_ai_agent.detect_fault found")
|
|
|
else:
|
|
|
print("ERROR: raj_ai_agent.detect_fault NOT found")
|
|
|
|
|
|
except ImportError as e:
|
|
|
print(f"ImportError: {e}")
|
|
|
except Exception as e:
|
|
|
print(f"An error occurred: {e}")
|
|
|
|