#!/usr/bin/env python3 """ Test script to verify harnessed_agent module with llmage integration """ import sys import os # Add the harnessed_agent directory to Python path sys.path.insert(0, os.path.expanduser('~/repos/harnessed_agent')) try: from harnessed_agent import HermesAgent print("✓ harnessed_agent module imported successfully") print(f" Version: {HermesAgent.__module__}") except ImportError as e: print(f"✗ Failed to import harnessed_agent: {e}") sys.exit(1) try: from harnessed_agent.session_manager import SessionManager from harnessed_agent.skill_manager import SkillManager from harnessed_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")