fix max-bot, add tests

This commit is contained in:
Александра Пронина 2026-05-15 10:22:43 +03:00
parent 7abbaf7e7a
commit 2ad1438e1c
17 changed files with 1621 additions and 494 deletions

View file

@ -1,26 +1,26 @@
"""Help handler for MAX surface."""
"""Help text for MAX surface (single dialog, slash commands)."""
HELP_TEXT = """
Available commands:
Команды (/ как в Telegram):
Chat management:
!new [name] Create a new chat
!chats List active chats
!rename <name> Rename current chat
!archive Archive current chat
!clear / !reset Reset chat context
/start начать
/help эта справка
/clear или /reset сбросить контекст агента
Attachments:
!list Show attachment queue
!remove <n> Remove attachment from queue
!remove all Clear attachment queue
Вложения (файл без текста ставится в очередь):
Actions:
!yes Confirm agent action
!no Cancel agent action
!help Show this help
/list очередь вложений
/remove n убрать из очереди
/remove all очистить очередь
Подтверждения агента:
/yes / /no
Команды вида /new, /chats, /rename, /archive в MAX не нужны
у вас один диалог с ботом; контекст сбрасывайте через /clear.
"""
def get_help() -> str:
return HELP_TEXT.strip()
return HELP_TEXT.strip()