Arbeitspakete A+B: Hausinterne Begriffe durch generische Beispiele ersetzt
- room-topic-map.md: BAT-Team → Support-Team, Protonbridge-Plugin → Mail-Bridge-Plugin, andreas/Bernd → Admin, personenbezogene Namen anonymisiert - OPTION_C_SESSION_SHARING.md: BAT-Team → Support-Team, andreas → admin - BUTTON_GUIDE.md: rocketchat:protonbridge → rocketchat:my-room (3 Stellen) - plugin/archivar/__init__.py: /home/bernd/ → docs/ Alle Beispiele sind jetzt generisch und unabhängig vom LLM nutzbar.
This commit is contained in:
@@ -19,7 +19,7 @@ The agent uses `send_message` with a `metadata` dict. The adapter converts this
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
send_message(
|
send_message(
|
||||||
target="rocketchat:protonbridge",
|
target="rocketchat:my-room",
|
||||||
text="Should I proceed?",
|
text="Should I proceed?",
|
||||||
metadata={
|
metadata={
|
||||||
"template": "custom",
|
"template": "custom",
|
||||||
@@ -90,7 +90,7 @@ Without it, a late click on an old button creates silent context errors. Always
|
|||||||
```python
|
```python
|
||||||
# Step 1: Choose format
|
# Step 1: Choose format
|
||||||
send_message(
|
send_message(
|
||||||
target="rocketchat:protonbridge",
|
target="rocketchat:my-room",
|
||||||
text="Which export format?",
|
text="Which export format?",
|
||||||
metadata={
|
metadata={
|
||||||
"template": "custom",
|
"template": "custom",
|
||||||
@@ -103,7 +103,7 @@ send_message(
|
|||||||
|
|
||||||
# Step 2: Choose destination
|
# Step 2: Choose destination
|
||||||
send_message(
|
send_message(
|
||||||
target="rocketchat:protonbridge",
|
target="rocketchat:my-room",
|
||||||
text="Where to send the CSV?",
|
text="Where to send the CSV?",
|
||||||
metadata={
|
metadata={
|
||||||
"template": "custom",
|
"template": "custom",
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
## Problem
|
## Problem
|
||||||
|
|
||||||
Hermes erzeugt pro Rocket.Chat-Raum eine eigene Session. Andreas' DM und der
|
Hermes erzeugt pro Rocket.Chat-Raum eine eigene Session. Die Admin-DM und der
|
||||||
#BAT-Team-Raum hatten zwei unabhängige Bernd-Instanzen — doppeltes
|
#Support-Team-Raum hatten zwei unabhängige Instanzen — doppeltes
|
||||||
Informations-Management, kein gemeinsamer Kontext.
|
Informations-Management, kein gemeinsamer Kontext.
|
||||||
|
|
||||||
## Lösung: Virtuelle Raum-Übersetzung (Plugin-only)
|
## Lösung: Virtuelle Raum-Übersetzung (Plugin-only)
|
||||||
@@ -16,7 +16,7 @@ user-basierten virtuellen Chat-IDs. Keine Hermes-Core-Änderungen.
|
|||||||
### Datenfluss
|
### Datenfluss
|
||||||
|
|
||||||
```
|
```
|
||||||
EINGANG: RC-Raum (DM / #BAT-Team)
|
EINGANG: RC-Raum (DM / #Support-Team)
|
||||||
↓
|
↓
|
||||||
_adapter._process_incoming():
|
_adapter._process_incoming():
|
||||||
room_id → user:<username> als chat_id
|
room_id → user:<username> als chat_id
|
||||||
@@ -24,9 +24,9 @@ _adapter._process_incoming():
|
|||||||
chat_type=dm (umgeht group isolation in Core)
|
chat_type=dm (umgeht group isolation in Core)
|
||||||
↓
|
↓
|
||||||
Hermes Core: build_session_key()
|
Hermes Core: build_session_key()
|
||||||
→ agent:main:rocketchat:dm:user:andreas ← EIN Key für alle Räume!
|
→ agent:main:rocketchat:dm:user:admin ← EIN Key für alle Räume!
|
||||||
↓
|
↓
|
||||||
Agent antwortet mit chat_id="user:andreas"
|
Agent antwortet mit chat_id="user:admin"
|
||||||
↓
|
↓
|
||||||
_adapter.send():
|
_adapter.send():
|
||||||
ContextVar lesen → echter room_id
|
ContextVar lesen → echter room_id
|
||||||
|
|||||||
+11
-11
@@ -1,22 +1,22 @@
|
|||||||
# Room Topic Map — rocket.chat.thomander.de
|
# Room Topic Map — Beispielkonfiguration
|
||||||
|
|
||||||
**Stand:** 31. Mai 2026 (wiederhergestellt nach Server-Rollback)
|
**Stand:** 03. Juni 2026 (anonymisiert für generische Verwendung)
|
||||||
**Catch-All:** DM andreas/Bernd (`69f4e777f06dba03be82dce7`)
|
**Catch-All:** DM Admin (`<ADMIN_DM_ROOM_ID>`)
|
||||||
|
|
||||||
## Gemappte Räume
|
## Gemappte Räume (Beispiele)
|
||||||
|
|
||||||
| Raum | Typ | Thema |
|
| Raum | Typ | Thema |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `#BAT-Team` | channel | BAT-Trading-Plattform (Docker-Stack, Commits, Agent-Health, Entwicklerteam) |
|
| `#Support-Team` | channel | Erst-Level-Support (Tickets, Bug-Reports, User-Feedback) |
|
||||||
| `Rocketchat-Plugin` | group | Hermes Rocket.Chat Plugin (Gateway, Upload, Buttons, Adapter) |
|
| `RC-Plugin-Dev` | group | Rocket.Chat Plugin-Entwicklung (Gateway, Upload, Buttons, Adapter) |
|
||||||
| `Protonbridge-Plugin` | group | ProtonMail-Bridge-Plugin (Mail, Bridge, SMTP) |
|
| `Mail-Bridge-Plugin` | group | E-Mail-Bridge-Plugin (Mail, Bridge, SMTP) |
|
||||||
| `DM andreas/Bernd` | dm | Allgemein, Meta, Strategie — **Catch-All** |
|
| `DM Admin` | dm | Allgemein, Meta, Strategie — **Catch-All** |
|
||||||
| `DM mit Bernd, Thomas` | dm | 🔇 Inaktiv — nur bei expliziter Aufforderung |
|
| `DM Team-Kollege` | dm | 🔇 Inaktiv — nur bei expliziter Aufforderung |
|
||||||
| `DM mit Bernd, Susi` | dm | Bot-zu-Bot-Kommunikation & Training — NUR auf explizite Aufforderung des Auftraggebers. Niemals ungefragt nutzen. |
|
| `DM Bot-Agent` | dm | Bot-zu-Bot-Kommunikation & Training — NUR auf explizite Aufforderung des Admins. Niemals ungefragt nutzen. |
|
||||||
|
|
||||||
## Virtuelle Keys (keine echten Räume — IMMER herausfiltern)
|
## Virtuelle Keys (keine echten Räume — IMMER herausfiltern)
|
||||||
|
|
||||||
- `user:bernd` — Option-C-Session-Key, kein Raum. Darf NICHT Catch-All werden.
|
- `user:admin` — Session-Sharing-Key, kein Raum. Darf NICHT Catch-All werden.
|
||||||
|
|
||||||
## Override-Regel
|
## Override-Regel
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Bietet embedding-basierte Klassifikation (nomic-embed-text via Ollama)
|
|||||||
für die Kategorien FAKT, FRAGE, ALARM und leitet Nachrichtenkopien an
|
für die Kategorien FAKT, FRAGE, ALARM und leitet Nachrichtenkopien an
|
||||||
konfigurierte Zielräume weiter.
|
konfigurierte Zielräume weiter.
|
||||||
|
|
||||||
Architektur: Siehe /home/bernd/Archivar_Architecture.md
|
Architektur: Siehe docs/Archivar_Architecture.md
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .classifier import MessageClassifier, ClassificationResult, EmbeddingClient, OllamaEmbeddingClient
|
from .classifier import MessageClassifier, ClassificationResult, EmbeddingClient, OllamaEmbeddingClient
|
||||||
|
|||||||
Reference in New Issue
Block a user