mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: _init_agent returns bool, not agent — fix quiet mode crash
This commit is contained in:
parent
b76cae94d4
commit
2d80ef7872
1 changed files with 1 additions and 2 deletions
3
cli.py
3
cli.py
|
|
@ -4503,8 +4503,7 @@ def main(
|
|||
# Quiet mode: suppress banner, spinner, tool previews.
|
||||
# Only print the final response and parseable session info.
|
||||
cli.tool_progress_mode = "off"
|
||||
cli.agent = cli._init_agent()
|
||||
if cli.agent:
|
||||
if cli._init_agent():
|
||||
cli.agent.quiet_mode = True
|
||||
result = cli.agent.run_conversation(query)
|
||||
response = result.get("final_response", "") if isinstance(result, dict) else str(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue