Files
PTSRaiAgent/config
ElebobaandClaude Opus 5.5 c489ddbdc4
CI / ruff · pytest (pull_request) Successful in 2m53s
feat(bot): chat answers questions in any state; OpenRouter via proxy from the RF server
A question asked mid-questionnaire, mid-check-in or during a crisis is answered right away (agent →
guidelines/instruction); the pending question is re-shown with its buttons (engine remembers the last
prompt), in a crisis the answer carries the emergency contacts and the crisis stays open until the doctor's
ack. Acute messages still get the fixed crisis script. OpenRouter blocks RF IPs: OPENROUTER_PROXY_URL routes
the agent through an HTTP proxy, as vobot does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:42:03 +03:00
..

config/

Конфигурация клинической логики (ADR-008). Схемы задаёт зона core, значения утверждает психиатр (clinical).

  • scales/ — шкалы: пункты, варианты, градации, флаги
  • rules.yaml — правила алертов и действий
  • modules.yaml — модули и расписания шкал
  • lexicon/risk_ru.yaml — лексикон риска
  • texts/ — тексты для пациента (кризисный скрипт, согласие, перефразировки)
  • rag/ — база знаний (ADR-011): sources.yaml (документы, параметры поиска, синонимы) и corpus/*.txt, собранные из PDF в docs/source/rag/