INNER CODE UNIT · Python

_handle_post_llm_call

iamlukethedev/Hermes3D · plugins/hermes3d-office-bridge/__init__.py:159

def _handle_post_llm_call(**kwargs: Any) -> None:
    if _publisher is None:
        return
    try:
        text = str(kwargs.get("assistant_response") or "").strip()
        if not text:
            return
        frame = build_turn_frame(
            profile=_resolve_profile(),
            text=text,
            session_id=str(kwargs.get("session_id") or ""),
            platform=str(kwargs.get("platform") or ""),
        )
        _publisher.publish(frame)
    except Exception as exc:
        # An office that cannot draw is never a reason to disturb a turn.
        _log.debug("hermes3d-office-bridge: publish skipped: %s", exc)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…