The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(tui_gateway): move _tui_model_friction into methods_shared_metrics
kshitijk4poorb010015cea6e
diff --git a/tui_gateway/methods_shared_metrics.py b/tui_gateway/methods_shared_metrics.pyindex f812b284450..87cb4d25ca7 100644--- a/tui_gateway/methods_shared_metrics.py+++ b/tui_gateway/methods_shared_metrics.py@@ -34,6 +34,13 @@ def _shared_metrics_record_setup_completed(cfg) -> None:record_setup_completed(surface="desktop", provider=provider if isinstance(provider, str) and provider else None)+def _tui_model_friction(signal, session, turns=1):+ from hermes_cli.observability.shared_metrics_model import record_model_friction+ record_model_friction(+ signal, session_id=session.get("session_key"), agent=session.get("agent"),+ hermes_home=session.get("profile_home"), turns=turns)++@method("shared_metrics.status")@_profile_scopeddef _(rid, params: dict) -> dict:diff --git a/tui_gateway/methods_tools.py b/tui_gateway/methods_tools.pyindex 45dc58db62f..e13c51b3fff 100644--- a/tui_gateway/methods_tools.py+++ b/tui_gateway/methods_tools.py@@ -868,13 +868,6 @@ def _cmd_retry(rid, params, session, name, arg):return _ok(rid, {"type": "send", "message": content})-def _tui_model_friction(signal, session, turns=1):- from hermes_cli.observability.shared_metrics_model import record_model_friction- record_model_friction(- signal, session_id=session.get("session_key"), agent=session.get("agent"),- hermes_home=session.get("profile_home"), turns=turns)--def _cmd_steer(rid, params, session, name, arg):if not arg:return _err(rid, 4004, "usage: /steer <prompt>")