37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test script to verify hermes_agent module with llmage integration
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
|
|
# Add the hermes_agent directory to Python path
|
|
sys.path.insert(0, os.path.expanduser('~/repos/hermes_agent'))
|
|
|
|
try:
|
|
from hermes_agent import HermesAgent
|
|
print("✓ hermes_agent module imported successfully")
|
|
print(f" Version: {HermesAgent.__module__}")
|
|
except ImportError as e:
|
|
print(f"✗ Failed to import hermes_agent: {e}")
|
|
sys.exit(1)
|
|
|
|
try:
|
|
from hermes_agent.session_manager import SessionManager
|
|
from hermes_agent.skill_manager import SkillManager
|
|
from hermes_agent.memory_manager import MemoryManager
|
|
print("✓ All submodules imported successfully")
|
|
except ImportError as e:
|
|
print(f"✗ Failed to import submodules: {e}")
|
|
sys.exit(1)
|
|
|
|
# Test llmage integration method exists
|
|
agent = HermesAgent()
|
|
if hasattr(agent, '_call_llmage_inference'):
|
|
print("✓ llmage integration method found")
|
|
else:
|
|
print("✗ llmage integration method missing")
|
|
sys.exit(1)
|
|
|
|
print("✓ Hermes Agent module with llmage integration is valid") |