20 lines
726 B
Python
20 lines
726 B
Python
#!/usr/bin/env python3
|
|
"""Check available hermes_tools and demonstrate web search capability."""
|
|
|
|
import sys
|
|
sys.path.insert(0, '/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages')
|
|
|
|
try:
|
|
from hermes_tools import web_search, web_extract, terminal, read_file, write_file
|
|
print("hermes_tools import: SUCCESS")
|
|
print(f"Available functions: {[web_search, web_extract, terminal, read_file, write_file]}")
|
|
except ImportError as e:
|
|
print(f"hermes_tools import error: {e}")
|
|
|
|
# Quick test: search for something to verify it works
|
|
try:
|
|
result = web_search("Hermes Agent Nous Research", limit=2)
|
|
print("\nWeb search test:")
|
|
print(result)
|
|
except Exception as e:
|
|
print(f"\nWeb search error: {e}") |