feat(archivar): use handle_and_forward() in _process_incoming

Ersetzt classify_and_route() durch handle_and_forward().
Nachrichten werden jetzt klassifiziert UND automatisch in den
Zielraum kopiert, wenn target_room != origin_room.

send_callback ist bereits im ArchivarMessageHandler-Konstruktor
gesetzt (adapter.py:416).
This commit is contained in:
Hermes Agent
2026-06-06 06:33:26 +02:00
parent c98228ef6f
commit 1fca310228
+1 -1
View File
@@ -573,7 +573,7 @@ class RocketChatAdapter(BasePlatformAdapter):
# Klassifiziere die Nachricht und reichere den Context an # Klassifiziere die Nachricht und reichere den Context an
category = "" category = ""
try: try:
decision = await self.archivar.classify_and_route(text, origin_room_id=room_id) decision = await self.archivar.handle_and_forward(text, origin_room_id=room_id, message_id=msg_id)
if decision and decision.category: if decision and decision.category:
category = decision.category category = decision.category
except Exception as e: except Exception as e: