INNER CODE UNIT · Python
_resolve_profile
iamlukethedev/Hermes3D · plugins/hermes3d-office-bridge/__init__.py:143
def _resolve_profile() -> str:
"""Which profile produced this turn.
One ``hermes serve`` backend runs every profile, so the answer is per-turn
rather than per-process; ``get_active_profile_name()`` reflects the profile
scope in force while the hook runs.
"""
try:
from hermes_cli.profiles import get_active_profile_name
return str(get_active_profile_name() or "")
except Exception as exc:
_log.debug("hermes3d-office-bridge: profile lookup failed: %s", exc)
return ""
def _handle_post_llm_call(**kwargs: Any) -> None:
if _publisher is None: