mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
Fix variable name breakage (run_agent, hermes_constants, etc.) where import rewriter changed 'import X' to 'import hermes_agent.Y' but test code still referenced 'X' as a variable name. Fix package-vs-module confusion (cli.auth, cli.models, cli.ui) where single files became directories. Fix hardcoded file paths in tests pointing to old locations. Fix tool registry to discover tools in subpackage directories. Fix stale import in hermes_agent/tools/__init__.py. Part of #14182, #14183
25 lines
757 B
Python
25 lines
757 B
Python
#!/usr/bin/env python3
|
|
"""Tools package namespace.
|
|
|
|
Keep package import side effects minimal. Importing ``tools`` should not
|
|
eagerly import the full tool stack, because several subsystems load tools while
|
|
``hermes_cli.config`` is still initializing.
|
|
|
|
Callers should import concrete submodules directly, for example:
|
|
|
|
import hermes_agent.tools.web
|
|
from hermes_agent.tools.browser import tool as browser_tool
|
|
|
|
Python will resolve those submodules via the package path without needing them
|
|
to be re-exported here.
|
|
"""
|
|
|
|
|
|
def check_file_requirements():
|
|
"""File tools only require terminal backend availability."""
|
|
from .terminal import check_terminal_requirements
|
|
|
|
return check_terminal_requirements()
|
|
|
|
|
|
__all__ = ["check_file_requirements"]
|