Dieter Schlüter
855fc71a1e
feat(safety): zweistufige Notfall-Erkennung mit LLM-Klassifikation
- app/safety/llm_classifier.py: LLM klassifiziert Aeusserungen (medical/self_harm/
help/none) mit Konfidenz-Schwelle, eigener JSON-Prompt, Reasoning aus, temp 0
- emergency.py: Eskalation in _escalate() gebuendelt (Log/Metrik/Webhook, source-Label);
schedule_llm_emergency_check() faehrt Stufe 2 als Hintergrund-Task NUR wenn die
Stichwort-Heuristik nichts fand -> faengt verpasste Formulierungen ohne Mehrlatenz
- /ws/voice schickt bei LLM-Treffer ein nachgelagertes emergency-Event (source=llm)
- Konfig: EMERGENCY_LLM_ENABLED/_PROVIDER/_MIN_CONFIDENCE
- Tests: Parsing, Konfidenz-Schwelle, Skip-bei-Keyword-Treffer, Eskalation+Callback,
disabled, kaputtes JSON
- Doku: README + Architektur-Roadmap (Punkt 6)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-18 03:24:25 +02:00 |
| .. |
|
__init__.py
|
Initial commit: Voice Assistant Gateway mit Konfig-/Routing-Fundament
|
2026-06-17 01:48:56 +02:00 |
|
admin.py
|
feat: Cloud-Fundament - Auth, Persistenz und Mandanten-Trennung
|
2026-06-17 02:14:25 +02:00 |
|
chat.py
|
feat(safety): zweistufige Notfall-Erkennung mit LLM-Klassifikation
|
2026-06-18 03:24:25 +02:00 |
|
config.py
|
Initial commit: Voice Assistant Gateway mit Konfig-/Routing-Fundament
|
2026-06-17 01:48:56 +02:00 |
|
devices.py
|
Initial commit: Voice Assistant Gateway mit Konfig-/Routing-Fundament
|
2026-06-17 01:48:56 +02:00 |
|
health.py
|
Initial commit: Voice Assistant Gateway mit Konfig-/Routing-Fundament
|
2026-06-17 01:48:56 +02:00 |
|
me.py
|
feat: Langzeit-Erinnerungen (#3b) und WebSocket-Streaming-Chat (#4, erster Increment)
|
2026-06-17 04:26:55 +02:00 |
|
metrics.py
|
feat: Resilienz (Fallback-Ketten) und Metriken (#5)
|
2026-06-17 05:19:07 +02:00 |
|
sessions.py
|
feat: Cloud-Fundament - Auth, Persistenz und Mandanten-Trennung
|
2026-06-17 02:14:25 +02:00 |
|
speak.py
|
feat(voice_loop): --voice-Option + saubere Default-Stimme je TTS-Provider
|
2026-06-17 23:42:23 +02:00 |
|
transcribe.py
|
feat: Tageskontingent und Notfall-Eskalation (#6)
|
2026-06-17 05:29:30 +02:00 |
|
ws.py
|
feat(safety): zweistufige Notfall-Erkennung mit LLM-Klassifikation
|
2026-06-18 03:24:25 +02:00 |