hermes_agent
hermes_agent
¶
HermesBackend - runs real Hermes Agent as a subprocess per task.
Implements the InferenceBackend ABC by spawning hermes_runner.py with the foreign Hermes installation on sys.path. Foreign code never imports into this process; we cross the boundary only via stdin/stdout JSON.
Classes¶
HermesBackend
¶
HermesBackend(
base_url: str,
api_key: str,
api_mode: str = "chat_completions",
max_iterations: int = 90,
timeout_seconds: float = 7200.0,
)
Bases: InferenceBackend
Spawn real Hermes Agent (pinned commit) as a subprocess per task.