feat(B7): Natürliche Sprache als Hilfetrigger — 'Ich brauche Hilfe' zeigt Hilfeseite
This commit is contained in:
@@ -2347,6 +2347,25 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
virtual_chat_id = f"user:{username}"
|
||||
_set_room_context_origin(virtual_chat_id, room_id)
|
||||
|
||||
# ── B7: Natürliche Sprache als Hilfetrigger ──────────────────────
|
||||
# Prüft VOR dem ::-Parsing und VOR dem Archivar-Routing, ob der
|
||||
# Nutzer in natürlicher Sprache die Hilfeseite anfordert.
|
||||
# "Ich brauche Hilfe", "Hilf mir", "help" etc. zeigen die ::hilfe-Seite.
|
||||
from archivar.inline_commands import is_natural_help_request, build_help_text
|
||||
if is_natural_help_request(routing_text):
|
||||
help_text = build_help_text(
|
||||
self._inline_commands,
|
||||
room_map_summary=self._room_map_summary,
|
||||
)
|
||||
await self._post_message_with_retry(room_id, help_text)
|
||||
routing_counter.increment('natural_help_triggered')
|
||||
logger.info(
|
||||
"ROUTING BYPASS: reason=natural_help_triggered, origin_room=%s, text=%s",
|
||||
room_id, routing_text[:60],
|
||||
)
|
||||
return
|
||||
# ── Ende B7 Natürliche Sprache ──────────────────────────────────
|
||||
|
||||
# ── R5: Inline-Command-Erkennung (VOR Onboarding + Hermes-Dispatch) ──
|
||||
# ::-Befehle und natürliche Hilfeseiten-Anfragen müssen VOR dem
|
||||
# generischen Hermes-Agent-Onboarding erkannt werden.
|
||||
|
||||
Reference in New Issue
Block a user