22 lines
702 B
Python
22 lines
702 B
Python
#!/usr/bin/env python3
|
|
"""Check available hermes tools."""
|
|
|
|
try:
|
|
from hermes_agent import web_search, web_extract, terminal, read_file, write_file
|
|
print("hermes_agent import: SUCCESS")
|
|
print("web_search:", web_search)
|
|
except ImportError as e:
|
|
print("hermes_agent import error:", e)
|
|
|
|
try:
|
|
from hermes_tools import web_search, web_extract, terminal, read_file, write_file
|
|
print("hermes_tools import: SUCCESS")
|
|
except ImportError as e:
|
|
print("hermes_tools import error:", e)
|
|
|
|
# Check what is available in hermes_agent
|
|
try:
|
|
import hermes_agent
|
|
print("hermes_agent module contents:", dir(hermes_agent))
|
|
except ImportError as e:
|
|
print("Cannot import hermes_agent:", e) |