fix(archivar): sync __init__.py barrel imports + test_router.py to v3 class names
- __init__.py: MessageClassifier→IntentClassifier, MessageRouter→BidirectionalRouter, CONFIDENCE_THRESHOLD→CONFIDENCE_THRESHOLDS, added ROOM_MAP_PATH, ARCHIVAR_STATE_PATH, ArchivarState - config.py: added missing ROOM_MAP_PATH constant (imported by router.py) - test_router.py: updated imports + BidirectionalRouter(state=ArchivarState()) constructor Root cause: Miguel's v3 refactoring renamed classes but didn't update the barrel file. Gateway failed with 'No adapter available for rocketchat' because archivar/__init__.py imported non-existent names.
This commit is contained in:
@@ -180,6 +180,15 @@ Verfügbare Räume:
|
||||
Nachricht: {text}
|
||||
Raum:"""
|
||||
|
||||
# ── Raum-Map-Konfiguration ──────────────────────────────────────────────────
|
||||
# Ablösung der ARCHIVAR_*_ROOM Env-Vars durch room-map.json.
|
||||
# Die alten Env-Vars funktionieren weiter (deprecated, mit WARNING). Neue
|
||||
# Installationen sollten ausschließlich room-map.json verwenden.
|
||||
|
||||
ROOM_MAP_PATH: str = os.path.expanduser(
|
||||
os.getenv("ARCHIVAR_ROOM_MAP_PATH", "~/.hermes/hermes-agent/data/room-map.json")
|
||||
)
|
||||
|
||||
# ── Persistenz-Layer-Konfiguration ──────────────────────────────────────────
|
||||
|
||||
ARCHIVAR_STATE_PATH: str = os.path.expanduser(
|
||||
|
||||
Reference in New Issue
Block a user