feat(archivar): Lernsystem-Verdrahtung — Move-Request + Clarify lernen Keyword-Gewichte

- RoutingDecision um matched_keywords-Feld erweitert (router.py)
- _extract_routing_keywords-Stub entfernt, Keywords aus Decision durchreichen (adapter_integration.py)
- _routed_messages nach classify_and_route() befüllen (adapter.py)
- move_req-Dict um message_id erweitert (adapter.py)
- Move-Request-Handler: handle_feedback_response mit confirm/stay/never aufrufen (adapter.py)
- handle_clarification_response: update_keyword_weight für ambige Keywords lernen (adapter_integration.py)
- Clarify-Frage-Text: "Ich möchte mir das für die Zukunft richtig merken..." (config.py)

Feedback-Mapping: 1️⃣ Rüber=confirm, 2️⃣ Hier=stay, 3️⃣ Nein=never, 📝/💬=stay, 📋=confirm
This commit is contained in:
Hermes Agent
2026-06-13 09:50:54 +02:00
parent f27de836dc
commit 4bb1ccbc82
4 changed files with 88 additions and 17 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ CATCH_ALL_ROOM: str = os.getenv("ARCHIVAR_CATCHALL_ROOM", "").strip() or None
BUTTON_TEMPLATES: dict = {
"clarify_intent": {
"text": "Bitte klären Sie die Absicht dieser Nachricht:",
"text": "Ich möchte mir das für die Zukunft richtig merken. Welche Absicht ist mit der Nachricht verbunden?",
"actions": [
{"text": "📝 Direkte Frage", "type": "direct_question"},
{"text": "💬 Smalltalk", "type": "smalltalk"},